Combining 3 x INDEX MATCH

horizonflame

Board Regular
Joined
Sep 27, 2018
Messages
184
Office Version
  1. 2013
Hi All,


I have a column with INDEX/MATCH formula, but the match value could come from 1 of 3 possible columns. Could you help me combine the below into one formula please?


Code:
=IFERROR(INDEX(admin!$C$4:$C$100,MATCH(C4,admin!$B$4:$B$100,0)),"0")

=IFERROR(INDEX(admin!$E$4:$E$100,MATCH(C4,admin!$D$4:$D$100,0)),"0")

=IFERROR(INDEX(admin!$G$4:$G$100,MATCH(C4,admin!$F$4:$F$100,0)),"0")

Thanks
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi
here is array formula =VLOOKUP(C4,INDIRECT(INDEX(A1:A3,MATCH(TRUE,COUNTIF(INDIRECT(A1:A3),C4)>0,0))),2,0)

where A1 has admin!B2:C100
A2 admin!d2:e100
A3 admin!f2:g100
 
Upvote 0
Non-array, just nest them

=IFERROR(INDEX(admin!$C$4:$C$100,MATCH(C4,admin!$B$4:$B$100,0)),IFERROR(INDEX(admin!$E$4:$E$100,MATCH(C4,admin!$D$4:$D$100,0)),IFERROR(INDEX(admin!$G$4:$G$100,MATCH(C4,admin!$F$4:$F$100,0)),0)))
 
Upvote 0

Forum statistics

Threads
1,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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