INDEX MATCH wrong value

SH1988

New Member
Joined
Sep 6, 2019
Messages
1
Hi need your help with the func that return the wrong numbers for part of my cells.
my func :
{=INDEX($C$5:$C$18044,MATCH(MAX(IF($B$5:$B$18044=B6,$E$5:$E$18044)),$E$5:$E$18044,0))}
My Data looks like this:

[TABLE="width: 865"]
<colgroup><col><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD]MailingType[/TD]
[TD]MailingJN[/TD]
[TD]Report Date[/TD]
[TD]MailingDate W/E[/TD]
[TD] Issue Count By Date [/TD]
[TD] date of the highest Issue count [/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]09/15/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD][/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]09/22/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 4[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]09/29/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 132[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]10/06/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 290[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]10/13/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 148[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]10/20/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 77[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]10/27/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 33[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]11/03/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 18[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]11/10/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 28[/TD]
[TD="align: right"]10/06/2018[/TD]
[/TR]
[TR]
[TD]ADD Inq[/TD]
[TD]M268[/TD]
[TD="align: right"]11/17/2018[/TD]
[TD="align: right"]09/14/2018[/TD]
[TD] 12[/TD]
[TD="align: right"]10/06/2018

[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 1042"]
<colgroup><col><col><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]04/21/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD][/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]04/28/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] 3[/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]05/05/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] 11[/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]05/12/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] 12[/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]05/19/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] 17[/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]05/26/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] 9[/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]06/02/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] 4[/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]06/09/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] - [/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]06/16/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] - [/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
[TR]
[TD]JONAI[/TD]
[TD]L529[/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]04/20/2018[/TD]
[TD] - [/TD]
[TD="align: right"]06/23/2018[/TD]
[TD="align: right"]64[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Welcome to the MrExcel Board!

The formula as presented can return incorrect results if there is a tie on the Issue Count in different MailingJN's. Try:


Book1
ABCDEFG
1
2
3
4MailingTypeMailingJNReport DateMailingDate W/EIssue Count By Datedate of the highest Issue count
5ADD InqM2689/15/20189/14/201810/6/2018
6ADD InqM2689/22/20189/14/2018410/6/2018
7ADD InqM2689/29/20189/14/201813210/6/2018
8ADD InqM26810/6/20189/14/201829010/6/2018
9ADD InqM26810/13/20189/14/201814810/6/2018
10ADD InqM26810/20/20189/14/20187710/6/2018
11ADD InqM26810/27/20189/14/20183310/6/2018
12ADD InqM26811/3/20189/14/20181810/6/2018
13ADD InqM26811/10/20189/14/20182810/6/2018
14ADD InqM26811/17/20189/14/20181210/6/2018
15#N/A
16JONAIL5294/21/20184/20/20185/19/201864
17JONAIL5294/28/20184/20/201835/19/201864
18JONAIL5295/5/20184/20/2018115/19/201864
19JONAIL5295/12/20184/20/2018125/19/201864
20JONAIL5295/19/20184/20/2018175/19/201864
21JONAIL5295/26/20184/20/201895/19/201864
22JONAIL5296/2/20184/20/201845/19/201864
23JONAIL5296/9/20184/20/2018-5/19/201864
24JONAIL5296/16/20184/20/2018-5/19/201864
25JONAIL5296/23/20184/20/2018-5/19/201864
Sheet2
Cell Formulas
RangeFormula
F5{=INDEX($C$5:$C$18044,MATCH(B5&"|"&MAX(IF($B$5:$B$18044=B5,$E$5:$E$18044)),$B$5:$B$18044&"|"&$E$5:$E$18044,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
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