Hiding Number problem - cant use CF

drewberts

Board Regular
Joined
Sep 5, 2013
Messages
177
Office Version
  1. 365
Platform
  1. Windows
I have 2 columns - start date and end date. The start date is populated from elsewhere in my workbook and the end date is entered manually. I have a 3rd col which computed the number of working days between the 2 dates. The calculated cell displays a large number if the end date cell is blank - I understand what is happening here but I want to hide (or replace the number with a "-") if this happens.

The obvious way is via CF and normally I would use this but I'm already using CF to colour each alternative row. This means the CF to set the large number to have a font colour the same as the cell colour will only work on every other row.

What other options do I have? I've thought about a custom number format but I want the correct answers to be in the current format, soi I cant see an option (both the correct answer and the large number is positive so I can use a custom number format).
 

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.
Get the formula to deal with it. Something like this, where B3 would be the second, manually entered, date

=IF(B3="","",your_existing_formula)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,003
Members
449,414
Latest member
sameri

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