Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cell date format doesnt change | Excel Worksheet Functions | |||
Enforcing a date format on a cell/column | Excel Discussion (Misc queries) | |||
Customized Date Format | Excel Worksheet Functions | |||
format date in excel | Excel Discussion (Misc queries) | |||
Why Does Date Format Change on Chart | Excel Discussion (Misc queries) |