+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting formula using another cell not working

  1. #1
    Registered User
    Join Date
    03-09-2021
    Location
    Auburn, CA
    MS-Off Ver
    2016
    Posts
    4

    Conditional Formatting formula using another cell not working

    I have a cell, W6, with a formula to determine the number of days before/after today =IF(ISBLANK($L5),"",($V5-TODAY())*-1) and I wish to use a conditional format for another cell to indicate if this number is between -30 days and 0 (change the fill), or equal or greater than 0 (different fill).

    When I use a conditional format formula AND($W6>-31,$W6<0) it works fine, but I can't find a way to get it to work for =>0.
    I've tried formatting W6 as a Number, and as Custom -#,+#, but neither helped.
    I've tried combinations like $W6>-1, or $W6=>0 without success.

    All suggestions appreciated, thank you!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional Formatting formula using another cell not working

    new rule
    use
    $W6>=0
    format different fill colour
    If the number is greater than 0 in W6
    should work

    See the yellow banner - follow instructions and load a sample spreadsheet
    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-09-2021
    Location
    Auburn, CA
    MS-Off Ver
    2016
    Posts
    4

    Re: Conditional Formatting formula using another cell not working

    Thank you for the quick response but it didn't work, the cell (A6) I'm trying to conditionally format remains stubbornly without a fill even though the number in W6 is +2.

    BTW, I have the formula in W5 and just enter a number (-3 or 3) in W6. A5 also conditionally formats the -30 to zero and fails to format the >0, just like A6, the only difference is the formula in W5 and the plain integer in W6. Hope that's clear, I think it demonstrates the formula in the W column doesn't effect the outcome.

    Thanks again

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional Formatting formula using another cell not working

    i think a spreadsheet as mentioned - see full instruction in yellow banner

  5. #5
    Registered User
    Join Date
    03-09-2021
    Location
    Auburn, CA
    MS-Off Ver
    2016
    Posts
    4

    Re: Conditional Formatting formula using another cell not working

    Oops, sorry 1st time...
    Sample posted.
    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.84 (24041420))
    Posts
    8,751

    Re: Conditional Formatting formula using another cell not working

    dont see anything in column W
    perhaps a bit of an explanation where to look etc

  7. #7
    Registered User
    Join Date
    03-09-2021
    Location
    Auburn, CA
    MS-Off Ver
    2016
    Posts
    4

    Re: Conditional Formatting formula using another cell not working

    Ok, my bad, rookie mess up, let me start over...
    Please consider the new XLSample.xlxm I'm uploading.
    Col A is a sequence number, B a user-entered date, C is col B +3 months, D a countdown/up of days up to and beyond today.
    The real worksheet has too many columns to view on a monitor so col A is frozen. If there is a problem with another col, that column is conditionally formatted to have a different fill, in the case of col D in the sample, yellow within 30 days, red from 0 (today) and up.
    I'm trying to conditionally format Col A with fill if any of the other unseen columns are also filled. This alerts the user to look for the problem.
    As you can see in the sample, col D successfully fills depending upon the value, yellow for neg (row 3), red for 0 and plus (row 4).
    Col A fills correctly if col D is negative as in row 3, but won't fill if col D is positive as in row 4.

    I've tried to format Col D both as a number and as custom +#,-# without success, (see the format for D3 and D4). Also, tried various versions of the conditional format formula for => -1 or 0.

    Suggestions or alternative strategies appreciated.
    Attached Files Attached Files

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Conditional Formatting formula using another cell not working

    i dont think your applies to range is large enough
    also the formula has " " around


    this
    AND($W6>-31,$W6<0
    which is NOW
    =AND($D4>-31,$D4<0)
    should not be D4 unless that the only range you have applied

    Select say A3: D1000, as row 3 is where the data row starts thats where the formula starts
    so
    =AND($D3>-31,$D3<0)
    Will highlight the row from column A to D

    Next
    you have
    ="$d4>-1"
    as the formula - and so that should be
    also the formula has " " around it, so will be seen as TEXT and NOT a formula
    change to
    =$d4>-1
    BUT as the selection is starts at 3 then so should the formula
    =$d3>-1
    Now because a blank cell will be seen as 0 and thats greater than -1
    use
    =AND($D3<>"", $D3>-1)

    see attached - where i added that rule for red

    otherwise clear all the rules from the conditional formatting and describe what colours you want for what formulas
    Attached Files Attached Files

+ 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 formula not working
    By dsteinhoff in forum Excel General
    Replies: 5
    Last Post: 06-14-2019, 05:02 PM
  2. [SOLVED] Conditional Formatting formula not working
    By pipsmultan in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-05-2019, 09:54 AM
  3. And formula not working with conditional formatting
    By reasemorin in forum Excel General
    Replies: 7
    Last Post: 11-29-2018, 10:09 PM
  4. [SOLVED] Conditional Formatting formula not working
    By panama74 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-12-2018, 05:19 PM
  5. Conditional Formatting not working on cell that has formula
    By ely.rodriguez in forum Excel General
    Replies: 8
    Last Post: 09-26-2017, 02:16 PM
  6. [SOLVED] Conditional Formatting Not Working With Formula
    By markd038 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2014, 04:05 AM
  7. AND in Conditional Formatting Formula not working
    By readyemail in forum Excel General
    Replies: 11
    Last Post: 11-30-2010, 06:00 PM

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