Deal with 1900 year dates

Mafy

New Member
Joined
Jul 30, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

Just followed the steps recommended by 'Mr. Excel' on how to deal with dates before 1900. It works perfectly well, except when the ended year date is 1900.

birth 20/07/1898
death 01/01/1900
birthmodified 20/07/2898 Formula =LEFT(C2,LEN(C2)-4)&RIGHT(C2,4)+1000
deathmodified #VALUE! Formula =LEFT(D2,LEN(D2)-4)&RIGHT(D2,4)+1000

Any ideas on how to sort this out are very welcome.

Thank you in advance, Mafy
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I am just spitballing here, but maybe doublecheck to make sure that the 1900 date being stored in D2 is being stored as text and not as a date and see if that helps.
 
Upvote 0
Excel is not recognising < 1900 as a date so you are working with a text value.
From 1900 Excel does recognise it as a date so you are working with a number/date.

What are you trying to do ?
 
Upvote 0
See if this works,
Excel Formula:
=IFERROR(EDATE(D2,12000),LEFT(D2,LEN(D2)-4)&RIGHT(D2,4)+1000)
It is likely that this will show the date serial in the cell, in which case you would need to format the cell as dd/mm/yyyy
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

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