+ Reply to Thread
Results 1 to 7 of 7

How to sort by day not date in Excel 2016

  1. #1
    Registered User
    Join Date
    05-20-2017
    Location
    new york
    MS-Off Ver
    2016
    Posts
    2

    How to sort by day not date in Excel 2016

    I have a fairly large database that spans 2 years or so. I'd like to be able to sort and pull out information from particular days eg. all Mondays or Mondays within a 5 month span.

    I'm unclear how to do this. Does anyone know how?

    Thank you in advance.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to sort by day not date in Excel 2016

    only with an additional column with WEEKDAY()
    Last edited by tim201110; 05-20-2017 at 01:13 PM.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to sort by day not date in Excel 2016

    Quote Originally Posted by tim201110 View Post
    only with an additional column with WEEKDAY
    No, Tim, there is absolutely no need for a helper column. Look (I have added the Monday markers manually just for demonstration purposes):

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    1
    01/01/2017
    2
    02/01/2017
    Monday
    02/01/2017
    3
    03/01/2017
    09/01/2017
    4
    04/01/2017
    16/01/2017
    5
    05/01/2017
    6
    06/01/2017
    7
    07/01/2017
    8
    08/01/2017
    9
    09/01/2017
    Monday
    10
    10/01/2017
    11
    11/01/2017
    12
    12/01/2017
    13
    13/01/2017
    14
    14/01/2017
    15
    15/01/2017
    16
    16/01/2017
    Monday
    17
    17/01/2017
    18
    18/01/2017
    19
    19/01/2017
    20
    20/01/2017
    21
    21/01/2017
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    D
    2
    =IFERROR(INDEX(A:A,SMALL(IF(WEEKDAY($A$1:$A$21)=2,ROW($A$1:$A$21)),ROWS($A$1:A1))),"")
    Sheet: Sheet1

    confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to sort by day not date in Excel 2016

    seems we are are talking about the same thing
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to sort by day not date in Excel 2016

    Quote Originally Posted by tim201110 View Post
    seems we are are talking about the same thing
    It seems we are NOT talking about the same thing! I understand that the OP wishes to extract this data. We shall have to wait until he tells us one way or the other.

  6. #6
    Registered User
    Join Date
    05-20-2017
    Location
    new york
    MS-Off Ver
    2016
    Posts
    2

    Re: How to sort by day not date in Excel 2016

    Thank you for the replies!

    I feel like I might be wading into a minefield here but creating a helper column will probably work best for my
    purposes.

    I appreciate everyone's help. Thanks again!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to sort by day not date in Excel 2016

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 23
    Last Post: 01-03-2022, 10:45 AM
  2. [SOLVED] Excel 2016 Sort routine issue - recording macro has sheet name in sort routine
    By pongmeister in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2016, 02:45 PM
  3. Date Format for Grouped Pivot Table data in Chart - Excel 2016
    By Cam in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-15-2016, 03:20 AM
  4. Replies: 2
    Last Post: 05-24-2016, 10:43 PM
  5. Date filter not working in Excel 2016
    By captainbridge in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2016, 09:33 AM
  6. Replies: 11
    Last Post: 02-01-2016, 03:43 PM
  7. Replies: 7
    Last Post: 05-09-2013, 05:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1