#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default Formatting Dates

I have looked through other threads but can't find an answer to my query. I
have dates that I am unable to format. We run an SQL query at work and the
dates came back as yyyy-mm-dd, so we were trying to format them as dd/mm/yyyy
but they refuse to change. We tried the normal date format, no good, then we
tried the custom format and still no good. Does anyone have any ideas as to
how we might be able to fix this?
Cheers
Lynda

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Formatting Dates

Hi Lynda,
What do you get, try doing text to columns for that imported dates or in an
auxiliar column enter
=Trim(A1)
to trim any blank space then copy and paste values and format it see what
happens
Hope this helps

"Lynda" wrote:

I have looked through other threads but can't find an answer to my query. I
have dates that I am unable to format. We run an SQL query at work and the
dates came back as yyyy-mm-dd, so we were trying to format them as dd/mm/yyyy
but they refuse to change. We tried the normal date format, no good, then we
tried the custom format and still no good. Does anyone have any ideas as to
how we might be able to fix this?
Cheers
Lynda

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Formatting Dates

You may be having problems with different international standards. It look
like you ar eusing English standards and the data my of originated in the US.
You also may have a single quote in front of the string which is forcing
TEXT.

You can remove the single quotes by using worksheet REPLACE (menu edit
Replace) and in the from box put in a single quote and put in the to box
nothing.

Using the datevalue function may solve the problem

=DATEVALUE(I3)

Yo also may need to us a formula to extract the year month and day.
something like this

=date(left(I3,4),mid(I3,6,2),right(I3,2))



"Eduardo" wrote:

Hi Lynda,
What do you get, try doing text to columns for that imported dates or in an
auxiliar column enter
=Trim(A1)
to trim any blank space then copy and paste values and format it see what
happens
Hope this helps

"Lynda" wrote:

I have looked through other threads but can't find an answer to my query. I
have dates that I am unable to format. We run an SQL query at work and the
dates came back as yyyy-mm-dd, so we were trying to format them as dd/mm/yyyy
but they refuse to change. We tried the normal date format, no good, then we
tried the custom format and still no good. Does anyone have any ideas as to
how we might be able to fix this?
Cheers
Lynda

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default Formatting Dates

Thank you Eduardo, I will try this when I get back to work tomorrow and let
you know how I got on.

Cheers
Lynda

"Eduardo" wrote:

Hi Lynda,
What do you get, try doing text to columns for that imported dates or in an
auxiliar column enter
=Trim(A1)
to trim any blank space then copy and paste values and format it see what
happens
Hope this helps

"Lynda" wrote:

I have looked through other threads but can't find an answer to my query. I
have dates that I am unable to format. We run an SQL query at work and the
dates came back as yyyy-mm-dd, so we were trying to format them as dd/mm/yyyy
but they refuse to change. We tried the normal date format, no good, then we
tried the custom format and still no good. Does anyone have any ideas as to
how we might be able to fix this?
Cheers
Lynda

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default Formatting Dates

Hi Joel, (BTW we are using 2003) I did notice when we went into the format
cells that the date format was showing the English (US) so we changed it to
English (Australia) but that didn't work either. I will also try your
suggestion when I get back to work tomorrow and let you know how I get on.

Cheers
Lynda

"Joel" wrote:

You may be having problems with different international standards. It look
like you ar eusing English standards and the data my of originated in the US.
You also may have a single quote in front of the string which is forcing
TEXT.

You can remove the single quotes by using worksheet REPLACE (menu edit
Replace) and in the from box put in a single quote and put in the to box
nothing.

Using the datevalue function may solve the problem

=DATEVALUE(I3)

Yo also may need to us a formula to extract the year month and day.
something like this

=date(left(I3,4),mid(I3,6,2),right(I3,2))



"Eduardo" wrote:

Hi Lynda,
What do you get, try doing text to columns for that imported dates or in an
auxiliar column enter
=Trim(A1)
to trim any blank space then copy and paste values and format it see what
happens
Hope this helps

"Lynda" wrote:

I have looked through other threads but can't find an answer to my query. I
have dates that I am unable to format. We run an SQL query at work and the
dates came back as yyyy-mm-dd, so we were trying to format them as dd/mm/yyyy
but they refuse to change. We tried the normal date format, no good, then we
tried the custom format and still no good. Does anyone have any ideas as to
how we might be able to fix this?
Cheers
Lynda



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Formatting Dates

On Tue, 18 Aug 2009 05:05:01 -0700, Lynda
wrote:

I have looked through other threads but can't find an answer to my query. I
have dates that I am unable to format. We run an SQL query at work and the
dates came back as yyyy-mm-dd, so we were trying to format them as dd/mm/yyyy
but they refuse to change. We tried the normal date format, no good, then we
tried the custom format and still no good. Does anyone have any ideas as to
how we might be able to fix this?
Cheers
Lynda


If none of them are changing, then they are probably being imported as Text.

One solution:

Select the column of dates.
Select the Text-to-Columns wizard (Data menu) and, when you get to the
appropriate step, select YMD as the date format. After you do this, Excel
should convert them to "real" Excel dates and you should be able to format them
however you wish.
--ron
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 115
Default Formatting Dates

Eduardo, Joel and Ron, thank you all. Ron, I didn't get to try your
suggestion but I will put it in my 'Computer Tips' folder for future
reference.

Thank you all once again.

Cheers
Lynda

"Ron Rosenfeld" wrote:

On Tue, 18 Aug 2009 05:05:01 -0700, Lynda
wrote:

I have looked through other threads but can't find an answer to my query. I
have dates that I am unable to format. We run an SQL query at work and the
dates came back as yyyy-mm-dd, so we were trying to format them as dd/mm/yyyy
but they refuse to change. We tried the normal date format, no good, then we
tried the custom format and still no good. Does anyone have any ideas as to
how we might be able to fix this?
Cheers
Lynda


If none of them are changing, then they are probably being imported as Text.

One solution:

Select the column of dates.
Select the Text-to-Columns wizard (Data menu) and, when you get to the
appropriate step, select YMD as the date format. After you do this, Excel
should convert them to "real" Excel dates and you should be able to format them
however you wish.
--ron

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
Formatting Dates Homero Excel Worksheet Functions 6 May 28th 08 01:08 PM
Formatting Dates MEAD5432 Excel Worksheet Functions 7 June 28th 07 08:04 PM
Formatting of Dates Hervinder Excel Discussion (Misc queries) 1 June 25th 07 10:35 AM
formatting dates CC Excel Discussion (Misc queries) 14 June 1st 06 09:20 PM
Dates Not Formatting as Dates awacs Excel Worksheet Functions 4 September 13th 05 10:35 PM


All times are GMT +1. The time now is 08:14 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"