Conditional formatting based on the cell with or without formula

itsrich

New Member
Joined
Apr 13, 2009
Messages
49
Office Version
  1. 2019
Platform
  1. Windows
I am using Excel as a BOM. Some cells contain text others, this formula =IFERROR(VLOOKUP(A85,'P:\Fishbowl\FishBOM\[FishLINE.xlsx]FishLINE'!A:I,9,FALSE),"") The formula returns text from the DB. The cell should be in two states, text or a formula that returns text.

The conditional format I wish is:

Text, format the cell red.
Formula that returns text, format the cell blue.

My predecessor did me no favors in how he set things up.

TY for your knowledge!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
2 rules
=ISFORMULA(A1)
blue
=and(a1<>"",NOT(ISFORMULA(A1)))
red
stops blank cells highlighting

Book7
A
1a
2b
3c
4cellc
5
6
7
8
9
Sheet1
Cell Formulas
RangeFormula
A4A4=C4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A9Expression=AND(A1<>"",NOT(ISFORMULA(A1)))textNO
A1:A8Expression=ISFORMULA(A1)textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:A100 - Change, column, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=ISFORMULA(A2)

Format [Number, Font, Border, Fill] = FILL Blue
choose the format you would like to apply when the condition is true
OK >> OK
 
Last edited:
Upvote 0
Solution
2 rules
=ISFORMULA(A1)
blue
=and(a1<>"",NOT(ISFORMULA(A1)))
red
stops blank cells highlighting

Book7
A
1a
2b
3c
4cellc
5
6
7
8
9
Sheet1
Cell Formulas
RangeFormula
A4A4=C4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A9Expression=AND(A1<>"",NOT(ISFORMULA(A1)))textNO
A1:A8Expression=ISFORMULA(A1)textNO


for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:A100 - Change, column, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=ISFORMULA(A2)

Format [Number, Font, Border, Fill] = FILL Blue
choose the format you would like to apply when the condition is true
OK >> OK
etaf,

TYVM! I had not considered the third option of a blank cell. The blank cells showed up! GREAT visual information.

This is one of those things, no one else in the company will know what atef has helped me do.

As far as I am concerned you have solved the problem. Again TYVM!
 
Upvote 0

Forum statistics

Threads
1,214,406
Messages
6,119,330
Members
448,888
Latest member
Arle8907

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