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]
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]