MATCH not Returning correct value

szymagic

Board Regular
Joined
Jul 8, 2016
Messages
61
Hello all, this is driving me absolutely mad, MATCH is returning the wrong value, for only this set of data.

0.59
30
0.37
35
1.31
55
25
0
30
0.59
35
0.37
40
0
45
0
50
0
55
1.31
60
0
65
0
70
0
10

<tbody>
</tbody>
Where you see "10" at the bottom is the formula =MATCH(MAX(F5:F14),F5:F14) -------------[F5:F14 is the range including 0.59, 0.37 and 1.31]


The formulas in the F5:F14 are {=SUM(IF(($C$2:$C$4=E6),$B$2:$B$4,0))} ---------- E6 in this case is referencing "25" and that formula is dragged down through "70"


Clearly the max value is in position 7 not 10.


Thanks for any feedback!
 

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).
Add a zero at the end of your match formula to specify the match type.

Formula would become =MATCH(MAX(F5:F14),F5:F14,0)
 
Upvote 0
Wow, am I foolish!?

Thanks, works perfect, I knew it had to be something simple I was overlooking!
 
Upvote 0
Wow, am I foolish!?

Thanks, works perfect, I knew it had to be something simple I was overlooking!

Glad to help! Although it's optional, I always include the match type to avoid situations like this. For some reason, it chose to use 1 (Less than) instead of 0 (Exact match).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,530
Messages
6,125,350
Members
449,220
Latest member
Edwin_SVRZ

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