Managing date formats.

Raypinn

New Member
Joined
Nov 28, 2016
Messages
3
I have converted some Apple Numbers spreadsheets to Excel for Mac spreadsheets.
I want link a date from sheet 1 into Sheet 2. and get the following example results.
Sheet 1 shows date in number format: 42702 and displays Date format 28 November 2016
Sheet 2 shows as 29 November 2020

I know the problem relates to the 2 date systems 1900 & 1904 but I can't find a way to convert them.

Hope somebody can help.

Cheers Ray
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You're best off using a formula to add or subtract 1462 (which is the amount of days in 4 years).
For example, if you have a date in cell A1 which is in the 1904 system but want to convert it to 1900 then use formula;

Code:
=A1-1462

Does that make sense?
 
Upvote 0
How are you linking the date from Sheet1 to Sheet2?

If I put 28 November 2016 in A1 on Sheet1 and put =Sheet1!A2 in A1 on Sheet2 I see 28 November 2016 in A1 on Sheet2.
 
Upvote 0
Hello ,

Use this formula on sheet 2:
=Sheet1!A1+1462

Please let me know if any problem there.
 
Last edited:
Upvote 0
Hi.

Suggestion:
Code:
Option Explicit

Sub convert_date()
Dim rngC As Range
Application.EnableEvents = False
For Each rngC In Range("A1:Z100") 'range
If IsDate(rngC.Value) = True Then
rngC.Value = rngC.Value + 1462
End If
Next
Application.EnableEvents = True
End Sub
 
Upvote 0
You're best off using a formula to add or subtract 1462 (which is the amount of days in 4 years).
For example, if you have a date in cell A1 which is in the 1904 system but want to convert it to 1900 then use formula;

Code:
=A1-1462

Does that make sense?

Thanks, will try it:)
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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