Multi-criteria Index Match is not looping through all Criteria.

RockandGrohl

Well-known Member
Joined
Aug 1, 2018
Messages
801
Office Version
  1. 365
Platform
  1. Windows
Good afternoon all,

This flawless formula I discovered on ExcelJet is now giving me a bit of grief after months of working in various applications.


Here's my code:

Code:
=IFERROR(INDEX(LEFT('[Price Panels 2019.xlsm]All Tours'!$A:$A,6),MATCH(1,(A3<>'[Price Panels 2019.xlsm]All Tours'!$A:$A)*(H3='[Price Panels 2019.xlsm]All Tours'!$C:$C)*ISNUMBER(SEARCH(G3,'[Price Panels 2019.xlsm]All Tours'!$K:$K)),0)),"")

An explanation:

This is returning a code held in Price Panels on the following criteria:

Current Code (A3) can not match anything in Column A in Price Panels (This is the new line giving me grief)
Tourname (H3) must match Tourname in Price Panels column C
Pickup (G3) must match pickup in Price Panels column K (this is held in a long list for each row, hence the pickup)


This was working without the first criteria, but the issue was it would just return the same result as I was putting in.

To clarify, this looks at people who want to book a tour on a date, but it's full. This system then looks at Price Panels (our huge list of products and availability) and scans down the list to find the same tour on a later date.

The multi-criteria Index Match syntax is as follows:

Code:
[COLOR=#FF66FF]{=INDEX(range1,MATCH(1,(A1=range2)*(B1=range3)*(C1=range4),0))}[/COLOR]

So any criteria's can be added with the simple addition of another "*(criteria)"

This should convert the whole lot to, like, "0,1,1" to say not a match, and only "1,1,1" should be a match.


My problem is the formula is sometimes returning a correct match and other times not.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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