Index and Concatenate

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
Using A1&B1… how would I use INDEX to return 4 in C4 please?

Excel Workbook
ABCDEFG
1FiorentinaNapoli410AS RomaCesena
223UdineseGenoa
354BariJuventus
412Chievo VeronaCatania
514AC MilanLecce
615ParmaBrescia
79SampdoriaLazio Roma
8104PalermoCagliari
94FiorentinaNapoli
107BolognaInter Milan
1145Inter MilanUdinese
123GenoaChievo Verona
132JuventusSampdoria
Sheet1


<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try:

=index($e$1:$e$13,match(1,($f$1:$f$13=a1)*($g$1:$g$13=b1),0))

This needs to be confirmed with control+shift+enter and not just enter.

Hope that helps.
 
Upvote 0
Some options...

1) Control+shift+enter, not just enter:

=INDEX($E$1:$E$13,MATCH(1,IF($F$1:$F$13=A1,IF($G$1:$G$13=B1,1)),0))

2) Control+shift+enter, not just enter

=INDEX($E$1:$E$13,MATCH(A1&"|"&B1,$F$1:$F$13&"|"&$G$1:$G$13,0))

3) Finally, also control+shift+enter...

=VLOOKUP(A1&"|"&B1,CHOOSE({1,2},$F$1:$F$13&"|"&$G$1:$G$13,$E$1:$E$13),2,0)

Option 1 would be less costly...
 
Upvote 0
Some options...

1) Control+shift+enter, not just enter:

=INDEX($E$1:$E$13,MATCH(1,IF($F$1:$F$13=A1,IF($G$1:$G$13=B1,1)),0))

2) Control+shift+enter, not just enter

=INDEX($E$1:$E$13,MATCH(A1&"|"&B1,$F$1:$F$13&"|"&$G$1:$G$13,0))

3) Finally, also control+shift+enter...

=VLOOKUP(A1&"|"&B1,CHOOSE({1,2},$F$1:$F$13&"|"&$G$1:$G$13,$E$1:$E$13),2,0)





Option 1 would be less costly...

Thanks Aladin...
 
Upvote 0
That works thanks,... is there any way to do it without the CSE though please?
You could do it using sumproduct, but this will ONLY work if you do NOT have duplicate values as it would basically sum them together if there were duplicate:

=sumproduct($e$1:$e$13,--($f$1:$f$13=a1),--($g$1:$g$13=b1))

Hope that helps.
 
Upvote 0
That works thanks,... is there any way to do it without the CSE though please?

You could use SUMPRODUCT, but SUMPRODUCT evaluates as an array anyway, so you wouldn't really be saving any processing time.
 
Upvote 0
You are welcome. If you want to, you can concatenate the data and invoke a regular Index/Match formula...

I tried that Aladin but I couldn't get it to work... Would you point me in the right direction please?
 
Upvote 0
I tried that Aladin but I couldn't get it to work... Would you point me in the right direction please?

H1, just enter and copy down:

=F1&"|"&G1

Now you can invoke in C1:

=INDEX($A$1:$E$13,MATCH(A1&"|"&B1,$H$1:$H$13,0))

which needs just enter.
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,762
Members
452,940
Latest member
rootytrip

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