Google Sheets - Create a list - Search multiple columns or cell ranges (like the filter formula), return multiple rows as a result

WillHolman

New Member
Joined
Jul 8, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I am a rookie at this and I spent hours trying to figure this out but can find anything that really helps.

When I use the filter formula it only lets me search one keyword in one column.
I want to be able to search for multiple keywords across multiple columns.

If would be cool if there was a formula that says: Search "this range of cells" Look for "this key word" or "this keyword" and list "these rows"

Scenario 1 Looking at the photo. I want to search columns C through M for a selected color(s) In this case Red. Return all the rows (Column A and B only) that have red in one of the row's columns. Result should be:
Tim | Tim@
Bob | Bob@ etc

Scenario 2 Looking at the photo. I want to search columns C through M for a selected color(s) In this case Red and Blue Return all the rows that have red or blue in one of the row's columns. Result should be all the names and emails.
I will input this on a seperate sheet and be able to add new values if I add new rows on the main sheet.
Sheet Example.png
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi & welcome to MrExcel.
How about
Excel Formula:
FILTER(A2:B10,MMULT(--(C2:M10="Red"),SEQUENCE(columns(C2:M10))^0)>0)
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
FILTER(A2:B10,MMULT(--(C2:M10="Red"),SEQUENCE(columns(C2:M10))^0)>0)
I been posting this question everywhere, this is my first response.
It works amazing.

where is has (C2:M10="Red") can I add or (C2:M10="Blue")
 
Upvote 0
Never mind I was able to figure it out.

(C2:M10="Red")+(C2:M10="Blue")

I been trying to figure this out all week.
This made my day.

Is there anywhere to donate to the site?
 
Upvote 0
@Fluff

On the formula I am using Cells in place of the "Red" and "Blue"
Sometimes one of those are left blank so the formula pulls all the results where there is a blank value.

Can I add a statement to ignore blanks?
 
Upvote 0
You could use
Excel Formula:
=FILTER(A2:B10,MMULT((C2:M10=IF(N2="",1,N2))+(C2:M10=IF(N3="",1,N3)),SEQUENCE(COLUMNS(C2:M10))^0)>0)
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top