Sort a range of days with todays day on top

bluefeather8989

Active Member
Joined
Nov 20, 2009
Messages
325
Office Version
  1. 365
Platform
  1. Windows
I have a long list of days (Monday-Sunday) I need to sort this list with the current day on top.
example: today is Wednesday short the list will show Wednesday on top followed by Thursday, Friday, Saturday and so on with Tuesday on the bottom.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Use dates instead of days and sort descending. If that's not an option you can build a custom list and sort using that. The catch is you should write a macro that changes the custom list list based on date. Or use a similar macro to sort your list automatically. If you were using a pivot table you could get away without a macro / custom list with a date / day indexes in Power Pivot.

Or use a formula that sorts the weekday-function to sort your dates / days: You can change the weekday order with the optional parameter.
 
Last edited:
Upvote 0
I added =TODAY() in A1 and custom formatted the cell to DDDD. My list of days are manually entered . I tried to do an IF formula =IF(A1=K7,1,99). This comes out as fause.
 
Upvote 0
I found this formula that will translate the =TODAY() formula to text.
=TEXT(B1,"dddd")
my IF code now works
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top