+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting to go by hours and not days?

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Conditional formatting to go by hours and not days?

    Please Login or Register  to view this content.
    Is there a way to do this exact thing, but be 48 hours instead?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,913

    Re: Conditional formatting to go by hours and not days?

    This will be true when A5 is more than 48 hours prior to the start of today. If you want it to be more than 48 hours prior to the time at the moment, then use NOW instead of TODAY.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 05-13-2016 at 11:21 AM. Reason: Got A5 and TODAY reversed, fixed it.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  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
    53,048

    Re: Conditional formatting to go by hours and not days?

    What you need to understand about dates and times in excel is...

    a date is just a number representing the number of days passed since 1/1/900...and then formated in a way that we recognise as a date. So, for instance, today (Fri May 2016) is actually 42503

    Time is actually a decimal part of 1 (day), so 06:00 AM is 0.25, 12 noon is 0.5 and 18:00 (or 6 PM) is 0.75

    so if you need to text for (exactly) 48 hours, that is really just 2 (days)
    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

+ 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. Conditional Formatting using hours/time
    By dwtaxguy in forum Excel General
    Replies: 11
    Last Post: 06-26-2017, 02:01 PM
  2. Conditional Formatting - time,hours,days
    By maxgiz84 in forum Excel General
    Replies: 3
    Last Post: 02-02-2015, 01:16 AM
  3. Replies: 2
    Last Post: 07-08-2014, 07:00 PM
  4. [SOLVED] Conditional formatting for hours calculations
    By RANGO in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-25-2013, 07:13 AM
  5. Replies: 7
    Last Post: 05-28-2012, 12:18 PM
  6. Replies: 2
    Last Post: 08-16-2009, 06:16 PM
  7. [SOLVED] Conditional formatting on overtime hours
    By Jennifer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2006, 04:40 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