matching multiple columns

twalters1

New Member
Joined
May 6, 2013
Messages
8
I have data in columns c,d and e on sheet 1 (with each row representing one entry) that I add to periodically and I have a fixed set of data on sheet 2 with 4 columns (a,b,c and e). I would like to match column c with column a on sheet 2, column d with column b on sheet 2 and column e with column c on sheet 2. when they all match, I would like to populate column h on sheet one with the information in column e from sheet two in the row where all three columns match. I have more than 64 rows in my table on sheet 2 so I can't use nested ifs. How can I do this?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the Forum. Here's one way to do this. Copy the formula in Sheet1 H1 down to cover your data range.
Excel Workbook
CDEFGH
117O4nH77tXcSinfo1
2s4uZ4HukbjT5info2
3hLdJHQ2v14oZ
4Zfz53HDZ9aC7info4
5XLbs039kE3bTinfo5
616KiiuxkF54ginfo6
79sA1j9QCK2WEinfo7
8Sv5lj748nMK0info8
9JWYI93M4g1Av
106ErK7Vl47TV2info10
11S75g115OcqXGinfo11
12c6J7bT3Nn7MFinfo12
1350cX0EcH9lUjinfo13
14t6033DC6h434
15Em478TiCv11Einfo15
16KcqDwS28Fd3Xinfo16
17u4UFKvsi3ILBinfo17
18KeOoFyvUN6Rjinfo18
19g63c255W2O2iinfo19
20EtU8KkrY90jDinfo20
Sheet1


Excel Workbook
ABCDE
117O4nH77tXcSinfo1
2s4uZ4HukbjT5info2
3hLdJHQ2vinfo3
4Zfz53HDZ9aC7info4
5XLbs039kE3bTinfo5
616KiiuxkF54ginfo6
79sA1j9QCK2WEinfo7
8Sv5lj748nMK0info8
993M4g1Avinfo9
106ErK7Vl47TV2info10
11S75g115OcqXGinfo11
12c6J7bT3Nn7MFinfo12
1350cX0EcH9lUjinfo13
14t603h434info14
15Em478TiCv11Einfo15
16KcqDwS28Fd3Xinfo16
17u4UFKvsi3ILBinfo17
18KeOoFyvUN6Rjinfo18
19g63c255W2O2iinfo19
20EtU8KkrY90jDinfo20
Sheet2
 
Upvote 0
That worked great! I worked on this for almost 2 hours and could only get it to work partially with nested ifs. Thank you so much!! Hopefully it won't take me as long to figure out what this formula actually does:)


Welcome to the Forum. Here's one way to do this. Copy the formula in Sheet1 H1 down to cover your data range.
Sheet1

*CDEFGH
117O4nH77tXcS**info1
2s4uZ4HukbjT5**info2
3hLdJHQ2v14oZ***
4Zfz53HDZ9aC7**info4
5XLbs039kE3bT**info5
616KiiuxkF54g**info6
79sA1j9QCK2WE**info7
8Sv5lj748nMK0**info8
9JWYI93M4g1Av***
106ErK7Vl47TV2**info10
11S75g115OcqXG**info11
12c6J7bT3Nn7MF**info12
1350cX0EcH9lUj**info13
14t6033DC6h434***
15Em478TiCv11E**info15
16KcqDwS28Fd3X**info16
17u4UFKvsi3ILB**info17
18KeOoFyvUN6Rj**info18
19g63c255W2O2i**info19
20EtU8KkrY90jD**info20

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:34px;"><col style="width:33px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
H1{=IF(ISNA(MATCH(C1&D1&E1,Sheet2!$A$1:$A$20&Sheet2!$B$1:$B$20&Sheet2!$C$1:$C$20,0)),"",INDIRECT("Sheet2!E"&MATCH(C1&D1&E1,Sheet2!$A$1:$A$20&Sheet2!$B$1:$B$20&Sheet2!$C$1:$C$20,0)))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Sheet2

*ABCDE
117O4nH77tXcS*info1
2s4uZ4HukbjT5*info2
3hLdJHQ2v**info3
4Zfz53HDZ9aC7*info4
5XLbs039kE3bT*info5
616KiiuxkF54g*info6
79sA1j9QCK2WE*info7
8Sv5lj748nMK0*info8
9*93M4g1Av*info9
106ErK7Vl47TV2*info10
11S75g115OcqXG*info11
12c6J7bT3Nn7MF*info12
1350cX0EcH9lUj*info13
14t603*h434*info14
15Em478TiCv11E*info15
16KcqDwS28Fd3X*info16
17u4UFKvsi3ILB*info17
18KeOoFyvUN6Rj*info18
19g63c255W2O2i*info19
20EtU8KkrY90jD*info20

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:71px;"><col style="width:73px;"><col style="width:64px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
That worked great! I worked on this for almost 2 hours and could only get it to work partially with nested ifs. Thank you so much!! Hopefully it won't take me as long to figure out what this formula actually does:)
Happy it works for you - thanks for letting me know.
 
Upvote 0

Forum statistics

Threads
1,215,767
Messages
6,126,767
Members
449,336
Latest member
p17tootie

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