Hi
I have the following formula which counts number of days between dates in two adjacent cells excluding holidays
=NETWORKDAYS(U311,V311,$AA$4:$AA$14)-1
The $AA$4:$AA$14 refers tote range where the excluded holiday dates are stored.
I have included the -1 at the end as it over counts by one day every time. i.e. if the same date is in both cells it counts 1
However if no date is in both fields it count -1 (minus one)
If a date is just in one field it counts a very high number, example below.
[TABLE="width: 228"]
<colgroup><col width="89" style="width: 67pt; mso-width-source: userset; mso-width-alt: 3254;" span="2"> <col width="125" style="width: 94pt; mso-width-source: userset; mso-width-alt: 4571;"> <tbody>[TR]
[TD="width: 89, bgcolor: transparent"]
[/TD]
[TD="width: 89, bgcolor: transparent"] [/TD]
[TD="width: 125, bgcolor: #D8E4BC"]-1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]16/07/2014
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-29879[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]20/06/2014
[/TD]
[TD="bgcolor: transparent"]08/07/2014[/TD]
[TD="bgcolor: #D8E4BC"]12[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]04/07/2014
[/TD]
[TD="bgcolor: transparent"]16/07/2014[/TD]
[TD="bgcolor: #D8E4BC"]8[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]15/07/2014
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-29878[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]15/07/2014
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-29878[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-1[/TD]
[/TR]
</tbody>[/TABLE]
So multiple questions - is there a better formula to use for this? How do I get the result to show ZERO when both cells are empty? can I get the result to show number of days to present date where there is only a date in first column?
Thanks
I have the following formula which counts number of days between dates in two adjacent cells excluding holidays
=NETWORKDAYS(U311,V311,$AA$4:$AA$14)-1
The $AA$4:$AA$14 refers tote range where the excluded holiday dates are stored.
I have included the -1 at the end as it over counts by one day every time. i.e. if the same date is in both cells it counts 1
However if no date is in both fields it count -1 (minus one)
If a date is just in one field it counts a very high number, example below.
[TABLE="width: 228"]
<colgroup><col width="89" style="width: 67pt; mso-width-source: userset; mso-width-alt: 3254;" span="2"> <col width="125" style="width: 94pt; mso-width-source: userset; mso-width-alt: 4571;"> <tbody>[TR]
[TD="width: 89, bgcolor: transparent"]
[/TD]
[TD="width: 89, bgcolor: transparent"] [/TD]
[TD="width: 125, bgcolor: #D8E4BC"]-1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]16/07/2014
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-29879[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]20/06/2014
[/TD]
[TD="bgcolor: transparent"]08/07/2014[/TD]
[TD="bgcolor: #D8E4BC"]12[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]04/07/2014
[/TD]
[TD="bgcolor: transparent"]16/07/2014[/TD]
[TD="bgcolor: #D8E4BC"]8[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]15/07/2014
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-29878[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]15/07/2014
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-29878[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]
[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: #D8E4BC"]-1[/TD]
[/TR]
</tbody>[/TABLE]
So multiple questions - is there a better formula to use for this? How do I get the result to show ZERO when both cells are empty? can I get the result to show number of days to present date where there is only a date in first column?
Thanks