Finding latest date from range not working

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,422
Office Version
  1. 2016
Platform
  1. Windows
I have a range of dates formatted as 'dd/mm/yyyy' and I'm trying to get the latest date using this formula;

=MAX(E2:E150000)

It's not working though - it has given me the latest date as '31/08/2018' when there are other cells with dates as '15/09/2018'.

I've checked that the range is referenced correctly and all of the dates in the range are the same format, so what's going wrong?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
What cell is your '15/09/2018' entry in?

Let's say it is E10. Then tell me what this formula returns:
=ISNUMBER(E10)
 
Upvote 0
Hi - formula returns TRUE
I don't see how that is possible then. That confirms that is a valid date entry.

If I enter those two dates in cells A1 and A1, and then do:
=MAX(A1:A2)
I get the September date every time.

Can you try doing that yourself in a blank sheet and confirm?

The only way it would return the smaller date is if:
- The date you are checking is actually outside of the range in your formula
- The entry is actually a text entry

Which cells exactly do these two dates appear?
They aren't part of any merged cells, are they?
 
Upvote 0
Thanks Joe4, I found the problem - the date had been entered incorrectly as '31/08/2918' - DOH!
 
Upvote 0
Thanks Joe4, I found the problem - the date had been entered incorrectly as '31/08/2918' - DOH!
Yep, that would do it.
Did you just overlook that, or was the date format really "dd/mm/yy" so you only saw two digits of the year?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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