Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Return day name from a date
I know you can use WEEKDAY to return the NUMBER of the day. But how can I use
a formula on a spreadsheet (or a macro in VBA) to return the name of the day spelled out? For example: 01-18-2005 should return "Thursday" Thanks in advance. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Return day name from a date
Use the TEXT function:
=TEXT(date,"dddd") where date is the date specifiedin standard date format like 1/18/2005. good luck, prashant (not from Microsoft) "quartz" wrote: I know you can use WEEKDAY to return the NUMBER of the day. But how can I use a formula on a spreadsheet (or a macro in VBA) to return the name of the day spelled out? For example: 01-18-2005 should return "Thursday" Thanks in advance. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Return day name from a date
Assume your date is in A1
=Test(A1,"dddd") -- Regards, Tom Ogilvy "quartz" wrote in message ... I know you can use WEEKDAY to return the NUMBER of the day. But how can I use a formula on a spreadsheet (or a macro in VBA) to return the name of the day spelled out? For example: 01-18-2005 should return "Thursday" Thanks in advance. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Return day name from a date
Thanks!
"psp" wrote: Use the TEXT function: =TEXT(date,"dddd") where date is the date specifiedin standard date format like 1/18/2005. good luck, prashant (not from Microsoft) "quartz" wrote: I know you can use WEEKDAY to return the NUMBER of the day. But how can I use a formula on a spreadsheet (or a macro in VBA) to return the name of the day spelled out? For example: 01-18-2005 should return "Thursday" Thanks in advance. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Return day name from a date
Whoops, typo
=Test(A1,"dddd") should be =Text(A1,"dddd") the cell could also be custom formatted using dddd -- Regards, Tom Ogilvy "Tom Ogilvy" wrote in message ... Assume your date is in A1 =Test(A1,"dddd") -- Regards, Tom Ogilvy "quartz" wrote in message ... I know you can use WEEKDAY to return the NUMBER of the day. But how can I use a formula on a spreadsheet (or a macro in VBA) to return the name of the day spelled out? For example: 01-18-2005 should return "Thursday" Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Return date if in range, else return blank | Excel Worksheet Functions | |||
return a date from range, date is between dates in two other cells | Excel Discussion (Misc queries) | |||
Date Function formula that will return the date of a specific week | Excel Worksheet Functions | |||
Date formula: return Quarter and Fiscal Year of a date | Excel Discussion (Misc queries) | |||
calc constant date from variable date & return with ability to rn. | Excel Worksheet Functions |