+ Reply to Thread
Results 1 to 3 of 3

revolving time change formula

  1. #1
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    revolving time change formula

    Hello,

    I have a worksheet that needs revolving times based on the time now, if the time in the cell before the time now it moves up keeping in order, if it is after the time now it moves to the bottom of the list and starts again and this is based on a 24 hour period.

    I don't know if this would work as a ranking formula or vba, either solution would be ok, but this on has me stumped.

    thansk for your help in advance
    reg
    Attached Files Attached Files
    Last edited by reggie1000; 05-27-2009 at 10:43 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: revolving time change formula

    Not entirely sure I follow but perhaps:

    B7: =MOD(FLOOR($B$3,"01:00")+TIME($A7,0,0),1)
    copy down

    The use of MOD ensures that as the time cross midnight only the Time value is used (the increment of day is ignored)

  3. #3
    Forum Contributor
    Join Date
    11-23-2007
    Location
    Suffolk, UK
    Posts
    298

    Re: revolving time change formula

    Thanks DonkeyOte,

    works great

    cheers reg

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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