Closed Thread
Results 1 to 6 of 6

difference in 2 times but:-

  1. #1
    Registered User
    Join Date
    04-05-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    26

    difference in 2 times but:-

    Hi very new to excel but having to learn fast lol.
    Ok I have a spread sheet, now I need to know the difference between 2 times that are past midnight,
    I use IF(F11>F12,1+F12,F12)-F11.
    this works but i don't want this number to appear

    I want to identify is 2 times have a difference less than 11 (they may be each side of midnight), if they do equal less than 11 i don't want to see the number just turn 1 of the numbers red normally the Later letter one.... eg if the calculation is difference between e4 and d3 then e4 should turn red to identify an issue.
    if e4 - d3 <11,1+e4 - d3 <11 then turn e4 red but don't show the result of the sum
    hope thats enough info

  2. #2
    Registered User
    Join Date
    04-05-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    26

    Re: difference in 2 times but:-

    Ok i thought that was easy ... Perhaps not lol

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: difference in 2 times but:-

    Assuming that you mean 11 minutes put this formula in Conditional Formatting > New Rule > Use a formula to determine which cells to format:
    Please Login or Register  to view this content.
    the Applies to would be E4.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    04-05-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    26

    Re: difference in 2 times but:-

    really sorry ment 11 hrs only using 1 hr or 1/2 hours

    its a time rosta and i am rewriting it but thought there was an 8 minimum but told its an 11 hr minimum so thought id biuld in a check to ensure 11 hr mimimum between shifts
    Last edited by Russski; 04-05-2016 at 07:05 AM.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: difference in 2 times but:-

    Since it is less than eleven hours and not less than or equal to eleven hours, try this:
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: difference in 2 times but:-

    Russski, you have started several threads with the same question, causing a lot of confusion among people who are trying to help you. I am closing all but one of these threads.

    Members should refer to this, the earliest one that has an attachment with a well-formed question.

    http://www.excelforum.com/showthread...5256&p=4363372

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Difference between two times - avoiding ###### for times that span midnight
    By Abarency in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-07-2015, 01:15 PM
  2. sum difference between times
    By LSGC in forum Excel General
    Replies: 34
    Last Post: 06-10-2014, 06:20 PM
  3. [SOLVED] Difference between times
    By Berna11 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2013, 08:39 AM
  4. difference between two times
    By Reign in forum Excel General
    Replies: 6
    Last Post: 02-12-2012, 09:12 PM
  5. Difference between times
    By chummildwater in forum Excel General
    Replies: 3
    Last Post: 06-19-2011, 12:41 PM
  6. How to get difference between two times
    By Climaxgp in forum Excel General
    Replies: 4
    Last Post: 11-03-2009, 08:14 AM
  7. Difference between two times - thank you!!
    By Lynneth in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-10-2008, 03:24 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