+ Reply to Thread
Results 1 to 10 of 10

Conditional Formatting Using MOD and AND formulas

Hybrid View

  1. #1
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting Using MOD and AND formulas

    I didn't download your files.

    After reading the top post again I think I have misunderstood what you want to do.

    Quote Originally Posted by Harrytheb View Post

    Eg
    Start Stop Hrs Worked
    08:00 21:00 12:00
    03:00 09:00 06:00

    In the example I am trying to get 03:00 go red on condition it is less than 8hrs between the stop time 21:00 and 03:00 start time.
    So, it's based on the stop time from the row above and the start time from the row below? Is that correct?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  2. #2
    Registered User
    Join Date
    04-23-2013
    Location
    Shrewsbury, England
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Conditional Formatting Using MOD and AND formulas

    Hi Tony, I have changed the post a couple of times for clarity. You are correct, it is the stop time from the row above and the start time from the next row.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting Using MOD and AND formulas

    Based on the Harrytheb2.xlsx file...

    Select the range B11:B19 starting from B11.

    Conditional formatting
    Formula:

    =AND(COUNT(H10,B11)=2,MOD(B11-H10,1)<TIME(8,0,0))

+ 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. [SOLVED] conditional formatting with formulas
    By barelyadraft in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-18-2012, 02:57 PM
  2. Conditional formatting using formulas
    By masond3 in forum Excel General
    Replies: 18
    Last Post: 11-14-2011, 08:53 AM
  3. Conditional formatting using formulas
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2011, 10:27 PM
  4. Replies: 1
    Last Post: 09-14-2010, 03:45 AM
  5. Excel 2007 : Conditional Formatting With Formulas
    By krt777 in forum Excel General
    Replies: 5
    Last Post: 11-04-2008, 04:57 AM
  6. Conditional Formatting for formulas
    By Mary Frances in forum Excel General
    Replies: 1
    Last Post: 01-04-2008, 06:15 PM
  7. [SOLVED] Conditional Formatting for Formulas
    By Murat Gordeslioglu in forum Excel General
    Replies: 3
    Last Post: 06-22-2006, 04:10 AM

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