#1   Report Post  
kevt
 
Posts: n/a
Default networkdays

I am trying to calculate working hours.i am udins NETWORKDAYS to get the
days and i need to calculate different hours for different days, ie fridays
are 4 hours and monday to thursday are 8.25 hours, if office based fridays
are 7 hours and monday to thursday are 7.5 hours.
I would really aprecitate any help

thanks
Kev
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 8 Sep 2005 04:26:01 -0700, "kevt"
wrote:

I am trying to calculate working hours.i am udins NETWORKDAYS to get the
days and i need to calculate different hours for different days, ie fridays
are 4 hours and monday to thursday are 8.25 hours, if office based fridays
are 7 hours and monday to thursday are 7.5 hours.
I would really aprecitate any help

thanks
Kev


Try this **array** formula:

=SUM(INT((EndDate-WEEKDAY(EndDate+1-{2,3,4,5,6})-StartDate+8)/7)*
IF(Location="office",{7.5,7.5,7.5,7.5,7},{8.25,8.2 5,8.25,8.25,4}))-
SUMPRODUCT((Holidays=StartDate)*(Holidays<=EndDat e)*
(WEEKDAY(Holidays)={2,3,4,5,6})*IF(Location="offic e",
{7.5,7.5,7.5,7.5,7},{8.25,8.25,8.25,8.25,4}))

To enter an **array** formula, after typing or pasting it into the cell, hold
down <ctrl<shift while hitting <enter. Excel will place braces {...} around
the formula.

I used named variables to make the logic a bit more clear and account for the
possibility that the work was taking place "office-based" or not.


--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NETWORKDAYS() not avaialbe after reopening Stan Excel Worksheet Functions 2 June 19th 05 04:53 PM
NETWORKDAYS function problem Arvi Laanemets Excel Worksheet Functions 5 April 19th 05 08:10 AM
networkdays() problem when deleting row or column Jason Excel Worksheet Functions 0 April 8th 05 11:09 PM
Networkdays shows as #NAME even though I have the toolpack instal. mark Excel Discussion (Misc queries) 1 December 1st 04 09:13 PM
MS Excel Function - Networkdays Nilesh Inamdar Excel Worksheet Functions 3 November 26th 04 07:10 PM


All times are GMT +1. The time now is 07:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"