Combining Two Index and Match Formula?

Joined
Oct 29, 2015
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to combine two Index and Match Formula.

1. The first part of the formula looks up a particular indices for a particular date to return a value.
2. The second part of the formula looks at which particular indices a contractor is working to to yield a TRUE / 0 answer but not all contractor's will have the same indices.

For the first part:

=INDEX(Base!D$2:D$9,MATCH(Calcs!$G14,Base!C$2:C$9)) shown in H14:J14

For the second part:

=INDEX(H$2:H$11,MATCH($F19,$G$2:$G$11,0)) shown elsewhere

The cells highlighted in red should in fact be zero as John Bloggs does not have those indices. Can these be combined or do I have to use an IF formula and also trying to do this without using any vlookups if I can?
Index and Match (2).png
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I have managed to solve this myself with X Lookup. I have never used this function before. :cool:

=XLOOKUP($F14,$G$2:$G$11,H$2:H$11,"",0)*XLOOKUP(H$1,$H$41:$AH$41,XLOOKUP($G14,$G$42:$G$49,$H$42:$AH$49))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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