Search Cells in Column For Value and Return All Instances Of It

mdsurf

New Member
Joined
Aug 1, 2017
Messages
22
Office Version
  1. 2016
Platform
  1. MacOS
Hi there, I have a spreadsheet with a lot of data. I'm trying to search cells in a column to see if specific info is present and then return all values in another correlated cell.

Here is an example of the data

DataMisc DataSKU
I like to go sailing on a boat on the weekendsMisc data 123DSF33JY
My dad loves to play soccerMisc data 24567HGDDD22
Fishing while sailing on a boat is the bestMisc data 3CV567FGH

What I need to do is search the first column for a specific value, in this case the words "sailing on a boat" and return every SKU where those words are present.

sailing on a boat
23DSF33JY
CV567FGH

As you can see, I have the term that needs to be searched for, and the corresponding SKU. The number of SKUs that will be returned will vary and the list of Data is quite long.

Thank you in advance for any help.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
What version of Excel are you using & on what platform?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Wanted to check back to see if anyone had any ideas here. Thank you!
 
Upvote 0
Yes I do, but you haven't answered my questions, nor have you updated you account details. ;)
 
Upvote 0
@Fluff

Sorry about that! I updated my profile details, and to answer your questions

The version I am using is Microsoft Excel for Mac Version 16.16.27

I do also use Google sheets sometimes as well if that matter. Sorry I'm a bit of an excel newb, hence why I'm here asking questions :)
 
Upvote 0
Thanks for that.
How about
+Fluff 1.xlsm
ABCDE
1DataMisc DataSKUsailing on a boat
2I like to go sailing on a boat on the weekendsMisc data 123DSF33JY23DSF33JY
3My dad loves to play soccerMisc data 24567HGDDD22CV567FGH
4Fishing while sailing on a boat is the bestMisc data 3CV567FGH 
5
6
Main
Cell Formulas
RangeFormula
E2:E4E2=IFERROR(INDEX($C$2:$C$4,AGGREGATE(15,6,(ROW($C$2:$C$4)-ROW($C$2)+1)/(ISNUMBER(SEARCH(E$1,$A$2:$A$4))),ROWS(E$2:E2))),"")
 
Upvote 0

Forum statistics

Threads
1,215,002
Messages
6,122,652
Members
449,092
Latest member
peppernaut

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