Complex INDEX MATCH - Now Add Max

horizonflame

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

I have a couple of Index Match formulas that are working well for me but I've realised there may be more than one result to find and I only want the latest date.

My formulas sometimes have two match criteria and two index location, but I'm not sure how to return the highest valued match?



Code:
=IFERROR(INDEX(GATED!$H$3:$H$1000,MATCH(1,INDEX(("Completed EUT Approved"=GATED!$F$3:$F$1000)*($B5=GATED!$J$3:$J$1000),0,1),0)),IFERROR(INDEX(BLOCK!$H$3:$H$1000,MATCH(1,INDEX(("Completed EUT Approved"=BLOCK!$F$3:$F$1000)*($B5=BLOCK!$J$3:$J$1000),0,1),0)),IFERROR(INDEX('IW66'!$H$3:$H$1000,MATCH(1,INDEX(("Completed EUT Approved"='IW66'!$F$3:$F$1000)*($B5='IW66'!$J$3:$J$1000),0,1),0)),"")))


May thanks :)
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
This may work. It depends what the IFERROR is meant to be trapping.

=IF(COUNTIFS(GATED!$F$3:$F$1000,"Completed EUT Approved",GATED!$J$3:$J$1000,B5),MAXIFS(GATED!$H$3:$H$1000,GATED!$F$3:$F$1000,"Completed EUT Approved",GATED!$J$3:$J$1000,B5),IF(COUNTIFS(BLOCK!$F$3:$F$1000,"Completed EUT Approved",BLOCK!$J$3:$J$1000,B5),MAXIFS(BLOCK!$H$3:$H$1000,BLOCK!$F$3:$F$1000,"Completed EUT Approved",BLOCK!$J$3:$J$1000,B5),IF(COUNTIFS('IW66'!$F$3:$F$1000,"Completed EUT Approved",'IW66'!$J$3:$J$1000,B5),MAXIFS('IW66'!$H$3:$H$1000,'IW66'!$F$3:$F$1000,"Completed EUT Approved",'IW66'!$J$3:$J$1000,B5),"")))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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