+ Reply to Thread
Results 1 to 10 of 10

Conditioning formatting failing

  1. #1
    Forum Contributor
    Join Date
    01-25-2013
    Location
    near Philly, PA USA
    MS-Off Ver
    Excel 2019
    Posts
    178

    Talking Conditioning formatting failing

    Attached workbook has conditional formatting applied that only works in the first row of data (row 3).
    I've tried to change to formula to only apply to specific cells but Excel either then deletes the formula in other cells in the range or misapplies this new formula to other cells.
    I don't know if I'm doing something wrong or if my installation is corrupted.
    The formatting that is desired is illustrated in row 3 for the conditions explained in row 2.

    TIA!
    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.84 (24041420))
    Posts
    8,751

    Re: Conditioning formatting failing

    dont see any explanation
    Also the order of the conditional formatting
    Its testing M3 & N3
    then doing the colour scale
    you dont have stop if true

    Otherwise i see colours
    screen shot attached
    Attached Images Attached Images
    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
    Forum Contributor
    Join Date
    01-25-2013
    Location
    near Philly, PA USA
    MS-Off Ver
    Excel 2019
    Posts
    178

    Re: Conditioning formatting failing

    The issue is the the formulae I use for row three work correctly.
    However, these formulas are written specific to row three cells, i.e., $w$3, $x$4, as absolute references.
    If I change these to relative references, i.e., $w4 for the next row, the formulas in row three also change.
    I've tried to make the formatting relative to row 3 cells, i.e., d3, but then it doesn't work for following rows, i.e., d4.
    Does this help clarify my issue?

  4. #4
    Forum Contributor
    Join Date
    01-25-2013
    Location
    near Philly, PA USA
    MS-Off Ver
    Excel 2019
    Posts
    178

    Re: Conditioning formatting failing

    PS. A key issue is for the mid point, the formula references the values in column m and n and are different for each row. If I copy the formatting for row 3, and apply it to the rest of the rows, the absolute references for this formula don't change from the correct references for row 3.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,912

    Re: Conditioning formatting failing

    Relative references cannot be used in colour scales.

    Explain in words what you are trying to achieve.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    01-25-2013
    Location
    near Philly, PA USA
    MS-Off Ver
    Excel 2019
    Posts
    178

    Re: Conditioning formatting failing

    This is to track swimming pool chemistry values. The cell color will change based on the Ideal range values for each in column N and O.
    The low test and high test rules work fine but when the three-color rule is applied, it falls apart because Excel wants to use absolute values and not relative ones.
    If you look at the formula for the three-color in row three:
    the Midpoint formula is: =$N$3+(($O$3-$N$3)*0.5)
    For row 4, it should be =$N$4+(($O$4-$N$4)*0.5)
    Now, Excel uses that same formula for row 4 but since the Ideal Range values are different for row 4 than row 3, it shows a wrong color range for row 4.
    If I try to change the setting to only apply to the cell in row 4, and correct the formula to represent row 4, it removes the formula for the other rows.
    How can each row have the Three-color rule work without the same formula applied to each row?
    The sample sheet (now v2), has sample values for May 10 and May 15. The blue background columns headers show that the Conditional Formatting rules work for row 3 but not the other rows. In use, these blue columns will not be there, these are there for diagnostic purposes.
    Attached Files Attached Files

  7. #7
    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: Conditioning formatting failing

    relative address dont work with Excel icon sets
    SO one way to get a relative address is to use an OFFSET() formula

    so in the icons for LOW I used
    =OFFSET($N$3,ROW()-3,0,1,1)
    For High
    =OFFSET($O$3,ROW()-3,0,1,1)

    And MIDpoint

    =OFFSET($N$3,ROW()-3,0,1,1)+((OFFSET($O$3,ROW()-3,0,1,1)-OFFSET($N$3,ROW()-3,0,1,1))*0.5)

    Then just for a REFERENCE to see if formula worked in columns , see Q,R & S - Just to see the working - NOT used

    I then removed the other conditional format rules and just applied the Icon Set to see if they worked OK

    What do you think ?
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    01-25-2013
    Location
    near Philly, PA USA
    MS-Off Ver
    Excel 2019
    Posts
    178

    Re: Conditioning formatting failing

    Etaf,
    Thanks for the efforts but it doesn't seem to work for me. Example, if cell d7 is changed to 70, it should show yellow/amber as this is midvalue of the low 60 and high 80.
    Here, the cell background is still green.
    Any thoughts?
    Thanks,
    Bob

  9. #9
    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: Conditioning formatting failing

    OK,
    i did a search and found this site
    http://dailydoseofexcel.com/archives...ve-references/

    Which explains that OFFSET does not work for a range ,

    So i just selected row 3
    changed the applied to range to be D3 to I3
    then selected D4 to I13
    The cleared all the rules from that selection

    Next
    copied D3 to I3
    then
    selected
    D4 to I4
    PASTE - Special > Formatting
    then
    selected
    D5 to I5
    PASTE - Special > Formatting
    then
    selected
    D6 to I6
    PASTE - Special > Formatting
    And repeated each row , upto ROW 13

    see what you think attached
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    01-25-2013
    Location
    near Philly, PA USA
    MS-Off Ver
    Excel 2019
    Posts
    178

    Re: Conditioning formatting failing

    In case anyone wants it; final version attached.
    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] Conditioning Formatting Help
    By georgiaaamayyy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-27-2020, 05:18 AM
  2. conditioning formatting
    By kiwaylch in forum Excel General
    Replies: 5
    Last Post: 12-06-2018, 05:37 AM
  3. need help in conditioning formatting
    By AWIN in forum Excel General
    Replies: 8
    Last Post: 08-14-2018, 07:52 AM
  4. Need help applying Conditioning Formatting
    By kannon8833 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2018, 10:25 AM
  5. conditioning formatting?
    By pleasehelp in forum Excel General
    Replies: 10
    Last Post: 04-16-2007, 07:48 PM
  6. Conditioning formatting
    By Donald in forum Excel General
    Replies: 1
    Last Post: 11-29-2006, 07:30 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