Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert Date to number?
How would i convert a date to number as a string
e.g. 10/05/2005 "20050510" note the month is 2 digit - 05 i cant see Format(A1,"yyyy,mm,dd") & i tried = year(a1) & month(a1) & day(a1) but it returns month as single "2005510" |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert Date to number?
p.s. i also tried cell formatting as yyyymmdd, then = "Hello" & A1 - but it
doesn't import the format to a string "JethroUK©" wrote in message ... How would i convert a date to number as a string e.g. 10/05/2005 "20050510" note the month is 2 digit - 05 i cant see Format(A1,"yyyy,mm,dd") & i tried = year(a1) & month(a1) & day(a1) but it returns month as single "2005510" |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert Date to number?
You can try with TEXT, like this:
=TEXT(A1,"yyyymmdd") Miguel. "JethroUK©" wrote: p.s. i also tried cell formatting as yyyymmdd, then = "Hello" & A1 - but it doesn't import the format to a string "JethroUK©" wrote in message ... How would i convert a date to number as a string e.g. 10/05/2005 "20050510" note the month is 2 digit - 05 i cant see Format(A1,"yyyy,mm,dd") & i tried = year(a1) & month(a1) & day(a1) but it returns month as single "2005510" |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert Date to number?
There may be better ways but:
=TEXT(YEAR(E10),"####")&TEXT(MONTH(E10),"0#")&TEXT (DAY(E10),"0#") returns what you are looking for -- HTH Sandy In Perth, the ancient capital of Scotland with @tiscali.co.uk "JethroUK©" wrote in message ... How would i convert a date to number as a string e.g. 10/05/2005 "20050510" note the month is 2 digit - 05 i cant see Format(A1,"yyyy,mm,dd") & i tried = year(a1) & month(a1) & day(a1) but it returns month as single "2005510" |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert Date to number?
"Miguel Zapico" wrote in message
... You can try with TEXT, like this: =TEXT(A1,"yyyymmdd") There I told you there may be better ways! <g -- Sandy In Perth, the ancient capital of Scotland with @tiscali.co.uk |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert Date to number?
that's fine
so how will i emmbed this in a string e.g. ="Bill" & TEXT(A1,"yyyymmdd") & "Ben" "Miguel Zapico" wrote in message ... You can try with TEXT, like this: =TEXT(A1,"yyyymmdd") Miguel. "JethroUK©" wrote: p.s. i also tried cell formatting as yyyymmdd, then = "Hello" & A1 - but it doesn't import the format to a string "JethroUK©" wrote in message ... How would i convert a date to number as a string e.g. 10/05/2005 "20050510" note the month is 2 digit - 05 i cant see Format(A1,"yyyy,mm,dd") & i tried = year(a1) & month(a1) & day(a1) but it returns month as single "2005510" |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Convert Date to number?
works fine - thanks
"JethroUK©" wrote in message ... that's fine so how will i emmbed this in a string e.g. ="Bill" & TEXT(A1,"yyyymmdd") & "Ben" "Miguel Zapico" wrote in message ... You can try with TEXT, like this: =TEXT(A1,"yyyymmdd") Miguel. "JethroUK©" wrote: p.s. i also tried cell formatting as yyyymmdd, then = "Hello" & A1 - but it doesn't import the format to a string "JethroUK©" wrote in message ... How would i convert a date to number as a string e.g. 10/05/2005 "20050510" note the month is 2 digit - 05 i cant see Format(A1,"yyyy,mm,dd") & i tried = year(a1) & month(a1) & day(a1) but it returns month as single "2005510" |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert displayed number to absolute value | Excel Discussion (Misc queries) | |||
How do I convert hh:mm:ss to an absolute number (26:01:32 to 26)? | Excel Discussion (Misc queries) | |||
Need help: convert seconds to date and time | Excel Discussion (Misc queries) | |||
How can I convert a date into a week number... | Excel Worksheet Functions | |||
changing a cell from date to a number | Excel Worksheet Functions |