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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,344
Office Version
  1. 365
Platform
  1. Windows
Why do you need to export to Excel?

Can you not do whatever you want in Access?
 

jmhoke

New Member
Joined
Apr 5, 2002
Messages
14
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.
 

pritcham

Board Regular
Joined
Oct 26, 2005
Messages
128
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
 

jmhoke

New Member
Joined
Apr 5, 2002
Messages
14
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.
 

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,022
Messages
5,834,994
Members
430,331
Latest member
Syed Yasir Hannan

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
Top