Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default how do I change the date format

I need to change the date format from 01/01/2006 to 20060101 - please help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default how do I change the date format

yyyymmdd

Steve

On Wed, 22 Nov 2006 13:59:01 -0000, Raich
wrote:

I need to change the date format from 01/01/2006 to 20060101 - please
help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default how do I change the date format

=20000000+(YEAR(A5)-2000)*10000+MONTH(A5)*100+DAY(A5)


Gord Dibben MS Excel MVP

On Wed, 22 Nov 2006 05:59:01 -0800, Raich
wrote:

I need to change the date format from 01/01/2006 to 20060101 - please help.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default how do I change the date format

You can change the format so that the value is kept a date, but is displayed the
way you want.

Or you could use a formula in another cell:

=text(a1,"yyyymmdd")
that will return a string.

or
=--text(a1,"yyyymmdd")
that will return a number.

Raich wrote:

I need to change the date format from 01/01/2006 to 20060101 - please help.


--

Dave Peterson
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
How do I change the date format in Excell from eg 20060926 Dave Excel Discussion (Misc queries) 2 September 30th 06 02:22 PM
change date format Goldie Excel Worksheet Functions 2 June 11th 06 11:58 PM
I cannot change the date format to English canada DStanfield Excel Discussion (Misc queries) 2 September 28th 05 06:23 PM
How change Excel default date format to something useful mjk Excel Discussion (Misc queries) 1 September 26th 05 08:15 PM
change date function format in footer Tori Excel Worksheet Functions 1 January 25th 05 08:18 PM


All times are GMT +1. The time now is 11:43 AM.

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"