Can Excel Handle Dates Before 1900 (Yes!) | Difference in Years, Month or Days

Can Excel Handle Dates Before 1900 (Yes!) | Difference in Years, Month or Days

Chester Tugwell

1 год назад

5,093 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@IvanPetrov-rs1kq
@IvanPetrov-rs1kq - 01.09.2023 18:09

Hi Chester, my question is is it possible that the pre-1900 date in column D can exist in a format appropriate for ascending (descending) sort options of dates? The date format is impossible by excel, the text format doesn't sort dates properly.

Ответить
@grimaldasgrydas
@grimaldasgrydas - 14.08.2023 02:06

Please note that adding 1000 years would, in many cases, cause issues with leap years AND return wrong weekdays etc. The gregorian calendar resets completely after every 400 years, so you should rather add 2000 years instead. After that, you should get correct results with any date-related calculation whenever using Gregorian calendar. Using Julian calendar with this will yield erroneous results.

You will still run into errors, however, because Excel cannot handle dates past 9999-12-31, or 7999-12-31 in this case, but we rarely need such dates anyway so it should be okay! Also, you cannot go below 99 BC (= year -100 CE) simply because you will, again, run into Excel's inability to handle dates before 1900...

Ответить
@sergiodeiana3045
@sergiodeiana3045 - 02.07.2023 11:50

👏👏👏👏👍👍👍

Ответить
@FrankMLoSchiavo
@FrankMLoSchiavo - 04.06.2023 02:42

This is helpful. Thx! Keep up the great work!

By adding 1000 years and calculating differences between dates, are leap years still handled correctly? At this moment I can't wrap my mind around that potential issue.

Ответить
@wayneedmondson1065
@wayneedmondson1065 - 04.01.2023 02:32

Clever! Thanks Chester!!

Ответить
@muhammedsinankc6553
@muhammedsinankc6553 - 03.01.2023 20:51

I need a format that update dates in every month to that months date
Can you help me on that

Ответить
@ivancortinas5427
@ivancortinas5427 - 03.01.2023 18:12

Essential tutorial. The explanation with the treatment with dates prior to 1900 is very good. Thanks Chester.

Ответить
@Quidisi
@Quidisi - 03.01.2023 17:25

Wow. I've used DATEDIF many times, but I had no idea you could use "YM" and "MD". That is soooooo helpful!
I wonder why MS refuses to properly support/incorporate the DATEDIF function into Excel? As in, no IntelliSense, and warnings of deprecation.
I know it was a Lotus crossover function, but my gosh, it is so useful - just fully adopt it, Microsoft!!!

Ответить