ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   #Name? Error when using NETWORKDAYS function ...... (https://www.excelbanter.com/excel-worksheet-functions/44391-name-error-when-using-networkdays-function.html)

SeanAlexander

#Name? Error when using NETWORKDAYS function ......
 

Hi,

I'm creating a spreadsheet which is meant to calculate the number of
days a person has worked between succesive weeks, given a specific
start date and end date of work for that person. I define the weeks by
the start date of the week (ie the date of every Monday). I've been
sitting and staring at this darned formula since yesterday, the logic
seems fine but I guess its a problem with the syntax or something.
Here's the formula I've used -

=IF(End Date < Week Beginning Date,0,IF(Start Date < Week Beg Date,IF
(End Date < Next Week Beg Date,
NETWORKDAYS(Week Beg Date,End Date),NETWORKDAYS(Week Beg Date,Next Week
Beg Date)),IF (Start Date Week Beg
Date,NETWORKDAYS(Start Date,Next Week Beg date),NETWORKDAYS(Start
Date,End Date))))

Would appreciate any help anyone can give me on this.

Thanks,

Sean.


--
SeanAlexander
------------------------------------------------------------------------
SeanAlexander's Profile: http://www.excelforum.com/member.php...o&userid=27066
View this thread: http://www.excelforum.com/showthread...hreadid=465828


Arvi Laanemets

Hi

Have you Analysis Toolpack activated?


--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )


"SeanAlexander"
wrote in message
news:SeanAlexander.1v13ej_1126163126.6933@excelfor um-nospam.com...

Hi,

I'm creating a spreadsheet which is meant to calculate the number of
days a person has worked between succesive weeks, given a specific
start date and end date of work for that person. I define the weeks by
the start date of the week (ie the date of every Monday). I've been
sitting and staring at this darned formula since yesterday, the logic
seems fine but I guess its a problem with the syntax or something.
Here's the formula I've used -

=IF(End Date < Week Beginning Date,0,IF(Start Date < Week Beg Date,IF
(End Date < Next Week Beg Date,
NETWORKDAYS(Week Beg Date,End Date),NETWORKDAYS(Week Beg Date,Next Week
Beg Date)),IF (Start Date Week Beg
Date,NETWORKDAYS(Start Date,Next Week Beg date),NETWORKDAYS(Start
Date,End Date))))

Would appreciate any help anyone can give me on this.

Thanks,

Sean.


--
SeanAlexander
------------------------------------------------------------------------
SeanAlexander's Profile:
http://www.excelforum.com/member.php...o&userid=27066
View this thread: http://www.excelforum.com/showthread...hreadid=465828




SeanAlexander


Thanks a Ton !!! :)) It works !!! I didnt know that that had to be
installed .... Are there any other functions that require this tool
pack specifically ?


--
SeanAlexander
------------------------------------------------------------------------
SeanAlexander's Profile: http://www.excelforum.com/member.php...o&userid=27066
View this thread: http://www.excelforum.com/showthread...hreadid=465828



All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com