Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
galsaba
 
Posts: n/a
Default How to convert date to text

I have a field - date. Let's say that one of the values is 6/20/05.
How can I convert it to a number field, for example 6/20/05
will be shown as 20050605?

Thanks,

galsaba

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=TEXT(A1,"yyyymmdd")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"galsaba" wrote in message
oups.com...
I have a field - date. Let's say that one of the values is 6/20/05.
How can I convert it to a number field, for example 6/20/05
will be shown as 20050605?

Thanks,

galsaba



  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Try =YEAR(A1)*10000+MONTH(A1)*100+DAY(A1)
But you MUST format the cell after typing the formula because Excel wants a
date format

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"galsaba" wrote in message
oups.com...
I have a field - date. Let's say that one of the values is 6/20/05.
How can I convert it to a number field, for example 6/20/05
will be shown as 20050605?

Thanks,

galsaba



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
Macro to convert text to date Nortos Excel Worksheet Functions 2 May 11th 05 10:42 AM
How do I convert a number formated as a date to text in Excel? BrotherNov Excel Discussion (Misc queries) 5 March 2nd 05 03:51 PM
EXTRACT TEXT FROM A DATE Ronbo Excel Worksheet Functions 5 February 1st 05 07:39 AM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
How do I convert a Julian date into a regular date? Jessica Excel Discussion (Misc queries) 4 December 2nd 04 02:54 AM


All times are GMT +1. The time now is 02:39 AM.

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

About Us

"It's about Microsoft Excel"