Conditional Formatting across rows for first value less than zero

CLG31415

New Member
Joined
Apr 28, 2016
Messages
10
I am attempting to set up a conditional formatting rule that will create a border to distinguish when my sorted values have changed from positive to negative. My data is sorted by dollar amounts of growth and in this example, I'd like my formatting to have a line between rows 6 and 7 because that is the first instance when growth drops below zero. I used a formula in D2 that I found online to help determine when the minimum absolute value is in order to help set up my conditional formatting. The formatting works, but it only puts a border on one cell. instead of on the whole row. In the conditional formatting box I am using Applies to: A1:C13. And my Rule states: =OR(C2=0-$D$2,C2=0+$D$2) it is then supposed to put a border on the top part of the cell.

Is there an easier way to do this? And, is there a way to get the entire corresponding row to have a border instead of just one cell?


ABCD
1RankMonth$ Growth
21December30,000{=MIN(ABS(C2:C13-(0)))}
32January20,000
43April10,000
54August5,000
65October1,000
76February(500)
87July(1,000)
98May(5,000)
109March(6,000)
1110November(9,000)
1211September(10,000)
1312June(11,000)

<tbody>
</tbody>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
The formatting works, but it only puts a border on one cell. instead of on the whole row. In the conditional formatting box I am using Applies to: A1:C13. And my Rule states: =OR(C2=0-$D$2,C2=0+$D$2)
Try locking down your column C reference, so it will not adjust as you move across columns A to C, i.e.
Code:
[COLOR=#333333]=OR([/COLOR][COLOR=#ff0000][B]$[/B][/COLOR][COLOR=#333333]C2=0-$D$2,[/COLOR][COLOR=#ff0000][B]$[/B][/COLOR][COLOR=#333333]C2=0+$D$2) [/COLOR]
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,146
Members
449,364
Latest member
AlienSx

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