Problem Exporting 19th Century Dates To Excel

jmhoke

New Member
Joined
Apr 5, 2002
Messages
14
I need to export a large Access table to Excel. Some of the fields in the Access table are date fields, and some of the dates are 19th Century dates (example - 12/15/1899). The problem is - these exported dates appear in Excel as ##########. How do I export 19th centruy dates into Excel? This problem occcurs when I try to export a query of the Access table, and when I use VBA to export the Access table data.

Thanks.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Why do you need to export to Excel?

Can you not do whatever you want in Access?
 
Upvote 0
I need to export the data into Excel as part of a larger project to migrate/convert part of the Access application to Excel. The reason for the migration/conversion is a little complicated.
 
Upvote 0
Hi

Can you not convert the values to text while you transfer to Excel and then deal as you need with at the other end?

Just an idea
Martin
 
Upvote 0
Thanks for the idea. I had not thought of that. I think I will have to follow your suggestion. I had hoped that there was some easier way around the problem.
 
Upvote 0
Text is the way to go. Excel does not recognise dates prior to 1/1/1900 as dates. They are text anyway (as far as Excel is concerned), and is you try to force them into a date format you will get the problems you mentioned.

Denis
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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