Conditional Formatting

jevi

Active Member
Joined
Apr 13, 2010
Messages
339
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I would like to have a formula for doing conditional formatting only in the columns Delta but it is tricky as in the first row:

Delta1 = data2- data1
Delta2= data3 - data2
Delta3= data4 - data3

So in the first row of delta1: 12-10=2 and I need this case do be red as an increment is not good.
in the second row of delta1: 41 - 43= -2 and I need this cell/case to be green as it is improving.
in the third row of delta1: 0 - 0 = 0 and I need this cell to be green as it has nothing to do as it is zero.

but and here is the tricky one:

Row1 but Delta2 = 12 - 12=0 I need this cell to be red as it not improving the situation. They have a stock of questionaries and they need to finish them and not increment the number but also keeping the same number is not good.

I hope I was clear with my explanation:)

1627925965163.png


Thank you so much,
 

Attachments

  • 1627925159964.png
    1627925159964.png
    3.8 KB · Views: 4
  • 1627925246697.png
    1627925246697.png
    4 KB · Views: 6
  • 1627925374405.png
    1627925374405.png
    4.3 KB · Views: 5
  • 1627925890416.png
    1627925890416.png
    4.7 KB · Views: 5

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Assuming Delta1 is col D
for -ve numbers use =D2<0
for +ve numbers use =D2>0
for green 0s use =AND(C2=0,D2=0)
and for red 0s =AND(C2<>0,D2=0)
 
Upvote 0
Solution
Assuming Delta1 is col D
for -ve numbers use =D2<0
for +ve numbers use =D2>0
for green 0s use =AND(C2=0,D2=0)
and for red 0s =AND(C2<>0,D2=0)
Hi Pluff,

it worked great....I did put all 4 formulas in the conditional formatting and they worked with all the cases I have.

Thank you so much:).
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top