ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Converting dates into days (https://www.excelbanter.com/excel-discussion-misc-queries/128711-converting-dates-into-days.html)

kippers

Converting dates into days
 
I have been playing round with the WEEKDAY function to convert dates in the
format 1-Apr-06 to digits referring to the day of the week (i.e. 1 to 7).
What is the best way to easily convert these numbers into the actual days of
the week (Monday, Tuesday).

Can I use teh IF function- I started to try this but got a bit stuck:
=IF(WEEKDAY($B2) =1,"Sunday"........

Cheers,

SteveW

Converting dates into days
 
Create a named table, DOW to refer to a 7 cell list with the days in them

Then where ever you need day of week as a text string
use =INDEX(DOW,WEEKDAY(B2))

Alternatively if you just want to see The day of the week, then

Format the cell as Custom dddd
and just reference the cell with the date
ie = b2

Steve



On Thu, 01 Feb 2007 11:50:00 -0000, kippers
wrote:

I have been playing round with the WEEKDAY function to convert dates in
the
format 1-Apr-06 to digits referring to the day of the week (i.e. 1 to 7).
What is the best way to easily convert these numbers into the actual
days of
the week (Monday, Tuesday).

Can I use teh IF function- I started to try this but got a bit stuck:
=IF(WEEKDAY($B2) =1,"Sunday"........

Cheers,


Mike

Converting dates into days
 
=TEXT(A10,"DDDDD")

where A10 is the date

"kippers" wrote:

I have been playing round with the WEEKDAY function to convert dates in the
format 1-Apr-06 to digits referring to the day of the week (i.e. 1 to 7).
What is the best way to easily convert these numbers into the actual days of
the week (Monday, Tuesday).

Can I use teh IF function- I started to try this but got a bit stuck:
=IF(WEEKDAY($B2) =1,"Sunday"........

Cheers,


JMay

Converting dates into days
 
=CHOOSE(WEEKDAY(A1,2),"Monday","Tuesday","Wednesda y","Thursday","Friday","","")

"SteveW" wrote in message
news:op.tm2jvblwevjsnp@enigma03:

Create a named table, DOW to refer to a 7 cell list with the days in them

Then where ever you need day of week as a text string
use =INDEX(DOW,WEEKDAY(B2))

Alternatively if you just want to see The day of the week, then

Format the cell as Custom dddd
and just reference the cell with the date
ie = b2

Steve



On Thu, 01 Feb 2007 11:50:00 -0000, kippers
wrote:

I have been playing round with the WEEKDAY function to convert dates in
the
format 1-Apr-06 to digits referring to the day of the week (i.e. 1 to 7).
What is the best way to easily convert these numbers into the actual
days of
the week (Monday, Tuesday).

Can I use teh IF function- I started to try this but got a bit stuck:
=IF(WEEKDAY($B2) =1,"Sunday"........

Cheers,




All times are GMT +1. The time now is 01:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com