Index Match function

abhishekkhosla

New Member
Joined
Apr 14, 2018
Messages
3
Hi,

I am trying to learn how to use index match function when there is multiple variables. I am getting NA error below is the screen shot can somebody explain where i am going wrong and what i need to be careful when i am using the formula. I am using ctrl+shift+enter to sun this formuls

Forumla : =INDEX(C2:C8,MATCH(1,(F2=A2:A8)*(F3=B2:B8),0))

First nameLast NameSalary
JamesSmith64710
JamesAnderson122234
JamesClark34556
JohnLewis1223434
Johnmark122323
MarkReed1224354

<tbody>
</tbody>

I need

First NameLast NameSalary
JamesClark?

<tbody>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If F2 = James and F3 = Clark, the formula you have, confirmed with control+shift+enter, not just enter, wiil give:

34556
 
Upvote 0
Maybe in your formula F3 should be G2?
Excel Workbook
ABCDEFGHIJ
1First nameLast NameSalaryFirst NameLast NameSalarySUMIFS
2JamesSmith64710JamesClark3455634556
3JamesAnderson122234
4JamesClark34556
5JohnLewis1223434
6Johnmark122323
7MarkReed1224354
Sheet
 
Upvote 0
Hi I am trying it but it is giving me NA

Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
1​
First nameLast NameSalaryfirst NameLast NameSalary
2​
JamesSmith
64710
JamesClark
34556
3​
JamesAnderson
122234
4​
JamesClark
34556
5​
JohnLewis
1223434
6​
Johnmark
122323
7​
MarkReed
1224354

In H2 control+shift+enter, not just enter:

Either...

=INDEX($C$2:$C$7,MATCH($F2,IF($B$2:$B$7=$G2,$A$2:$A$7),0))

Or...

=INDEX(C2:C8,MATCH(1,(F2=A2:A8)*(G2=B2:B8),0))

Note that these refer to G2, not to F3 as you accidentally might have done.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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