Hi, Can I return the corresponding day of the...

Hi, Can I return the corresponding day of the week from a date in another column?

Thanks

0 6 317
6 REPLIES 6

@Tony_DugganYes this can be done,

You can try an IFs expression like this where you want the value to returne:

IFS( WEEKDAY([DATE COLUMN])=1,SUNDAY, WEEKDAY([DATE COLUMN])=2,MONDAY, WEEKDAY([DATE COLUMN])=3,TUESDAY, WEEKDAY([DATE COLUMN])=4,WEDNESDAY, WEEKDAY([DATE COLUMN])=5,THURSDAY, WEEKDAY([DATE COLUMN])=6,FRIDAY, WEEKDAY([DATE COLUMN])=7,SATURDAY)

switch(weekday([DATE COLUMN]),

1, โ€œSUNDAYโ€,

2, "MONDAY,

3, "TUESDAY,

4, "WEDNESDAY,

5, "THURSDAY,

6, "FRIDAY,

7, "SATURDAY,

โ€œโ€ )

Many Thanks Victor

@Tony_Duggan +Steve Coile

Im pretty sure Coileโ€™s expresion is more efective

thanks Steve

@VICTOR_VERA

cheers Victor

Top Labels in this Space