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]
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]