Max dates

anneb_87

Board Regular
Joined
Jun 13, 2018
Messages
84
Hi Experts!

I need to get the maximum DAY dates of the following clients
Client Max day dates
A 15
B
C


Here is the source data:
CLIENT CATEGORY DATE RECEIVED
A MEDICAL 7-NOV-19
A DENTAL 15-NOV-19
A VISION 15-NOV-19
B MEDICAL 15-NOV-19
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Which edition of excel are you using?

Your sample appears to be in order by client name, then by date. Is the actaul source data sorted in any specific order? If yes, then what is that order?
 
Upvote 0
Which edition of excel are you using?

Your sample appears to be in order by client name, then by date. Is the actaul source data sorted in any specific order? If yes, then what is that order?

It was just my example , there are really no specific order. Do you have any thoughts on how should I get the max day date? Thanks in advance!
 
Upvote 0
Which edition of excel?

I do have several ideas, the lack of specific order has eliminated one of them, the rest depend on which version of excel you are using.
 
Upvote 0
Windows 10 is an operating system, not an excel edition.

Excel would be 2007, 2010, 2013, 2016, 2019 or office 365.
 
Upvote 0
In that case, you should be able to use the maxifs function. You will need to change the sheet names and ranges as applicable to match your actual data.

=DAY(MAXIFS(SourceData!C:C,SourceData!A:A,OUTPUT!A2))

Note that the formula will return 0 for any lient with no data, you may wish to use conditional formatting to hide this.
 
Upvote 0
Thanks Jason, Can you be more patient with me. Our source now is more complicated (for me). Can you help me again?? I got a really big data here

Here is what I need to fill in:

ClientMax Day Received
A
19​
B
C
D


Here is the source data:
ClientOctober DataNovember DataDecember Data
A
10/18/2019​
11/19/2019​
12/19/2019​
B
C
D
 
Upvote 0
If I'm following that correctly then this formula should work as long as there is only 1 row of data per client.

The formula assumes that the output table is in A1:A5 and that the source table is in A1:D5 (adjust to suit as needed).

=IFERROR(AGGREGATE(14,6,DAY(INDEX(Source!$A:$D,MATCH(Output!$A2,Source!$A$1:$A$5,0),0)),1),"")

If you have more than 1 row for a client then it is going to be a little more difficult.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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