using networkdays with blank cells

sooroo

New Member
Joined
Dec 6, 2005
Messages
27
I am trying to get some help regarding a report I'm trying to create. There are many columns of dates - basically tracking at what stage the different projects are at. Some projects only have a few dates filled in, and some have the majority filled in.

I'm trying to find the cycle times of each phase of the project, but sometimes there are empty cells because the phase/project has not been completed yet. I am trying to find a way to replace an empty cell with today's date so that I can figure out the current cycle time of the entire project, as well as each phase.

I thought that I could do a formula that tested if the cell is empty, and if the cell was empty, I could replace it with today's date. However, I have 2 problems - 1. I don't know how to test if a cell is empty when writing a formula. The only approach I could find was if(X2=" ") for non blank cells. 2. I am a novice to networkdays, so I don't know if this formula is being overtaxed.

One of my meager attempts was to try:
=IF(X2=" ","NA",NETWORKDAYS(X2,IF(Y2=" ",Y2,TODAY()),'Holiday Dates'!$A$1:$A$9))

X2=Date In
Y2=Date Out

Thanks to anyone for their insights

:rolleyes:
 

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.

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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