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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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
17O4nH77tXcS**info1
s4uZ4HukbjT5**info2
hLdJHQ2v14oZ***
Zfz53HDZ9aC7**info4
XLbs039kE3bT**info5
16KiiuxkF54g**info6
9sA1j9QCK2WE**info7
Sv5lj748nMK0**info8
JWYI93M4g1Av***
6ErK7Vl47TV2**info10
S75g115OcqXG**info11
c6J7bT3Nn7MF**info12
50cX0EcH9lUj**info13
t6033DC6h434***
Em478TiCv11E**info15
KcqDwS28Fd3X**info16
u4UFKvsi3ILB**info17
KeOoFyvUN6Rj**info18
g63c255W2O2i**info19
EtU8KkrY90jD**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>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]

[TD="bgcolor: #cacaca, align: center"]13[/TD]

[TD="bgcolor: #cacaca, align: center"]14[/TD]

[TD="bgcolor: #cacaca, align: center"]15[/TD]

[TD="bgcolor: #cacaca, align: center"]16[/TD]

[TD="bgcolor: #cacaca, align: center"]17[/TD]

[TD="bgcolor: #cacaca, align: center"]18[/TD]

[TD="bgcolor: #cacaca, align: center"]19[/TD]

[TD="bgcolor: #cacaca, align: center"]20[/TD]

</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
17O4nH77tXcS*info1
s4uZ4HukbjT5*info2
hLdJHQ2v**info3
Zfz53HDZ9aC7*info4
XLbs039kE3bT*info5
16KiiuxkF54g*info6
9sA1j9QCK2WE*info7
Sv5lj748nMK0*info8
*93M4g1Av*info9
6ErK7Vl47TV2*info10
S75g115OcqXG*info11
c6J7bT3Nn7MF*info12
50cX0EcH9lUj*info13
t603*h434*info14
Em478TiCv11E*info15
KcqDwS28Fd3X*info16
u4UFKvsi3ILB*info17
KeOoFyvUN6Rj*info18
g63c255W2O2i*info19
EtU8KkrY90jD*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>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]

[TD="bgcolor: #cacaca, align: center"]13[/TD]

[TD="bgcolor: #cacaca, align: center"]14[/TD]

[TD="bgcolor: #cacaca, align: center"]15[/TD]

[TD="bgcolor: #cacaca, align: center"]16[/TD]

[TD="bgcolor: #cacaca, align: center"]17[/TD]

[TD="bgcolor: #cacaca, align: center"]18[/TD]

[TD="bgcolor: #cacaca, align: center"]19[/TD]

[TD="bgcolor: #cacaca, align: center"]20[/TD]

</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,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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