#1   Report Post  
Posted to microsoft.public.excel.misc
Chi Chi is offline
external usenet poster
 
Posts: 69
Default convert numbers

Hi,

Would you please show me how to convert numbers to age or birthday date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default convert numbers

Try out this formula from Chip Pearson's Web page. The formula assumes that
the date value is in cell A2:

=DATEDIF(A2,TODAY(),"y")&" years, "&DATEDIF(A2,TODAY(),"ym")&" months,
"&DATEDIF(A2,TODAY(),"md")&" days"

To get additional information regarding date math go the Chip's site at the
following URL:

http://www.cpearson.com/excel/datearith.htm
--
Kevin Backmann


"Chi" wrote:

Hi,

Would you please show me how to convert numbers to age or birthday date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default convert numbers

datatext to columns, click next twice then under column data format select
date and MDY and click finish, when the conversion is done use

=DATEDIF(A2,TODAY(),"y")

where A2 is the cell with the converted number


--


Regards,


Peo Sjoblom


"Chi" wrote in message
...
Hi,

Would you please show me how to convert numbers to age or birthday date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default convert numbers

To make a date:

=DATE(RIGHT(A1,4),LEFT(TEXT(A1,"00000000"),2),MID( TEXT(A1,"00000000"),3,2))

--
Gary''s Student - gsnu200754


"Chi" wrote:

Hi,

Would you please show me how to convert numbers to age or birthday date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default convert numbers

=DATEDIF(TEXT(A1,"00\/00\/0000")+0,TODAY(),"y")


"Chi" wrote:

Hi,

Would you please show me how to convert numbers to age or birthday date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi



  #6   Report Post  
Posted to microsoft.public.excel.misc
Chi Chi is offline
external usenet poster
 
Posts: 69
Default convert numbers

Thank you for all responds!

Hi Peo,

It works!!! Thanks. However, in my excel sheet some numbers (cells) were not
converted. I think because the formula works with 8 digits, but not 7.

EX: 10221968 became 10/22/1968. It is perfect! However, the numbers,
9111966, wasn't converted. I tried to add 0 to it so it will become 09111966.
Excel deleted the 0 as soon as I added it in the cell. Would you show me how
to add 0 in all cells?


--------------------

Would you also show me how to convert the birthday date to age please?

Is there a way to make it works?

Thanks

"Peo Sjoblom" wrote:

datatext to columns, click next twice then under column data format select
date and MDY and click finish, when the conversion is done use

=DATEDIF(A2,TODAY(),"y")

where A2 is the cell with the converted number


--


Regards,


Peo Sjoblom


"Chi" wrote in message
...
Hi,

Would you please show me how to convert numbers to age or birthday date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default convert numbers

If you precede the entry with an apostrophe ' so you always use 8 (or 6
digits if you use mmddyy)
it will work and it will return 09/11/1966

or use the formula

=TEXT(A1,"00\/00\/0000")

or to get a real numerical date

=--TEXT(A7,"00\/00\/0000")

and format the cell as mm/dd/yyyy


--


Regards,


Peo Sjoblom




"Chi" wrote in message
...
Thank you for all responds!

Hi Peo,

It works!!! Thanks. However, in my excel sheet some numbers (cells) were
not
converted. I think because the formula works with 8 digits, but not 7.

EX: 10221968 became 10/22/1968. It is perfect! However, the numbers,
9111966, wasn't converted. I tried to add 0 to it so it will become
09111966.
Excel deleted the 0 as soon as I added it in the cell. Would you show me
how
to add 0 in all cells?


--------------------

Would you also show me how to convert the birthday date to age please?

Is there a way to make it works?

Thanks

"Peo Sjoblom" wrote:

datatext to columns, click next twice then under column data format
select
date and MDY and click finish, when the conversion is done use

=DATEDIF(A2,TODAY(),"y")

where A2 is the cell with the converted number


--


Regards,


Peo Sjoblom


"Chi" wrote in message
...
Hi,

Would you please show me how to convert numbers to age or birthday
date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default convert numbers

If you have a number of 7 digit cells, you can use the formula ="0"&A2 to
add the leading zero. Copy the results and use Edit/ Paste Special/ Values
to paste the value (text string) in place of the formula. You can then use
the Data/ Text to Columns on that 8 digit text string.
--
David Biddulph

"Chi" wrote in message
...
Thank you for all responds!

Hi Peo,

It works!!! Thanks. However, in my excel sheet some numbers (cells) were
not
converted. I think because the formula works with 8 digits, but not 7.

EX: 10221968 became 10/22/1968. It is perfect! However, the numbers,
9111966, wasn't converted. I tried to add 0 to it so it will become
09111966.
Excel deleted the 0 as soon as I added it in the cell. Would you show me
how
to add 0 in all cells?


--------------------

Would you also show me how to convert the birthday date to age please?

Is there a way to make it works?

Thanks

"Peo Sjoblom" wrote:

datatext to columns, click next twice then under column data format
select
date and MDY and click finish, when the conversion is done use

=DATEDIF(A2,TODAY(),"y")

where A2 is the cell with the converted number


--


Regards,


Peo Sjoblom


"Chi" wrote in message
...
Hi,

Would you please show me how to convert numbers to age or birthday
date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi






  #9   Report Post  
Posted to microsoft.public.excel.misc
Chi Chi is offline
external usenet poster
 
Posts: 69
Default convert numbers

Hi Teethless,

Excellent!!! Thank you so much. I also thank to Kenvin B, Peo, David and
Gary!!
Chi

"Teethless mama" wrote:

=DATEDIF(TEXT(A1,"00\/00\/0000")+0,TODAY(),"y")


"Chi" wrote:

Hi,

Would you please show me how to convert numbers to age or birthday date?

Ex: I would like to convert 5181965 to 05/18/1965 or 42 (age)
Thank you
Chi

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
Excel 2002 : Convert Positive Numbers to Negative Numbers ? Mr. Low Excel Discussion (Misc queries) 2 November 6th 06 04:30 PM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 09:04 PM
convert negative numbers to positive numbers and vice versa bill gras Excel Worksheet Functions 4 December 7th 05 02:39 AM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 08:39 AM
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 10:51 PM


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