Conditional Formatting on Cell that has a formula.

cool0masty2

New Member
Joined
Oct 11, 2013
Messages
20
I want to put CF in a cell where i have implemented a formula
ABC
1QuantitySold QuantityRemaining Quantity
21239
3330
434-1

<tbody>
</tbody>

I had put formula at C ---> A2-B2...
A3-B3
A4-B4...

Because C3 is 0, CF should turn the whole row to color Red
and Because C4 is -1 ( a negative value ), CF should also give it the same color, Red... but how to do it ?
I used =$C3<=0 But it messes up my whole sheet if I do any modifications in tables... https://drive.google.com/file/d/0B8Cv2clkGPzFbXhSQkpoN0VhMlk/view?usp=sharing
this happens...
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Your image doesn't convey much, but maybe try this formula in C2:

=IF(AND(ISNUMBER(A2),ISNUMBER(B2)),A2-B2,"")
 
Upvote 0
Hi select A2 to C4 then go to conditional formatting > New Rule. Select the option "Use a formula to determine which cells to format" over ther type the below:

=($C2<=0)

Then define the formatting you would like to see applied to selected area cells

HTH
 
Upvote 0
Thanks :)
Il bring it in working...
Will let U kno if any problem arises. . .

With the CF i used last time this was the problem... I thought its better to bring it to Your knowledge so this doesn't happen again . . .
Hi select A2 to C4 then go to conditional formatting > New Rule. Select the option "Use a formula to determine which cells to format" over ther type the below:

=($C2<=0)

Then define the formatting you would like to see applied to selected area cells

HTH
 
Last edited:
Upvote 0
Ok... Il put this as a formula ---> =IF(AND(ISNUMBER([@[Total Pcs.]]),ISNUMBER([@[Sold Pcs.]])),[@[Total Pcs.]]-[@[Sold Pcs.]],"")... right?
and
=($F5<=0) as conditional formatting on all rows i want to turn red...right?
apply fomula and CF together..?
In F5:

=IF(AND(ISNUMBER([@[Total Pcs.]]),ISNUMBER([@[Sold Pcs.]])),[@[Total Pcs.]]-[@[Sold Pcs.]],"")
 
Last edited:
Upvote 0
In your sample workbook, I amended the formula in F5 to the one I gave you and the cells in that table were no longer highlighted red. So that's all you need to do.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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