#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Date format

I would like to convert a number to a the first day of a year, i.e., 1997 to
01/01/1997. How do I do this? I know how to create text that LOOKS like
this [=TEXT(a1,"01\/01\/0000")], but it seems like this is a text format and
not a date format, so I can't use this "date" to subtract from another date
(to calculate the time interval between two dates).

Can you help me?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Date format

With 1997 in A1, use:
=DATE(A1,1,1)
--
Gary''s Student - gsnu200859


"silly_jem" wrote:

I would like to convert a number to a the first day of a year, i.e., 1997 to
01/01/1997. How do I do this? I know how to create text that LOOKS like
this [=TEXT(a1,"01\/01\/0000")], but it seems like this is a text format and
not a date format, so I can't use this "date" to subtract from another date
(to calculate the time interval between two dates).

Can you help me?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Date format

Thank you. That worked, but it converted to date to a serial number. Can I
get it back into a date format (mm/dd/yyyy)?

"Gary''s Student" wrote:

With 1997 in A1, use:
=DATE(A1,1,1)
--
Gary''s Student - gsnu200859


"silly_jem" wrote:

I would like to convert a number to a the first day of a year, i.e., 1997 to
01/01/1997. How do I do this? I know how to create text that LOOKS like
this [=TEXT(a1,"01\/01\/0000")], but it seems like this is a text format and
not a date format, so I can't use this "date" to subtract from another date
(to calculate the time interval between two dates).

Can you help me?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Date format

To convert from TEXT to a date, use the double unary minus
=--TEXT(A1,"01\/01\/0000") or use =DATEVALUE(TEXT(A1,"01\/01\/0000"))
In either case, format the cell as date.
--
David Biddulph

"silly_jem" wrote in message
...
I would like to convert a number to a the first day of a year, i.e., 1997
to
01/01/1997. How do I do this? I know how to create text that LOOKS like
this [=TEXT(a1,"01\/01\/0000")], but it seems like this is a text format
and
not a date format, so I can't use this "date" to subtract from another
date
(to calculate the time interval between two dates).

Can you help me?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Date format

Format the cell the way you like.

Format|cells|Number tab
(xl2003 menus)

silly_jem wrote:

Thank you. That worked, but it converted to date to a serial number. Can I
get it back into a date format (mm/dd/yyyy)?

"Gary''s Student" wrote:

With 1997 in A1, use:
=DATE(A1,1,1)
--
Gary''s Student - gsnu200859


"silly_jem" wrote:

I would like to convert a number to a the first day of a year, i.e., 1997 to
01/01/1997. How do I do this? I know how to create text that LOOKS like
this [=TEXT(a1,"01\/01\/0000")], but it seems like this is a text format and
not a date format, so I can't use this "date" to subtract from another date
(to calculate the time interval between two dates).

Can you help me?


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Date format

is there any formula if we copy that and change month,
Example,
1/1/1997
1/2/1997
1/3/1997

Zafar

Regards

"David Biddulph" wrote:

To convert from TEXT to a date, use the double unary minus
=--TEXT(A1,"01\/01\/0000") or use =DATEVALUE(TEXT(A1,"01\/01\/0000"))
In either case, format the cell as date.
--
David Biddulph

"silly_jem" wrote in message
...
I would like to convert a number to a the first day of a year, i.e., 1997
to
01/01/1997. How do I do this? I know how to create text that LOOKS like
this [=TEXT(a1,"01\/01\/0000")], but it seems like this is a text format
and
not a date format, so I can't use this "date" to subtract from another
date
(to calculate the time interval between two dates).

Can you help me?




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
permanent conversion of 1904 date format to 1900 date format Jos Excel Worksheet Functions 4 November 26th 15 02:48 PM
Convert european foreign date format to US date format EAL Excel Worksheet Functions 1 May 14th 09 10:02 PM
convert serial date format to normal date format Flagworld Excel Discussion (Misc queries) 3 September 23rd 08 01:32 PM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
Excel 2000 date format cannot be set to Australian date format Brian Jones Excel Discussion (Misc queries) 1 March 30th 05 06:03 AM


All times are GMT +1. The time now is 08:42 PM.

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

About Us

"It's about Microsoft Excel"