+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Conditional Formatting - Highlighting Entire Rows based on a between function

  1. #1
    Registered User
    Join Date
    04-14-2011
    Location
    Trinidad and Tobago
    MS-Off Ver
    Excel 2003
    Posts
    4

    Conditional Formatting - Highlighting Entire Rows based on a between function

    Ladies and Gentlemen,

    I have a bit of a problem with conditional formatting. I've looked around for quite a bit and haven't found a solution.

    I would like to highlight entire rows based on the values in column C. This is fairly straight forward for greater than, less than, or equal functions. How would I go about achieving this for a between function?

    08:00:00 > x < 16:00:00

    I am evaluating a time sheet which is linked to our electronic entry system and need to highlight employees entering after the beginning of the work day or leaving before the end of the work day.

    Regards,


    Steven
    Last edited by stevenblanc; 04-14-2011 at 01:06 PM. Reason: Solved

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting - Highlighting Entire Rows based on a between function

    Try using formula:

    =AND($C2>TIME(8,0,0),$C2<TIME(16,0,0))

    where C2 is in topmost row of your selected rows to format.

    or

    =AND($C2>=TIME(8,0,0),$C2<=TIME(16,0,0)) if you want to include the range limits.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-14-2011
    Location
    Trinidad and Tobago
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Conditional Formatting - Highlighting Entire Rows based on a between function

    Marvelous. Simple solutions always seem to be the most slippery.

    It works like a charm.

    Many thanks,


    Steven

+ 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