+ Reply to Thread
Results 1 to 5 of 5

Ranking by date&time (rank resets daily)

  1. #1
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Ranking by date&time (rank resets daily)

    Hi everyone,

    I'm trying to calculate the following:

    On 01/01/2020, the first event of the day occurs at 11:55 = rank 1, the 2nd event of the day occurs at 12:05 = rank 2 etc etc - but the rank resets at the start of each new day i.e. On 02/01/2020, 11:45 = rank 1, 12:15 = rank 2, 12:30 = rank 3 etc etc.

    I've included a spreadsheet below, Col B is the result I'm looking for.

    Any help would be much appreciated

    Cheers

    Mdn
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Ranking by date&time (rank resets daily)

    Based on your sample answers...
    =SUMPRODUCT((A2>A$2:A$99)/COUNTIF(A$2:A$99,A$2:A$99))+1
    copied down

    hmmm maybe not
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Ranking by date&time (rank resets daily)

    OK try this instead. I missed the daily restart...
    =IFERROR(IF(INT(A2)>INT(A1),1,IF(A2=A1,F1,F1+1)),1)

  4. #4
    Forum Contributor
    Join Date
    01-26-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    311

    Re: Ranking by date&time (rank resets daily)

    Lovely stuff FD, massive ty

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Ranking by date&time (rank resets daily)

    Happy to help, thanks for the feedback

+ 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. Rank Order Grouped by Date and Time
    By dslaugh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2020, 10:45 AM
  2. [SOLVED] Ranking with Name, Date and Time
    By lkerwei in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-22-2019, 09:49 AM
  3. Replies: 3
    Last Post: 02-08-2016, 06:55 PM
  4. Ranking values and ranking duplicates the same rank
    By 302arpks in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-05-2015, 01:50 PM
  5. [SOLVED] Need help ranking numbers....not a RANK function...I think
    By pbean123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-02-2014, 09:10 AM
  6. RANK, duplicate ranking but no gaps in rank
    By arron laing in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2012, 07:15 AM
  7. Replies: 6
    Last Post: 06-01-2010, 06:19 PM

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