Finding something multiple times in a column

pryor15

New Member
Joined
Dec 2, 2018
Messages
3
So I've been googling this for a couple hours with no luck....

I have a crazy spreadsheet omnibus. So each item has a unique code like *WTVL* and that'll show up in a list of events between 14 and 18 times. All these events are in column A. The cell containing the item code can be wherever. Let's say B1.

That unique code will show up in a larger unique event code in column A. That code might look like '43441 *WTVL* *OCEA*'. There's roughly 2,000 of those.

I'd like to return every event code, in order, that contains the *WTVL* code, but on *WTVL*'s sheet, if that makes sense. *OCEA* also has their own sheet. There's roughly 130 different codes that each have their own sheet.

It's a really, really big spreadsheet.

I'm assuming I need an Index/Match combo?
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Let column A of the data sheet house the relevant data.

Let B1 of the WTVL sheet contain WTVL.

In B2 just enter:

=COUNTIFS(data!$A$2:$A$20,"*"&B1&"*")

In B3 control+shift+enter, not just enter, and copy down:

=IF(ROWS($B$3:B3)>$B$2,"",INDEX(data!$A$2:$A$20,SMALL(IF(ISNUMBER(SEARCH($B$1,data!$A$2:$A$20)),ROW(data!$A$2:$A$20)-ROW(data!$A$2)+1),ROWS($B$3:B3))))
 
Upvote 0
Thanks!

Small problem: if found literally none of entries with WTVL. It did know how many times WTVL was in the column.
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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