Forum Discussion

Daniel Desmarais's avatar
Daniel Desmarais
Copper Contributor
Nov 29, 2017
Solved

Need help with a conditional formatting equation

Hello,

 

I am trying to get a series of cells within a column "D" to fill in with color if the difference between values in two adjacent columns "B & C" is less than a value in a column on another worksheet "worksheet 1 column A".

 

Here is a generic form of what I got:

 

="$C1-$B1<'worksheet 1'!$A1''

It accepted the equation but the formatting that I want is not working. Any ideas?

  • Deleted's avatar
    Deleted
    Nov 30, 2017

    I seem to have it working like this:

    I'm assuming it colours when A=D

    I have the formula as:

    and the conditional formatting as, but you could equally just select not equal to:

7 Replies

    • Deleted's avatar
      Deleted
      The $C5 and $B5 can be on any sheet, just tried that as well
    • Deleted's avatar
      Deleted
      Except put $A$5 ... instead of D
      • Daniel Desmarais's avatar
        Daniel Desmarais
        Copper Contributor

        Hello Stephen,

         

        I'm having a tricky time getting it to work. I will give a more practical scenario.

         

         

        In this case, I used IF functions to get cell D1 to subtract B1 from C1 unless the difference is less than A1 in which case, to display A1.  If the C1 value was 10, D1 would display 9 but since C1-B1<A1 it is displaying A1.  I am trying to get Cell D1 to fill with color if C1-B1<A1 even though cell D1=A1.

  • Tanya Denton's avatar
    Tanya Denton
    Steel Contributor
    try using an IF statement which returns 1 or 0 (format column as number no dec places) then the formatting should work OK. I just tried the true and false and could not get it to work. I am no expert but this may work for you.

Resources