Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Networkdays (working hours formula now to include holidays)

I am using a formula
=((NETWORKDAYS(C2,I2)-1)*(Z$2-Y$2)+IF(NETWORKDAYS(I2,I2),MEDIAN(MOD(I2,1),Z$2,Y$ 2),Z$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),Z$2,Y$2))

this gives me working hours Mon-Fri (Y and Z = start and finish times)

now I need to incorporate bank holidays please can you advise what i need to
do to the above formula
--
nigeo
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Networkdays (working hours formula now to include holidays)

Help on Networkdays has your answer. You create a range of your holidays,
then tell the function where it is, as in:
=((Networkdays(c2,i2,x1:x10)...

Regards, Fred

"nigeo" wrote in message
...
I am using a formula
=((NETWORKDAYS(C2,I2)-1)*(Z$2-Y$2)+IF(NETWORKDAYS(I2,I2),MEDIAN(MOD(I2,1),Z$2,Y$ 2),Z$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),Z$2,Y$2))

this gives me working hours Mon-Fri (Y and Z = start and finish times)

now I need to incorporate bank holidays please can you advise what i need
to
do to the above formula
--
nigeo


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 199
Default Networkdays (working hours formula now to include holidays)

"nigeo" wrote in message
...
I am using a formula
=((NETWORKDAYS(C2,I2)-1)*(Z$2-Y$2)+IF(NETWORKDAYS(I2,I2),MEDIAN(MOD(I2,1),Z$2,Y$ 2),Z$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),Z$2,Y$2))

this gives me working hours Mon-Fri (Y and Z = start and finish times)

now I need to incorporate bank holidays please can you advise what i need
to
do to the above formula


Networkdays has a third, and optional, part to its syntax:

NETWORKDAYS(start_date,end_date,holidays)

Simply enter the dates of bank holidays in an area on the spreadsheet - say
A1:A12 and then add this to your formula.

HTH

V

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Networkdays (working hours formula now to include holidays)

Hi,

NETWORKDAYS(StartDate,EndDate,Holidays)

Holidays being a range listing all the holidays as dates.

However, I don't follow how this formula does what you say you want. I
might be more useful if you showed us a sample of the data and told us what
you wanted from it. For example NETWORKDAYS(C2,C2) will always return 1 if
there is anything in C2, so why not just substitue 1? Or if necessary
IF(C2,1).

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"nigeo" wrote:

I am using a formula
=((NETWORKDAYS(C2,I2)-1)*(Z$2-Y$2)+IF(NETWORKDAYS(I2,I2),MEDIAN(MOD(I2,1),Z$2,Y$ 2),Z$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),Z$2,Y$2))

this gives me working hours Mon-Fri (Y and Z = start and finish times)

now I need to incorporate bank holidays please can you advise what i need to
do to the above formula
--
nigeo

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Networkdays (working hours formula now to include holidays)

Sorry Shane the formula does give me what i want, not sure why, was given
formula on this discussion site, I am now sorted with the holiday thing as
well.

Regards
--
nigeo


"Shane Devenshire" wrote:

Hi,

NETWORKDAYS(StartDate,EndDate,Holidays)

Holidays being a range listing all the holidays as dates.

However, I don't follow how this formula does what you say you want. I
might be more useful if you showed us a sample of the data and told us what
you wanted from it. For example NETWORKDAYS(C2,C2) will always return 1 if
there is anything in C2, so why not just substitue 1? Or if necessary
IF(C2,1).

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"nigeo" wrote:

I am using a formula
=((NETWORKDAYS(C2,I2)-1)*(Z$2-Y$2)+IF(NETWORKDAYS(I2,I2),MEDIAN(MOD(I2,1),Z$2,Y$ 2),Z$2)-MEDIAN(NETWORKDAYS(C2,C2)*MOD(C2,1),Z$2,Y$2))

this gives me working hours Mon-Fri (Y and Z = start and finish times)

now I need to incorporate bank holidays please can you advise what i need to
do to the above formula
--
nigeo



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 and holidays TST Excel Worksheet Functions 2 February 5th 08 07:22 PM
Calculating networkdays & working hours Scopar Excel Worksheet Functions 3 August 8th 07 11:27 AM
how to include saturdays in networkdays formula Vishnu Excel Discussion (Misc queries) 5 December 14th 06 01:28 AM
Removing holidays and weekends , networkdays amyk1313 Excel Discussion (Misc queries) 0 May 30th 06 05:17 PM
Use networkdays INCLUDE weekends, Exclude holidays ronnomad Excel Worksheet Functions 4 December 16th 05 04:55 PM


All times are GMT +1. The time now is 03:49 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"