Excel Dates issue

Murray Brown
Murray Brown used Ask the Experts™
on
Hi. I have a list of 800 dates in Excel that I am trying to load to a database. The problem
is that most dates are not recognized as dates using the "IsDate" function unless
I manually type the date like the first one in the list. How can I convert all these dates
so my code recognizes them as dates?

28 September 2010
17/05/2010
01/09/2010
17/11/2010
20/07/2009
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
Hi,

You could type 1 in another cell,  copy it and paste special Multiply to convert them to dates

Regards
Cost Accountant
Top Expert 2012
Commented:
you could convert the dates to '234' notation using TEXT which seems to be easily read by databases etc...

=TEXT(CellWithDate,"dd mmm yyyy")
Rob HensonFinance Analyst
Commented:
Steve, to get the full date as per the example given, you would need "dd mmmm yyyy".

"dd mmm yyyy" would only give "28 Sept 2010" rather than "28 September 2010".

Thanks
Rob H
Murray BrownASP.net/VSTO Developer

Author

Commented:
Thank you all for the help
SteveCost Accountant
Top Expert 2012

Commented:
rob, my suggestion wasn't to get to the full date, but to a date which tends to be accepted on uploads.
The '234' date format is not effected by region and seems to work on almost any upload, being recognised as a date.
I tend to use it in most up-down transfers.
(but yes, 244 is just as valid, but takes up unnecessary space)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial