Ask Your Question
0

How do I derive a text day (Monday, Tuesday,...) from a date field (7/21/2016)

asked 2016-07-21 15:49:17 +0200

EasyRider gravatar image

So far, I have a long, complicated "IF" statement, using WEEKDAY().. There must be an easier way!

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2016-07-21 16:02:24 +0200

karolus gravatar image

Hallo

=TEXT(A1;"NNN")
edit flag offensive delete link more

Comments

Better use TEXT(A1;"DDDD") if you eventually want to save in Excel formats, as the "NNN" and "NNNN" format codes are only available in LibreOffice and OpenOffice(.org)

erAck gravatar imageerAck ( 2016-07-28 14:00:27 +0200 )edit
1

answered 2016-07-21 16:05:18 +0200

mark_t gravatar image

Use the CHOOSE function

=CHOOSE(WEEKDAY(J19,2),"Monday", "Tuesday", "Wednesday","Thursday","Friday","Saturday","Sunday")
edit flag offensive delete link more

Comments

the question was about easier way… not about sophisticated one

karolus gravatar imagekarolus ( 2016-07-23 15:10:32 +0200 )edit

Compared to string of IF functions CHOOSE is easier, but of course TEXT is the best and EasyRider should choose that as the best answer. I looked for FORMAT and didn't realize that function was called TEXT.

mark_t gravatar imagemark_t ( 2016-07-23 20:19:35 +0200 )edit
-2

answered 2016-10-23 19:12:43 +0200

adam1969in gravatar image

=WEEKDAY(A1)

and formatting the cell as Date - user defined - "NNNN" The other answers are right too.

=Text(A1,"DDDD") will be the best one.
edit flag offensive delete link more

Comments

And your answer is wrong, also if it produce accidentally the "right" results.
do never patch some Date-formatting on Values which are no real Dates

karolus gravatar imagekarolus ( 2016-10-23 19:31:51 +0200 )edit

The main formula I recommended is =Text(A,"DDDD"), though it wrongly works with Weekday function.

adam1969in gravatar imageadam1969in ( 2016-10-25 04:51:15 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-07-21 15:49:17 +0200

Seen: 6,068 times

Last updated: Oct 23 '16