Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default reformat dates to yyyy/mm/dd

I have a worksheet with dates of mm/dd/yyyy

I need to reformat them now to be yyyy/mm/dd

Whats the formula for that?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default reformat dates to yyyy/mm/dd

If the values are really dates, you could just select the range and change the
format to what you want.


Katerinia wrote:

I have a worksheet with dates of mm/dd/yyyy

I need to reformat them now to be yyyy/mm/dd

Whats the formula for that?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default reformat dates to yyyy/mm/dd

hi
formulas cannot return formats only values.
right click the cell in question and apply a custom format....
in the type box of the custom catagory enter....

yyyy/mm/dd

regards
FSt1

"Katerinia" wrote:

I have a worksheet with dates of mm/dd/yyyy

I need to reformat them now to be yyyy/mm/dd

Whats the formula for that?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default reformat dates to yyyy/mm/dd

My concern is the data being uploaded into a database, even though the format
looks like yyyy/mm/dd, the cell value is still mm/dd/yyyy. Will it read the
data the way IT says it should be (yyyy/mm/dd)

"Dave Peterson" wrote:

If the values are really dates, you could just select the range and change the
format to what you want.


Katerinia wrote:

I have a worksheet with dates of mm/dd/yyyy

I need to reformat them now to be yyyy/mm/dd

Whats the formula for that?


--

Dave Peterson
.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default reformat dates to yyyy/mm/dd

It depends on the process that you use to upload them into your database.

If you save a Text file (like .txt, .prn, or .csv), try reformatting, doing the
SaveAs and open the text file in Notepad to verify.

If your importing procedure reads the excel file, I would think that it would be
better to make sure that it knows how to read dates--and handles them correctly
itself.

If the importing procedure reads the field as text (while in excel), you could
use a helper column with a formula like:

=text(a1,"yyyy/mm/dd")
and drag down
Copy|paste special|values and delete???? the original field.

But that won't work if the original data isn't a real date.



Katerinia wrote:

My concern is the data being uploaded into a database, even though the format
looks like yyyy/mm/dd, the cell value is still mm/dd/yyyy. Will it read the
data the way IT says it should be (yyyy/mm/dd)

"Dave Peterson" wrote:

If the values are really dates, you could just select the range and change the
format to what you want.


Katerinia wrote:

I have a worksheet with dates of mm/dd/yyyy

I need to reformat them now to be yyyy/mm/dd

Whats the formula for that?


--

Dave Peterson
.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default reformat dates to yyyy/mm/dd

=text(a1,"yyyy/mm/dd")
Did the trick! IT was happy when they got the file! YAY. Thanks for your
help!

"Dave Peterson" wrote:

It depends on the process that you use to upload them into your database.

If you save a Text file (like .txt, .prn, or .csv), try reformatting, doing the
SaveAs and open the text file in Notepad to verify.

If your importing procedure reads the excel file, I would think that it would be
better to make sure that it knows how to read dates--and handles them correctly
itself.

If the importing procedure reads the field as text (while in excel), you could
use a helper column with a formula like:

=text(a1,"yyyy/mm/dd")
and drag down
Copy|paste special|values and delete???? the original field.

But that won't work if the original data isn't a real date.



Katerinia wrote:

My concern is the data being uploaded into a database, even though the format
looks like yyyy/mm/dd, the cell value is still mm/dd/yyyy. Will it read the
data the way IT says it should be (yyyy/mm/dd)

"Dave Peterson" wrote:

If the values are really dates, you could just select the range and change the
format to what you want.


Katerinia wrote:

I have a worksheet with dates of mm/dd/yyyy

I need to reformat them now to be yyyy/mm/dd

Whats the formula for that?

--

Dave Peterson
.


--

Dave Peterson
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reformat dates David Biddulph[_2_] Excel Discussion (Misc queries) 0 November 4th 09 06:31 PM
Force excel to read dates as D/M/YYYY S Davis Excel Worksheet Functions 6 May 12th 08 07:00 PM
In Excel, is there a way to enter dates in mm/yyyy format? Marshaann_82 Excel Discussion (Misc queries) 2 April 3rd 06 09:44 PM
How to convert the dates from the YY:DD forma to MM/dd/YYYY format Sam Excel Worksheet Functions 4 July 15th 05 12:01 PM
Excel 2003 Mis-Translates Imported DD/MM/YYYY Dates KymY Excel Discussion (Misc queries) 2 April 2nd 05 01:48 PM


All times are GMT +1. The time now is 09:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"