[Solved] Day of Week?
[Solved] Day of Week?
Looking for a function/formula that will take a date in a cell and convert it to the corresponding week day e.g. Monday, Tuesday, etc., in another cell.
Searched help subjects and could not find.
TIA
Searched help subjects and could not find.
TIA
Last edited by Hagar Delest on Tue Jun 10, 2008 2:25 pm, edited 2 times in total.
Reason: tagged the thread as Solved.
Reason: tagged the thread as Solved.
Re: Day of Week?
See help on WEEKDAY. If you need the string for display purpose you may combine WEEKDAY with CHOOSE. You could also apply another number format:
A1: some date
B1: =A1 [plus number format "NNN"] yields the same value as in A1, but shows the month name only
You could also get the string value:
B1: =TEXT(A1;"NNN")
TEXT returns the formatted string representation of a number.
A1: some date
B1: =A1 [plus number format "NNN"] yields the same value as in A1, but shows the month name only
You could also get the string value:
B1: =TEXT(A1;"NNN")
TEXT returns the formatted string representation of a number.
Edit: Sorry, I mixed month names with day names. replaced "MMMM" with "NNN" |
Last edited by Villeroy on Mon Dec 17, 2012 6:10 pm, edited 1 time in total.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Day of Week?
Thank you. Was drawing a blank on this.Villeroy wrote:See help on WEEKDAY. If you need the string for display purpose you may combine WEEKDAY with CHOOSE. You could also apply another number format:
A1: some date
B1: =A1 [plus number format "MMMM"] yields the same value as in A1, but shows the month name only
You could also get the string value:
B1: =TEXT(A1;"MMMM")
TEXT returns the formatted string representation of a number.
Re: [Solved] Day of Week?
WHY so complicated?
Open Office 3.4.1 on Mac OS X (this changes all the time so why????)
Re: [Solved] Day of Week?
I don't know but at a guess it is because time is much more complicated to calculate than simple numbers. Three hundred and sixty-five days in a year except when there are 366; 24 hours in a day but don't forget daylight savings time versus standard time, oh and every so often we add a second or so to the time and so on.danuneken wrote:WHY so complicated?
LibreOffice 7.3.7. 2; Ubuntu 22.04
Re: [Solved] Day of Week?
With the date in A1, =TEXT(A1;"NNN")halw wrote:Looking for a function/formula that will take a date in a cell and convert it to the corresponding week day e.g. Monday, Tuesday, etc., in another cell. ...
AOO4/LO5 • Linux • Fedora 23
-
- Posts: 2
- Joined: Sun May 30, 2021 5:29 am
Re: [Solved] Day of Week?
Hi i was wondering if there was a function to return the value of the weekdays to just the first two letters (e.g. Monday as Mo, Tuesday as Tu) to cut down on space.
I get that the function as is is =TEXT([cell w/ date];"NNN")
can it be more terse?
I get that the function as is is =TEXT([cell w/ date];"NNN")
can it be more terse?
NeoOffice 2.2.3 with MacOS 10.4
Re: [Solved] Day of Week?
If you want just the first two characters, the formula will be longer:
That will return e.g Mo, Tu etc.
If three characters is acceptable, just use NN in the cell format instead of NNN and you won't need a formula.
Code: Select all
=LEFT(TEXT(A1;"NNN");2)
If three characters is acceptable, just use NN in the cell format instead of NNN and you won't need a formula.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Re: [Solved] Day of Week?
NNN specifies the long weekday name.
NN specifies the abreviation.
=TEXT(A1 ; "NN") does the job.
NN specifies the abreviation.
=TEXT(A1 ; "NN") does the job.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
-
- Posts: 2
- Joined: Sun May 30, 2021 5:29 am
Re: [Solved] Day of Week?
Wow! I'm so happy there's such an easy solution. Thanks y'all!
NeoOffice 2.2.3 with MacOS 10.4