Get the latest date but if there's blank the value should be blank

anneb_87

Board Regular
Joined
Jun 13, 2018
Messages
84
Hello World!

Can some help me?
How can I get the latest date on the following data?But if there's a blank date it should be blank.
I did the MAX IF for the latest date, I just don't know what to do on the condition if there's a blank date.

I would really appreciate your help!

Sample data:
client data received
client A 6/1/2018
client A 6/30/2018
client A 6/15/2018
client A
client A 6/5/2018
client B 6/20/2018
client B 6/12/2018
client B 6/1/2018
client B 6/5/2018

Expected output should be:
client data received
Client A
Client B 6/20/2018
 
This one also works.

{=IF(COUNTIFS($A$2:$A$10,$A13,$B$2:$B$10,""),>0"",MAX(IF(
$A$2:$A$10=A13,$A13,$B$2:$B$10)))

My previous mistake was I have entered " between the MAXIF function.

THANKS EVERYONE!! Such a great help!!??
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You're welcome, welcome to the forum.

Yes, looks like you just had the quotes around your MAX/IF portion of the formula in Post #3 causing problems, glad you worked it out.

EDIT: It's probably a typo, but you have a misplaced comma in Post #11 , the comma in Front of > should go After the 0 (between 0 and "") 0,""
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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