The Straight Dope

Go Back   Straight Dope Message Board > Main > General Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-06-2003, 08:56 PM
rexnervous rexnervous is offline
Guest
 
Join Date: May 2002
Aargh! Can anyone help me custom format this numeral in Excel?

Should be easy, but I can't figure it out.

I have one column of data that looks like this:

20030125115000

This is non-parsed date/time data; in other words, this numeral marks 11:50:00 AM on January 25, 2003. (hours are military time, so there's no 'marker' for AM v. PM).

I've tried various ways of customizing format, but I guess I don't understand how the tool works.

Anyone know?

I don't care how the output looks per se, just want it readable.
Reply With Quote
Advertisements  
  #2  
Old 08-06-2003, 08:59 PM
rexnervous rexnervous is offline
Guest
 
Join Date: May 2002
I should add that I don't care about the time, so if there's a way to just 'delete' the last six digits and only display date that'd be even better.
Reply With Quote
  #3  
Old 08-06-2003, 09:09 PM
starfish starfish is offline
Guest
 
Join Date: Oct 1999
goto format, cell, type in:
yyyymdhms

If you don't want the time, leave off hms
Reply With Quote
  #4  
Old 08-06-2003, 09:24 PM
rexnervous rexnervous is offline
Guest
 
Join Date: May 2002
thanks, but that didn't do it. I've tried all kinds of variations of that, but it's not doing anything.

No matter what I do, all I get is a seemingly unending string of "#" (###################...)
Reply With Quote
  #5  
Old 08-06-2003, 09:43 PM
greyseal greyseal is offline
Guest
 
Join Date: Jul 2000
Quote:
No matter what I do, all I get is a seemingly unending string of "#" (###################...)
Make sure that the column is large enough to fit the formatted data in.
Reply With Quote
  #6  
Old 08-06-2003, 09:43 PM
Dewey Finn Dewey Finn is offline
Charter Member
 
Join Date: Apr 2003
Posts: 13,214
Assuming that the data is in cell A1, try this in cell A2:

=DATE(MID(A1,1,4),MID(A1,5,2),MID(A1,7,2))
Reply With Quote
  #7  
Old 08-06-2003, 09:58 PM
greyseal greyseal is offline
Guest
 
Join Date: Jul 2000
Actually, after fooling around with this example a bit, it doesn't seem to work.

SMTWTFS seems to have the best workaround.
Reply With Quote
  #8  
Old 08-06-2003, 10:09 PM
5 time champ 5 time champ is offline
Charter Member
 
Join Date: Oct 2001
Location: Podium # 3
Posts: 2,390
FORMAT/
CELLS/
NUMBER :

####-##-##-######

returns:

2003-01-25-115000

Appears much more "readable"
Reply With Quote
  #9  
Old 08-06-2003, 10:19 PM
rexnervous rexnervous is offline
Guest
 
Join Date: May 2002
Thanks for replies. I did it SMTWTFS's way.
Reply With Quote
Reply

Bookmarks

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

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


All times are GMT -5. The time now is 01:42 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Send questions for Cecil Adams to: cecil@chicagoreader.com

Send comments about this website to: webmaster@straightdope.com

Terms of Use / Privacy Policy

Advertise on the Straight Dope!
(Your direct line to thousands of the smartest, hippest people on the planet, plus a few total dipsticks.)

Publishers - interested in subscribing to the Straight Dope?
Write to: sdsubscriptions@chicagoreader.com.

Copyright © 2013 Sun-Times Media, LLC.