Return a list based on specific values

Graham C1600

Board Regular
Joined
Feb 17, 2018
Messages
96
Office Version
  1. 365
Hi All,
I'm wanting a function to look down a list and based on certain required criteria on that lookup, return all values in a list format starting in a specified cell. So as below let's call this range A1:D5.
I want the lookup to look down Column A:A searching for "Graham" and then in C1 populate a list based on the lookup but include the values from column B:B. So Columns C and D would be blank until the lookup is run.

Hope this makes sense.

Thanks

GrahamTaylorGrahamTaylor
SimonSmithGrahamSmith
BruceTurnerGrahamBunce
GrahamSmith
GrahamBunce
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about
+Fluff 1.xlsm
ABCD
1Graham
2GrahamTaylorGrahamTaylor
3SimonSmithGrahamSmith
4BruceTurnerGrahamBunce
5GrahamSmith
6GrahamBunce
7
8
9
Main
Cell Formulas
RangeFormula
C2:D4C2=FILTER(A2:B10,A2:A10=C1)
Dynamic array formulas.
 
Upvote 0
How about
+Fluff 1.xlsm
ABCD
1Graham
2GrahamTaylorGrahamTaylor
3SimonSmithGrahamSmith
4BruceTurnerGrahamBunce
5GrahamSmith
6GrahamBunce
7
8
9
Main
Cell Formulas
RangeFormula
C2:D4C2=FILTER(A2:B10,A2:A10=C1)
Dynamic array formulas.
Hi Fluff and thanks for prompt response.

I made a mistake really, rather than try to explain it all over again, in cell C1 if we just had "aha" for example and then still got the same results. So in short looking for specific text in a line of text.

What you sent me works perfectly which is when I realised I had made a mistake in the original ask.

Hope this makes sense.

Thanks
 
Upvote 0
Ok, how about
Excel Formula:
=FILTER(A2:B10,ISNUMBER(SEARCH(C1,A2:A10)))
 
Upvote 0
Ok, how about
Excel Formula:
=FILTER(A2:B10,ISNUMBER(SEARCH(C1,A2:A10)))
Works a treat so many thanks.

If I wanted to take this further so perhaps look up aha in C1 first then mit in D1. This would only then bring back Graham Smith.

Would this be difficult ?

Thanks
 
Upvote 0
Try
Excel Formula:
=FILTER(A2:B10,(ISNUMBER(SEARCH(C1,A2:A10)))*(ISNUMBER(SEARCH(D1,B2:B10))))
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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