Search Rows / Match / Return Multiple Values

tbush33

New Member
Joined
Oct 22, 2017
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello, I have been trying to figure out a way to look at a very large data set (Columns A:QZ) and search each row for a value, then if found, return the unique id in Column A. The issue I am running into, is that a single value can have multiple matches throughout the sheet. Here is the example:

In Sheet1, I have a list of 26 unique values.
Example1.png


In Sheet2, I have those same values spread across the worksheet:
1678738245015.png


I am looking for a formula to put in Sheet1 that will look for the values in that list in Sheet2. When found, I would like it to list out the Unique ID (Column A) for each row that the value is found. I was hoping that the end result would look like this:
1678738896537.png


Is this something that can be done with a formula?

Thank you!
Travis
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
What version of Excel are you using?

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 1
Thank you, Fluff. I have updated my info. I am using 365 on Windows.
 
Upvote 0
Thanks for that. (y)
How about
Excel Formula:
=TOROW(IF(Sheet2!$B$2:$U$100=A2,Sheet2!$A$2:$A$100,x),2)
 
Upvote 1
Solution
Fluff...if you were next to me, I would give you a solid high five. You will have to settle with an emoji 👏🫶. This is exactly what I needed! Thank you very much for your time.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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