+ Reply to Thread
Results 1 to 7 of 7

Formula & Conditional Formatting Issue

  1. #1
    Registered User
    Join Date
    03-21-2019
    Location
    UK
    MS-Off Ver
    2010
    Posts
    7

    Formula & Conditional Formatting Issue

    Hi All,

    Please excuse my ignorance here, but I am trying to setup a formula for column I1 that will calculate if cell H1 is blank, then cell I1 will also remain blank. But If cell H1 contains a value, I1 will run the WORKDAY(G1,H1) and return a value, in this case returning a value of 22/03/2019. I have placed the following formula in I1 =(IF(H1<>"","Not Blank","")) and this returns a 'Not Blank' value, but is there a way to modify this to run the WORKDAY formula?

    G H I J

    Start Date Allocated Days End Date Completion Date
    1 20/03/2019 2

    The second part of my problem is regarding conditional formatting, for example once the above is working and column I1 is populated with an 'end date value' based on the WORKDAY formula, I want to manually enter a date value under J1, and for J1 to change color based on the following:

    If I1 is blank/ has no value then J1 will also remain blank (same color as my blue/ white table)

    If I1 is populated, and the value of J1 is >G1 & <= I1 then cell J1 will turn green

    If I1 is populated, and the value of J1 is >I1, cell J1 will turn red

    I'm sure it's a real simple fix and something that I am overlooking, but as I'm sure you're aware - I'm not overly savvy with Excel and any assistance to resolve the above would be appreciated.

    Many thanks.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula & Conditional Formatting Issue

    See below...
    Last edited by Special-K; 03-21-2019 at 09:17 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula & Conditional Formatting Issue

    First part

    IF(AND(G1<>"",H1<>""),WORKDAY(G1,H1),"")

    Second part

    Select the range to highlight

    Conditional Formatting
    New Rule
    Use a formula to determine...
    2 formulas needed

    =AND(I1 < > "",J1 > G1,J1 < = I1)
    format as green

    =AND(I1 < > "", J1 > I1)
    format as red

    I think this should work, am just worried about formulas conflicting, red might override green

  4. #4
    Registered User
    Join Date
    03-21-2019
    Location
    UK
    MS-Off Ver
    2010
    Posts
    7
    Quote Originally Posted by Special-K View Post
    First part

    IF(AND(G1<>"",H1<>""),WORKDAY(G1,H1),"")

    Second part

    Select the range to highlight

    Conditional Formatting
    New Rule
    Use a formula to determine...
    2 formulas needed

    =AND(I1 < > "",J1 > G1,J1 < = I1)
    format as green

    =AND(I1 < > "", J1 > I1)
    format as red

    I think this should work, am just worried about formulas conflicting, red might override green
    Hi Special-K,

    Many thanks for your help, the formula works perfectly. Thank you.

    As you suspected, the conditional formatting conflicts where the red overrides the green. Is there anything you can advise to rectify this?

    Thanks once again.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula & Conditional Formatting Issue

    What values do you have in G1 I1 J1 ?

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula & Conditional Formatting Issue

    There's a tick box when entering the formula that says "Stop If True"
    This will stop it from executing any other CF formulas.
    That should work.

  7. #7
    Registered User
    Join Date
    03-21-2019
    Location
    UK
    MS-Off Ver
    2010
    Posts
    7

    Re: Formula & Conditional Formatting Issue

    Hi Special-K,

    Just a quick update to thank you for your assistance. This issue has now been resolved.

+ 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. Trying to find a formula/conditional formatting for this issue
    By darkcradle in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2018, 05:48 AM
  2. Conditional Formatting Formula Issue
    By bldorris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 03:43 PM
  3. [SOLVED] Conditional Formatting based on a Formula VBA Issue
    By lashellr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2014, 11:58 AM
  4. Custom formatting issue using conditional formatting
    By wrongway15 in forum Excel General
    Replies: 2
    Last Post: 07-13-2014, 03:18 PM
  5. [SOLVED] Issue with formula on conditional formatting
    By alchavar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2013, 01:38 PM
  6. [SOLVED] Conditional Formatting - formula issue
    By Bjordion in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-06-2012, 03:39 PM
  7. Conditional formatting issue
    By delboy2405 in forum Excel General
    Replies: 7
    Last Post: 10-26-2007, 04:54 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