Does anyone know how to make a FILTER formula that would bring any data from a column if the first 3 letters match “abc” or the first 4 letters match “abcd”?

It seems like you cant use the LEFT formula combined with the OR statement on the FILTER formula for some reason. I get the #value and something about the data not being the same type. But I checked and it is.

like
Posting as :
works at
You are currently posting as works at

Note that “abcd” also stars with “abc” so you don’t need to use OR.

Assuming you meant to filter on “abc” or “defg” I would just run the filter twice and VSTACK it.

=VSTACK(FILTER(column, LEFT(column, 3)=“abc”),FILTER(column,LEFT(column,4)=“defg”))

like

In this specific case (assuming the “defg” case), yes, although the order would be messed up, as well as being at least 2x more time-consuming, plus any additional from the =VSTACK() (never tested its performance, but I’d assume it’s not that great)

But my point is mainly about “why” use 3 formulas when one can do the trick

Please use ChatGPT

To create a FILTER formula that brings any data from a column if the first 3 letters match “abc” or the first 4 letters match “abcd,” you can use the FILTER function combined with the LEFT function and the addition of an array formula. You cannot directly use OR in the FILTER function, but you can achieve the desired effect with an alternative approach.

Here’s how you can do it in Google Sheets:

=FILTER(A:A, (LEFT(A:A, 3) = "abc") + (LEFT(A:A, 4) = "abcd"))

In this formula:

• A:A is the range of the column you want to filter.
• LEFT(A:A, 3) = "abc" checks if the first 3 letters match “abc”.
• LEFT(A:A, 4) = "abcd" checks if the first 4 letters match “abcd”.
• The + operator is used to simulate an OR condition because it will be true if either condition is true.

This approach ensures that the FILTER function includes rows where either of the conditions is met.

If you are using Excel, you can use the following array formula (press Ctrl + Shift + Enter to enter the formula):

=FILTER(A:A, (LEFT(A:A, 3) = "abc") + (LEFT(A:A, 4) = "abcd"))

This will achieve the same result, filtering the data based on the given conditions.

Related Posts

Having wife’s birthday soon after the Black Friday is a real blessing.

likefunny

Can anyone refer me .I have 2 yrs of experiemce .Skills- java,sql,sprimg boot,testing

like

I’m tired of the arrogance and male techno-superiority. Where are the humans with feelings, vulnerability, joy in all of this?

like

Hi fishes LTI or Wipro or Harman connected services Please suggest which company is better join. salary offered is almost same. With respect to wlb and job security which is good?

like

Cons of moving 75% of my savings to an Intermediate US Treasury ETF (SCHR)? I wouldn’t mind losing 4-5% if the market rallies, but would rather put cash to work if the market keeps tanking

like

Dear legal recruiters who used to work as attorneys: are you glad you made the switch? I think recruiting could be fun but I know how much I ignore recruiter emails daily so it makes me think it’s touch to place people and make a consistent income. Thoughts?

like

Any recommendations on seaside towns that would be fun for a 5-6 day stay within an 8 hour drive of Boston? Going next week, so not a place that's a ghost town in October.

like

Where would you travel to in India during May?

like

Let's have a poll on our current work setup!
It's about your current work setup and not about your preferences.

Post Photo
helpfulfunnylikeupliftingsmart

Is it appropriate to apply for multiple different roles at the same company at the same time? For tech companies if need to be specific.

like

Please reach out if you need a referral at IBM

like

Has anyone recently onboarded to Accenture and how was the experience. Wat is expected on ur reporting day n when do u get ur laptop delivered.?

likeuplifting

Is Infosys has some policy of 70% in 12th and graduation for experiance candidate also?

like

Happy weekend, everyone

like

Intensely unhappy at new firm, can anyone DM to talk? Feeling pretty down and on the verge of quitting.

like

Hey all, staff 2 experienced hire here and been trying to figure out this whole dynamic. In terms of general work experience, I often times feel more qualified than some seniors I work with but at the same time, I’m missing core consulting skills and even mindset at times. I’ve been struggling with how hard I should be on myself. Am I expected to only do the work that’s given me? Should I be beating myself up for the amount of down time I seem to have when the rest of the team is frantic?

like

Cloud surfing to Vegas.

Post Photo
like

Anyone who laterally transitioned from T2 strategy to MBB, are you glad that you transitioned or regret it? Why?

like

Additional Posts in Excel Genius

Does anyone from PwC have a list of the favorite groups shortcuts for excel? Please provide. Much appreciated .

like

Best way to lookup a value with multiple criteria across rows and Columns, for 3 criteria I usually do sum product. Any other tips?

like

I am trying to recreate this without the numbers at the end. Any advice?

Post Photo
likehelpful

What’s the keyboard shortcut to get into the “insert options” dialogue when you’ve inserted a new row with Ctrl+Shift+Plus?

like

How do you fix microsoft excel cannot paste data error?

like

How can I copy a formula from one sheet to another?i tried the simple Ctrl+C, Ctrl-V, but the formula refers to the old sheet.

like

Does anyone know what purple tables mean in Excel?

I know about green and orange, but never saw purple before and trying to figure it out.

likefunny

Would anyone be willing to teach me vlookup?

like

Can dates be grouped just by Month-Year in pivot tables on a Mac without having the year as its own dimension?

Post Photo
like

I created a macro to help me save time on this onetime task and now whenever I open my excel, a blank excel opens with the name of the macro. How do I get rid of it?

like

Hey guys, I'm trying to find a formula to use instead of the Goal Seek function. Anyone know it? I thought I had seen one years ago, but can't find it now.

like

Is there an easy way to switch XLOOKUPS to INDEX MATCH? Have a large file with bunch of formulas that don't work on all client machines (different excel versions).

like

Is there anything similar to the INDIRECT function that I can use to build a formula reference to another workbook? INDIRECT creates errors when the referenced workbook is closed..

like

Does anyone know any shortcuts for the “Refresh All” button without having to always click Data->Refresh All every time I want to refresh the live data? For a Mac btw pls thanks!

Post Photo
like

Any suggestions for a formula to calculate a running count of the number of incidences in a list? For example, in a list with A, B, C, B; I want to label A = 1, then the first B =1, and first C = 1, and then the second B = 2, etc. The list is in a column and there are thousands of names. TIA for your help!

Struggling with this:
Suppose I want to shortlist companies that serve the priority industry vertical of a country. So I have the industries served by company (one column for each industry) and (cont)

I’m referencing a cell (numeric) to a text cell. Is there a way to format that number to include commas? See example in comments.

Help me save the day: have a massive excel file (600k rows) with duplicate records (column a, b and c are duplicate, not a duplicate if a and b are the same though). How can I filter for just these records? If it didn’t crash excel I could concat into one column, Conditional format for duplicates, and sort by color. What’s a work around?

likehelpful

Current IE here. What are some Time Motion Study Softwares that are out there and you use in your jobs?

like

Is there a way for me to automate creating columns to do this so I can drag across and create my columns? For example--
1Q2021 2Q2021 3Q2021 4Q2021 2021 1Q2022?

likesmart

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal