Conditional Format - set value in cell if other cell is not blank

RogerC

Well-known Member
Joined
Mar 25, 2002
Messages
536
I need to have cell F3 = 0 if cell B3 is blank and no other value has been entered in F3 yet.

I tried setting the default font color of column F to white and entering 0 in every cell in column F and then using conditional formatting to change the font color to black if a value is entered in column B. That works, but it causes the user to have to change the print range every time because it wants to print the hidden 0's at the bottom of the list where no values have yet been entered into column B.

Can anyone help me with this format formula?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Code:
=IF(B3="",0,"")

Remove all conditional formatting, put that in F3 and copy down column F.

The formula reads

IF B3 is blank THEN(comma1) show a zero ELSE(comma2) show nothing
 
Upvote 0

Forum statistics

Threads
1,213,513
Messages
6,114,072
Members
448,546
Latest member
KH Consulting

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