PC Review


Reply
Thread Tools Rate Thread

date confusion

 
 
mepetey
Guest
Posts: n/a
 
      21st Dec 2007
general question here guys, I get a report that is in CSV form on a weekly
basis that inludes dates. Some of the data has the date format reversed.
i.e. 02/01 instead of 01/02.

I am ok with the logic of sorting this issue BUT, sometimes the data
transforms into a number. i.e. 49025. why should this be? how can I convert
it back to a "real" date.?

TIA any ideas


 
Reply With Quote
 
 
 
 
brittonsm
Guest
Posts: n/a
 
      21st Dec 2007
Are you doing anything other than opening the CSV in Excel? The
number i.e. 49025 is the date serial number - To convert back to a
date just change the cells format: Format->Cells (Ctrl-1)

Help?

On Dec 21, 11:33*am, "mepetey" <peter.terr...@tiscali.co.uk> wrote:
> general question here guys, *I get a report that is in CSV form on a weekly
> basis that inludes dates. Some of the data has the date format reversed.
> i.e. 02/01 instead of 01/02.
>
> I am ok with the logic of sorting this issue BUT, sometimes the data
> transforms into a number. i.e. 49025. why should this be? *how can I convert
> it back to a "real" date.?
>
> TIA any ideas


 
Reply With Quote
 
mepetey
Guest
Posts: n/a
 
      21st Dec 2007
nope. just opening up the file. Thing is, some of the cells are ok. I
applied a TRIM and LEFT operator and in the affected cells i get a number.
In the others i get part of the date. I heap big confused...........



"brittonsm" <(E-Mail Removed)> wrote in message
news:3fcbdf79-919c-4462-a1ab-(E-Mail Removed)...
Are you doing anything other than opening the CSV in Excel? The
number i.e. 49025 is the date serial number - To convert back to a
date just change the cells format: Format->Cells (Ctrl-1)

Help?

On Dec 21, 11:33 am, "mepetey" <peter.terr...@tiscali.co.uk> wrote:
> general question here guys, I get a report that is in CSV form on a weekly
> basis that inludes dates. Some of the data has the date format reversed.
> i.e. 02/01 instead of 01/02.
>
> I am ok with the logic of sorting this issue BUT, sometimes the data
> transforms into a number. i.e. 49025. why should this be? how can I
> convert
> it back to a "real" date.?
>
> TIA any ideas



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      22nd Dec 2007
First, I'm not sure I'd trust excel to open a .CSV file and give me the right
date for a string that was ambiguous--
02/01 could mean
February 1 of the current year.
January 2 of the current year.
February 2001 (no day)
2002 January (no day)

I'd rename the .csv to .txt and then open it via File|Open

Then I'd be able to see the text import wizard and I could specify how I want
that field treated (general, date (ymd, dmy, ...), text or ignore.

=====
If I enter 49025 in a cell and give it a date format, I get March 22, 2034 (with
1900 the base year).

What do you see in the text file when you look at that field on that line?

===
If the 49025 was just some numbers you posted in the message and you are seeing
some 5 digit number instead of all dates in the worksheet, then you may be
looking at formulas.

If you select the cell and look at the formulabar, do you see a real date?

If yes, try:
tools|Options|View tab|uncheck formulas
(xl2003 menu system)
(ctrl-` <ctrl-backquote to the left of the 1/! key on my USA keyboard> is the
shortcut toggle.)

mepetey wrote:
>
> nope. just opening up the file. Thing is, some of the cells are ok. I
> applied a TRIM and LEFT operator and in the affected cells i get a number.
> In the others i get part of the date. I heap big confused...........
>
> "brittonsm" <(E-Mail Removed)> wrote in message
> news:3fcbdf79-919c-4462-a1ab-(E-Mail Removed)...
> Are you doing anything other than opening the CSV in Excel? The
> number i.e. 49025 is the date serial number - To convert back to a
> date just change the cells format: Format->Cells (Ctrl-1)
>
> Help?
>
> On Dec 21, 11:33 am, "mepetey" <peter.terr...@tiscali.co.uk> wrote:
> > general question here guys, I get a report that is in CSV form on a weekly
> > basis that inludes dates. Some of the data has the date format reversed.
> > i.e. 02/01 instead of 01/02.
> >
> > I am ok with the logic of sorting this issue BUT, sometimes the data
> > transforms into a number. i.e. 49025. why should this be? how can I
> > convert
> > it back to a "real" date.?
> >
> > TIA any ideas


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
date confusion UGAJohn Microsoft Access Queries 2 2nd Feb 2010 07:17 PM
Re: date confusion Rick Rothstein Microsoft Excel Programming 0 11th Nov 2009 08:36 AM
Date vs h:mm:ss confusion Barry Microsoft Excel New Users 2 8th Nov 2005 12:36 AM
date confusion djc Microsoft VB .NET 4 14th Dec 2004 09:34 PM
Date Confusion Charles D Clayton Jr Microsoft Access Queries 3 24th Nov 2003 06:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 AM.