+ Reply to Thread
Results 1 to 6 of 6

Conditional format. Date - Date<>deadline = red or green

Hybrid View

  1. #1
    Registered User
    Join Date
    03-06-2023
    Location
    United Kingdom
    MS-Off Ver
    Web excel/teams
    Posts
    21

    Conditional format. Date - Date<>deadline = red or green

    Hello all,

    I want to get a conditional format to work with deadlines I would love to know what I am doing wrong as it seems simple and I used this nearly 5 years ago, I appreciate your time,

    Test line
    Input date > input date completed, Deadline formula is 2 days, but ignores blank cell.

    I have tried
    =AND(C2-E2)<2
    =C2-E2<2
    ==AND(C2-E2)<2
    =if(C2-E2)<2 (i get a error on this one)
    all 3 show red, but won't turn green when the dates are within the 2 days deadline, and they also show red when the date in E is not inputted.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,111

    Re: Conditional format. Date - Date<>deadline = red or green

    is that 2 working days ?
    or any 2 days

    as E2 should be later than C2 - then E2 - C2 , otherwise C2-E2 will give an errors as c2 is less than E2 and so you get minus dates - which excel wont like

    And( (E2-C2)<2 , E2<> "")
    =AND((E2-C2)<2,E2<>"")

    What happens if exactly 2 days ?

    =AND((E2-C2)>2,E2<>"")

    Also if you want to highlight the C column and the E column

    then you will need $ to fix the columns

    =AND(($E2-$C2)<2,$E2<>"")

    =AND(($E2-$C2)>2,$E2<>"")
    Attached Files Attached Files
    Last edited by etaf; 03-28-2023 at 05:07 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-06-2023
    Location
    United Kingdom
    MS-Off Ver
    Web excel/teams
    Posts
    21

    Re: Conditional format. Date - Date<>deadline = red or green

    Hello etaf,

    what you have shown is great, thank you i see what i was doing wrong

    including the raised date, from 01/03, to 03/03 should be green to account for raised permits at 4pm, I need 48 hours to complete the task. I don't know how to encompass times and dates so I am just rounding it up to the next day.

    i don't need to highlight the source column C H or M

    the format will need to cover column C, E H J M and O
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,111

    Re: Conditional format. Date - Date<>deadline = red or green

    you can just add the time
    for example

    1/3/23 16:00
    3/3/23 15:00

    subtracted would be 1.9583 - so NOT 2 , until the time is later than 4pm

    which you can see in the attached

    not following the other comments

    but if you use control key to select non contiguous cells , then the formula should work , across the columns
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-06-2023
    Location
    United Kingdom
    MS-Off Ver
    Web excel/teams
    Posts
    21

    Re: Conditional format. Date - Date<>deadline = red or green

    the completed spreadsheet, thank you,
    Attached Files Attached Files

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,111

    Re: Conditional format. Date - Date<>deadline = red or green

    oh ok
    so its all resolved now

    you are welcome

+ 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 Red, Amber, Green, based on a target date
    By JimFiggs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-30-2021, 04:47 PM
  2. Deadline date Conditional formatting.
    By CCook82 in forum Excel General
    Replies: 7
    Last Post: 06-29-2020, 11:56 PM
  3. [SOLVED] Conditional formatting to make a cell green if a date appears.
    By Mr.Bean in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-05-2018, 03:40 PM
  4. I'd like to make a deadline tracker that the date changes from green-amber-red
    By seancalleja in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-09-2015, 02:50 PM
  5. [SOLVED] Conditional Formatting- date with red, yellow or green
    By ldurham in forum Excel General
    Replies: 2
    Last Post: 02-03-2014, 07:38 AM
  6. Replies: 0
    Last Post: 04-10-2013, 10:07 AM
  7. Replies: 0
    Last Post: 04-10-2012, 11:56 AM

Tags for this Thread

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