Formatting color and font to a logical statement result?

S

STRAC

How do I format color and font to a logical statement result?

For example my formula is: =IF(M199>360,"INVALID","OK"), I want the "INVALID"
to really stand out on the spreadsheet by bolding it and changing the
default color to red. Is there a way to do this?
 
F

FSt1

hi
it is possible to have multiple formats in a cell but only with static data
such as text or numbers stored as text. It is not possible with data that
changes or may vary from time to time such as number, dates and formulas.
reason. to have multiple formats requires specific start and stop points
within the cell. formula could have a few characters to many many characters
but only return a single digit on monday and 10 digits on friday. date change
daily. at the beginning of the month a data may be 8 characters and at the
end of the month, 10 characters. the specific start and stop points do not
adjust as data changes so it is not possible to have multiple formats with
formulas, dates and numbers.

sorry
regards
FSt1
 
R

reitanospa1

Very easy with conditional formatting; you can set whatever formatting
you like including font, text color, fill color, etc.
 
G

Gaurav

Select the entire range, go to Format>Conditional Formatting>Cell Value
Is>Equal To>"INVALID". Click on format and choose the pattern and font
style.

Thanks
 
R

Rick Rothstein \(MVP - VB\)

Select the column that contains these formulas, click Format/Conditional
Formatting from Excel's menu; select "Cell Value Is" from the first drop
down field, select "equal to" in the second drop down field and put
="INVALID" in the third fill-in field; click the Format button, and select
Bold from the Font tab and your red color from the Patterns tab on the
dialog box that appears; then OK your way back to the spreadsheet.

Rick
 
S

STRAC

Thank-You!!

Gaurav said:
Select the entire range, go to Format>Conditional Formatting>Cell Value
Is>Equal To>"INVALID". Click on format and choose the pattern and font
style.

Thanks
 
S

STRAC

Thank-You!!

Rick Rothstein (MVP - VB) said:
Select the column that contains these formulas, click Format/Conditional
Formatting from Excel's menu; select "Cell Value Is" from the first drop
down field, select "equal to" in the second drop down field and put
="INVALID" in the third fill-in field; click the Format button, and select
Bold from the Font tab and your red color from the Patterns tab on the
dialog box that appears; then OK your way back to the spreadsheet.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top