Index/Match and Concatenate

jwburritt

New Member
Joined
May 22, 2019
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hello: I have a list of first and last names and amounts in a range. I want to find the amount that corresponds to both the first and last names and return that value. I've used Index/match in the past when there was only the last name and it worked fine. Now, when I added the first name, I tried simply to concatenate the two and run the index/match. No luck. I've tried adding parentheses but that didn't work either. Any help would be appreciated!

Code:
=INDEX(E40:E41,MATCH(B18&C18,B40&C40:B41&C41,0))

[TABLE="width: 492"]
<tbody>[TR]
[TD]First[/TD]
[TD]Last[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]Evans[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Smith[/TD]
[TD]200[/TD]
[/TR]
</tbody>[/TABLE]


Thank you!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You can use either
=INDEX(E40:E41,MATCH(B18&"|"&C18,B40:B41&"|"&C40:C41,0))
or
=INDEX(E40:E41,MATCH(B18&"|"&C18,INDEX(B40:B41&"|"&C40:C41,0),0))

The first one needs to be array entered with Ctrl Shift Enter.
The 2nd one doesn't
 
Upvote 0
Solution
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,882
Messages
6,175,166
Members
452,615
Latest member
bogeys2birdies

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