Conditional Formatting for #'s ONLY

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
622
Office Version
  1. 2011
Platform
  1. MacOS
My apologies for my brain being a bowl of pudding right now. Hopefully this question doesn't come across too stupid to ask, but...

All I'm looking to do is to use conditional formatting for a group of cells to change the text color to red if the value in any given cell is =>1. However, there will be cases when an X is present in the cell, which is throwing off my results. Right now anything in a cell formats the color to red. As I was typing this out I was thinking that I may need an ISNUMBER formula to do this?

Thank you for your help!

-Mike
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
try:
Book1
ABC
1valueformula
2-1=-2/2
30=0/2
41=1/1
50.000001=1/1000000
6#N/A(blank)
7 =""
8X="X"
Sheet1
Cell Formulas
RangeFormula
A2A2=-2/2
A3A3=0/2
A4A4=1/1
A5A5=1/1000000
B2:B8B2=FORMULATEXT(A2)
A7A7=""
A8A8="X"
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A8Expression=AND(ISNUMBER(A2),A2>=1)textNO
 
Upvote 0
Hi awoohaw,
I tried using:
=AND(ISNUMBER(A2),A2>=1)
And made the change to the range I'm using (S3:AD1000), but it didn't do anything to the range of cells I have selected for the conditional formatting.

Maybe I'm not using it correctly?
 
Upvote 0
for cell S3 enter this conditional formating rule exactly:
Excel Formula:
=AND(ISNUMBER(S3),S3>=1)
Notice the references are completely relative, no "$" signs.
then copy formatting over the entire range.

Clear all rule first.
 
Upvote 0
Solution
That is exactly what I used. I deleted the rule and started over, and got the same results.

Unfortunately, I have to shut down the computer for tonight and hopefully try again tomorrow (or Monday.)

Thank you!!!
 
Upvote 0
Hi awoohaw,
Well, what you suggested DID actually work. The problem I ended up finding was that the cells in question were originally formatted as text, which I suspected was the problem since what you gave me should have worked. I changed their format to "number", but the cells with numbers were still showed errors stating "convert to a number." :rolleyes:

The formula WAS working. I simply had to go to every cell containing a number and re-enter the number for it to work.

Thank for the help!
 
Upvote 0
i'm happy you figured it out. Next time you have a "number as text" situation you can try to use some of these ideas:
1. Use Text To columns.
OR
2. In a random cell type a 1. then copy the cell, then use paste-special-multiply.
 
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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