Matching Data

Excel_77

Active Member
Joined
Sep 15, 2016
Messages
306
Office Version
  1. 2019
Platform
  1. Windows
In the "Master" tab I have a series of IDs in column A, I want to check the IDs against column A of the "source" tab and return a value to column B of the "Master" tab. If the ID is in one of the present columns within the "source" tab (b-d), I want the column heading (b2) of the master tab returned in each of the applicable cells within column B of the "Master" tab, is this possible and if so how?

Book2
AB
1IDTest (41)
212345677
312345678
412345679
512345680
612345681
712345682
812345683
912345684
1012345685
1112345686
1212345687
Master


Book2
ABCD
1IDPresent 1Present 2Present 3
212345677
31234567812345678
41234567912345679
51234568012345680
61234568112345681
712345682
812345683
912345684
1012345685
1112345686
121234568712345687
Source
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about
+Fluff 1.xlsm
AB
1IDTest (41)
212345677 
312345678Present 2
412345679Present 1
512345680Present 1
612345681Present 3
712345682 
812345683 
912345684 
1012345685 
1112345686 
1212345687Present 3
Master
Cell Formulas
RangeFormula
B2:B12B2=IFERROR(INDEX(Source!$B$1:$D$1,AGGREGATE(15,6,(COLUMN(Source!$B$1:$D$1)-COLUMN(Source!$B$1)+1)/(Source!$B$2:$D$12=A2),1)),"")
 
Upvote 0
It works in my test scenario but not in my main file. I don't understand much of the code, is there an alternative solution?
 
Upvote 0
Could do you have a value in cols B, C or D that is different to the value in col A?
 
Upvote 0
In that case that's the simplest formula I can think of.
Are the columns the same in your actual file as the sample?
 
Upvote 0

Forum statistics

Threads
1,216,729
Messages
6,132,383
Members
449,725
Latest member
Enero1

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