Grouping weekdays in a column sort

Discuss the spreadsheet application
Post Reply
philip36
Posts: 1
Joined: Sun Jun 08, 2014 4:30 am

Grouping weekdays in a column sort

Post by philip36 »

I am trying to sort a two column sheet by grouping days of the week. Column A is dates and Column B contains prices. I would like to group first all prices for Mondays, followed by Tuesdays, etc. The ascending /descending sort feature only will sort by date. It will not allow me to group or alphabetize the words in the Weekdays of my date formatting.
OpenOffice 3.3.0 Windows XP
FJCC
Moderator
Posts: 9568
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Grouping weekdays in a column sort

Post by FJCC »

You can add a third that uses the WEEKDAY() function like this

Code: Select all

=WEEKDAY(A2;1)
See the help section for the meaning of the second parameter. You can then sort on the third column to get what you want.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Post Reply