Condition Format +/- 10%

RID

New Member
Joined
Dec 17, 2009
Messages
25
Office Version
  1. 365
Platform
  1. Windows
Good Morning

I am trying to conditional format a column of data where a +/- 10% on previous cell would be formatted.

There are columns where 0 is present due to either a breakdown or non-working shift that needs to be in the column so cannot remove this.

For example there is a 10% swing between rows 1 & 2, rows 2&3 and rows 6&8 however between rows and 6 in row 7 there is a non-production day, is there a formula to detect the zero and point it to the most recent row in this case 6.

Am a bit stuck on this and having a complete mind black on just how to format based on +/- 10% of previous cell never mind the zero being thrown into the mix, so any sort of help would be appreciated.

91
80
93
90
92
97
0
81
82
79
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Assuming the data is in Column A starting from cell A3

Check this and revert -

Excel Formula:
=OR(AND(A2=0,OR(A3<=A1*0.9,A3>=A1*1.1)),AND(A2<>0,OR(A3<=A2*0.9,A3>=A2*1.1)))
 
Upvote 0
Assuming the data is in Column A starting from cell A3

Check this and revert -

Excel Formula:
=OR(AND(A2=0,OR(A3<=A1*0.9,A3>=A1*1.1)),AND(A2<>0,OR(A3<=A2*0.9,A3>=A2*1.1)))
Apologies I should have put the column information into the table.

Column R
Row 491
Row 580
Row 693
Row 790
Row 892
Row 997
Row 100
Row 1181
Row 1282
 
Upvote 0
There is no data in rows 1, 2 & 3 this is table headers. This is an actual list of readings taken over a few days

1713859983173.png
 
Upvote 0
Slight modification to the formula needed. Use as below -

Excel Formula:
=OR(AND(R4=0,OR(R5<=R3*0.9,R5>=R3*1.1)),AND(R4<>0,OR(R5<=R4*0.9,R5>=R4*1.1)))
 
Last edited:
Upvote 0
Slight modification to the formula needed. Use as below -

Excel Formula:
=OR(AND(R4=0,OR(R5<=R3*0.9,R5>=R3*1.1)),AND(R4<>0,OR(R5<=R4*0.9,R5>=R4*1.1)))
Rather try this

Excel Formula:
=OR(AND(R3=0,OR(R5<=R3*0.9,R5>=R3*1.1)),AND(R4<>0,OR(R5<=R4*0.9,R5>=R4*1.1)))
 
Upvote 0
Thats not worked I don't think, is the formula just basing it on the value of cell R4 only, for the purpose of the conditional formatting, say the data in R4 is data set point 1, the formula will then calculate if there is 10% change in data set point 2 R5, if there is no change out with 10% it should not change colour, the formula then moves onto the percentage change between data set point 2 R5 and data set point 3 R6, there is a 10% change here so I would like the cell to show R6 has got >10% change from R5 and it would be highlighted. The formula would then go on following this pattern of just taking the previous cell only and with the next cell. The zero has been identifed as a change but can and IF function be inserted here to ignore or am and jump to the previous cell as the new calculation, so for exampl when it comes R22 instead of taking R23 for the calculation because its got a zero in it, it would jump to the next cell with a value stated in, in this instance it would recognise R24 as the next cell discounting R23 because of the zero.

I hope that explains it a bit better and I appreciate you taking the time to respond.
1713953316928.png
 
Upvote 0
I have well tested the formula I gave. You show me the formula you actually applied.
 
Upvote 0
Check this and revert -

Book1
R
490
591
680
783
884
986
1070
1173
1281
1382
1486
1580
160
1783
1881
1976
2079
2181
2282
230
2467
2566
2664
2765
2866
2968
3068
3164
3268
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
R4:R100Cell Value=0textNO
R4:R100Expression=AND(R5<>"",R4<>0,OR(AND(R5=0,R6<>"",OR(R6<=R4*0.9,R6>=R4*1.1)),AND(R5<>0,OR(R5<=R4*0.9,R5>=R4*1.1))))textNO
 
Upvote 0
Sanjay I have the same formula and I am getting the same result.

What I can see is that in your example it is high-lighting the previous Cell as the change, R9 & R10 for example in your list, the formula is showing the percentage change in R9 and would it be possible to highlight that there has been a percentage change in R10 not R9.
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,349
Members
449,155
Latest member
ravioli44

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