Need Help With Conditional Formatting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
I would like cell A1 to have conditional formatting set so that if the number entered is less than 100, the cell turns red. That part I have, but if the cell is blank, I do not want it to turn any color.
Can someone please show me how to porperly write out the formula to achive this?

Thanks in advance!

Randy
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
On 2002-03-04 08:19, Anonymous wrote:
I would like cell A1 to have conditional formatting set so that if the number entered is less than 100, the cell turns red. That part I have, but if the cell is blank, I do not want it to turn any color.
Can someone please show me how to porperly write out the formula to achive this?

Thanks in advance!

Randy

Select A1.
Activate Format|Conditional Formatting.
Choose Cell Value Is and Less Than, the enter the number 100 in the box next to the Less Than box.
Activate Format.
Select red as color on the Patterns tab.
Click OK, OK.
 
Upvote 0
I think you need a formula for this Aladin. Change the Cell Value Is to Formula Is and enter the following formula: -

=AND(A1<>"",A1<100)

Where A1 is the cell with your data in.
 
Upvote 0
That formula works great, but there is one other thing that I can't figure out. It also changes the cell to red if the value is over 100. How do I prevent that?

Thanks for all your help.

Randy
 
Upvote 0
On 2002-03-04 13:53, Anonymous wrote:
That formula works great, but there is one other thing that I can't figure out. It also changes the cell to red if the value is over 100. How do I prevent that?

Randy

=AND(ISNUMBER($A$1),$A$1<100)

As Mudface noted, I failed to attend to your "but if the cell is blank".

Aladin
 
Upvote 0

Forum statistics

Threads
1,223,370
Messages
6,171,686
Members
452,418
Latest member
kennettz

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