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
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Account
[/TD]
[TD]Amount
[/TD]
[/TR]
[TR]
[TD]1234
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2345
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3456
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4567
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5678
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6789
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7890
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8901
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9012
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Table 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Amount
[/TD]
[TD]Data 1
[/TD]
[TD]Data 2
[/TD]
[TD]Data 3
[/TD]
[TD]Data 4
[/TD]
[TD]lookup 1
[/TD]
[TD]lookup 2
[/TD]
[TD]lookup 3
[/TD]
[TD]lookup 4
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1234
[/TD]
[/TR]
[TR]
[TD]20
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2345
[/TD]
[/TR]
[TR]
[TD]30
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]3456
[/TD]
[/TR]
[TR]
[TD]40
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]4567
[/TD]
[/TR]
[TR]
[TD]50
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5678
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]60
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]6789
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]70
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]7890
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]80
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]8901
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]90
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]9012
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
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,223,262
Messages
6,171,080
Members
452,377
Latest member
bradfordsam

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