Index and Match checking multiple columns

kcochran12

New Member
Joined
Apr 2, 2018
Messages
3
Using Excel 2007

Hello,

I am trying to return the amount from table 2 to table 1. I've used the following formula, =index(A2:A9,match(a2,I2:I9,0)), in B2 of table 1. I've copied down the formula but once the account that I need is in a different column I get the #N/A error. I need the formula to then check the other lookup columns in table 2 for the account numbers and return the amount that is in its respective row. Please help.

Table 1
Account
Amount
1234
2345
3456
4567
5678
6789
7890
8901
9012

<tbody>
</tbody>


Table 2
Amount
Data 1
Data 2
Data 3
Data 4
lookup 1
lookup 2
lookup 3
lookup 4
10
1234
20
2345
30
3456
40
4567
50
5678
60
6789
70
7890
80
8901
90
9012

<tbody>
</tbody>
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Welcome to the forum.
This solution assumes that each account appears only once in the columns Lookup1...4.


Book1
ABCDEFGHI
1Table 1
2AccountAmount
3123410
4234520
5345630
6456740
7567850
8678960
9789070
10890180
11901290
12
13
14Table 2
15AmountData 1Data 2Data 3Data 4lookup 1lookup 2lookup 3lookup 4
16101234
17202345
18303456
19404567
20505678
21606789
22707890
23808901
24909012
Sheet53
Cell Formulas
RangeFormula
B3=SUMPRODUCT((A3=$F$16:$I$24)*$A$16:$A$24)
 
Upvote 0
DRSteele, thank you for the quick response. I still get #N/A using your formula but i'm hoping it's because of an error i made on my initial post. I'm using excel 2010 not 2007. Apologies.
 
Upvote 0
I should also mention that the data in the lookup columns are the results of a vlookup formula. Don't know if that will/should make a difference.

thanks again
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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