Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Adam Thwaites
 
Posts: n/a
Default Date format in string

I have this code:
="Week Beginning " & Date-WEEKDAY(Date,3)
which I can't stop coming out as:
Week Beginning 38719

I tried:
="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/" &
"yyyy")
but that just comes up as #NAME

Any suggestions?
--
Adam Thwaites
Access Database Designer

Manchester, UK
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Date format in string

="Week Beginning " & text(TODAY()-WEEKDAY(TODAY(),3),"dd mmm yyyy")


--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Adam Thwaites" wrote in message
...
I have this code:
="Week Beginning " & Date-WEEKDAY(Date,3)
which I can't stop coming out as:
Week Beginning 38719

I tried:
="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/"

&
"yyyy")
but that just comes up as #NAME

Any suggestions?
--
Adam Thwaites
Access Database Designer

Manchester, UK



  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Date format in string

Consider using TEXT():


="Week Beginning: " & TEXT(TODAY()+4,"dd/mm/yyy")
will display as:
Week Beginning: 14/05/2006

--
Gary''s Student


"Adam Thwaites" wrote:

I have this code:
="Week Beginning " & Date-WEEKDAY(Date,3)
which I can't stop coming out as:
Week Beginning 38719

I tried:
="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/" &
"yyyy")
but that just comes up as #NAME

Any suggestions?
--
Adam Thwaites
Access Database Designer

Manchester, UK

  #4   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Date format in string

One way:

="Week Beginning" & TEXT(Date-WEEKDAY(Date, 3), "dd/mm/yyyy")


In article ,
Adam Thwaites wrote:

I have this code:
="Week Beginning " & Date-WEEKDAY(Date,3)
which I can't stop coming out as:
Week Beginning 38719

I tried:
="Week Beginning " & format((Date-WEEKDAY(Date,3)),"dd" & "/" & "mm" & "/" &
"yyyy")
but that just comes up as #NAME

Any suggestions?

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
Cell date format doesnt change Jon Excel Worksheet Functions 5 March 7th 06 04:52 PM
Enforcing a date format on a cell/column ProdigalShawne Excel Discussion (Misc queries) 1 February 22nd 06 07:13 PM
Customized Date Format Frustrated Excel Worksheet Functions 5 October 7th 05 11:30 PM
format date in excel Nigel Excel Discussion (Misc queries) 2 September 15th 05 09:52 PM
Why Does Date Format Change on Chart John Taylor Excel Discussion (Misc queries) 0 September 11th 05 08:16 AM


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