Index Match to return a maximum value not equal to a set criteria.

roubles

New Member
Joined
Mar 21, 2017
Messages
2

A
B
C
1
Part No
Order
Date
2
EC-00004
113437
04/01/2017
3
Part No
Order
Date
4
EC-00005
113437
03/01/2017
5
EC-00004
113437
04/01/2017
6
EC-00004
111791
17/03/2017
7
EC-00006
111791
12/01/2017
8
EC-00004
111793
16/02/2017

<tbody>
</tbody>

I currently have a table as shown above where I can enter values into "A2" & "B2" with a formulae in cell "C2" as follows:-
=INDEX($C$4:$C$8,MATCH($A$2&$B$2,$A$4:$A$8&$B$4:$B$8,0))

This currently returns the first value in range "C4:C8" which matches both the criteria entered in cells "A2" & "B2".

However I want to modify the formulae so that it returns the latest (highest) date (not first date) in "C4:C8" where:-
“A2” Matches “A4:A8” (As currently)
“B2” Does not Match “B4:B8” (So not equal to, rather than equal to).

So in this example the current formulae returns “04/01/2017” but in the revised formulae it will return "17/03/2017".

I’ve searched for a solution but I seem unable to pull all the information I’ve found into a single formulae that works, so I’m hoping someone out there can help me.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
try


Excel 2012
ABC
1Part NoOrderDate
2EC-0000411343717/03/2017
3Part NoOrderDate
4EC-0000511343703/01/2017
5EC-0000411343704/01/2017
6EC-0000411179117/03/2017
7EC-0000611179112/01/2017
8EC-0000411179316/02/2017
Sheet3
Cell Formulas
RangeFormula
C2{=MAX(IF(A4:A8=A2,IF(B4:B8<>B2,C4:C8)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Brilliant..... thanks for your help, guess I was over complicating a bit with my original approach to the problem.
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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