Conditional Formatting Questions

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,347
Office Version
  1. 365
Platform
  1. Windows
Can you do an IIf statement where if another field is Blank then make the field with the conditional formats text a color?
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
No and Yes. Not with IIF, but you can do what you want. :)

Select the cell you want to format, go to Conditional Formatting and base it off of another cell... =(C2="")

(replace C2 with the cell you are checking)
 
Upvote 0
Are you asking whether or not you can Conditionally Format one field based on whether another field is blank?
Are you doing this is a Form or Report?
 
Upvote 0
No and Yes. Not with IIF, but you can do what you want. :)

Select the cell you want to format, go to Conditional Formatting and base it off of another cell... =(C2="")

(replace C2 with the cell you are checking)
Russell,
I think you may have missed that this question is in the Microsoft Access forum, not the Excel Questions forum!;)
(though Conditional Formatting is somewhat similar)
 
Last edited:
Upvote 0
In a form. The user needs make a selection in a Listbox. I created an unbound field on the form for the "title" to the List box. If they have not made a selection in the list box I want the "Title" to be in Red and once they have made a selection I want the title to go to Grey - its formatted color.
 
Upvote 0
Assuming this unbound "Title" field is a TextBox, you can use Conditional Formatting like this on it:
Code:
Expression is: [[I]ListBoxFieldName[/I]] is Null
and then choose your red formatting option.
 
Upvote 0
One more question, on this. What if I wanted to do an "AND" expression? If two fields are Null? is that possible?
 
Upvote 0
What would you use for is Not null?

[ListBoxFieldName] is not Null Or
[ListBoxFieldName] not Null
 
Upvote 0
One more question, on this. What if I wanted to do an "AND" expression? If two fields are Null? is that possible?
Code:
Expression is: ([[I]Field1[/I]] is Null) And ([[I]Field2[/I][FONT=Verdana]] is Null)[/FONT]
 
Upvote 0
Russell,
I think you may have missed that this question is in the Microsoft Access forum, not the Excel Questions forum!;)
(though Conditional Formatting is somewhat similar)

I sure did! Sorry, was very early for me. :LOL:
 
Upvote 0

Forum statistics

Threads
1,221,700
Messages
6,161,371
Members
451,700
Latest member
Eccymarge

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