Using NetworkDays Formula

woodland81

New Member
Joined
Dec 27, 2010
Messages
14
In my Spreadsheet i have got First Day of Absence and Last Day of Absense Dates. Next column is Amount of Weekdays Absent using these to days and the formula =NETWORKDAYS(H6,I6)

If someone is currently off sick the Last DAy is completed. how can I stop a crazy Minus number appearing in the Total amount of Weekdays Absent?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If a person is off for 1 day only, is their
First Day of Absence date
and
Last Day of Absence date

the same?
 
Upvote 0
If one of the dates is blank, you're likely to see negative numbers so:
=IF(COUNTBLANK(H6:I6)=0,NETWORKDAYS(H6,I6),"")
You'll also probably need to add 1 to a networkday calculation so that the same date for 1st and last date results in 1
 
Upvote 0
You could count the days up to the current day if you use

=NETWORKDAYS(H6,IF(I6="",TODAY(),I6))

or if you just want a blank result until I6 is filled in then use

=IF(I6="","",NETWORKDAYS(H6,I6))
 
Upvote 0
Thats Great those options, in the beginning I did think i needed some reference to Today. you guys have come up with both :)

I have another column called Currently Sick, this just has a manual 'Y' entered if thats the case.

I was thinking of having some formula to check IF Last Day of Absence (I6)had an entry, if it didnt meant a 'Y' was to be put in (N6). Is this easily done, through validation of some sort?

Lee
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,916
Members
452,949
Latest member
beartooth91

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