A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formatting Dates



 
 
Thread Tools Display Modes
  #1  
Old August 18th, 2009, 01:05 PM posted to microsoft.public.excel.misc
Lynda
external usenet poster
 
Posts: 160
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  
Old August 18th, 2009, 01:12 PM posted to microsoft.public.excel.misc
eduardo
external usenet poster
 
Posts: 2,131
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  
Old August 18th, 2009, 01:23 PM posted to microsoft.public.excel.misc
Joel
external usenet poster
 
Posts: 2,855
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  
Old August 18th, 2009, 01:26 PM posted to microsoft.public.excel.misc
Lynda
external usenet poster
 
Posts: 160
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  
Old August 18th, 2009, 01:38 PM posted to microsoft.public.excel.misc
Lynda
external usenet poster
 
Posts: 160
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  
Old August 18th, 2009, 02:08 PM posted to microsoft.public.excel.misc
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
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  
Old August 19th, 2009, 09:29 AM posted to microsoft.public.excel.misc
Lynda
external usenet poster
 
Posts: 160
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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:41 PM.


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