Consulting

Results 1 to 5 of 5

Thread: Solved: Times Now & Rounding

  1. #1
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location

    Solved: Times Now & Rounding

    I am trying to use the time now and fit it into a section of times on my schedule. My schedule is set out in 15min intervals. What I want to do is round the time down so it would fit in the interval

    I have used these formula's

    =ROUNDDOWN(F4*96,0)/96
    =FLOOR(F4,1/96)

    My Conditional Format looks to see if the Time interval = Time Now and then hopefully colours the Cell Red. But this isnt happening.

    Where have I gone wrong?

    Attached is a copy of the workbook.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Which are the CF cells you want to use Ted?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    I was trying to test it on Row179 Cells C to BC

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    The problem is that you are checking the time in row 173 against the (seemingly) time in L4. However, L4 refers back to F4, which refers back to DateParam4 ... BUT ... dateParam4 uses the NOW function, which is DATE AND TIME.

    Either change DateParam4 to

    =MOD(NOW(),1)

    , or if that is not possible, change the CF formula to

    =C$173=MOD($L$4,1)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Nov 2008
    Posts
    53
    Location
    Excellent, Thanks for that

    I'm going on to look at UserForms now so I may well be back

Posting Permissions

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