Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Calculate time (excluding weekend (48 hrs))

Need help to calculate the total number of hours excluding the 48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Calculate time (excluding weekend (48 hrs))

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the 48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Calculate time (excluding weekend (48 hrs))

Sorry Mike.....

C3 is the start date/time of a particular project
C4 is the end date/time of that particular piece of work
D4 calculates the hours it has taken to complete that piece of work - I need
D4 to ALSO ignore the 48 hours in a weekend.

Can you help??? :-)

"Mike" wrote:

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the 48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Calculate time (excluding weekend (48 hrs))

I have assumed youv'e entered the day and time using CTRL ; and CTRL + Shift
+ ;

so try
C3 = 02/02/2007 08:00:00
C4 = 05/02/2007 09:26:00

=((C4-C3)*24)-(NETWORKDAYS(C3,C4)*24)

This returns in D4 25.43

"AndyO_UK" wrote:

Sorry Mike.....

C3 is the start date/time of a particular project
C4 is the end date/time of that particular piece of work
D4 calculates the hours it has taken to complete that piece of work - I need
D4 to ALSO ignore the 48 hours in a weekend.

Can you help??? :-)

"Mike" wrote:

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the 48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Calculate time (excluding weekend (48 hrs))

Hi Mike

I think this only works in the specific case of the dates the OP used
and would return incorrect results if for example the second date were
increased to 06/02/07 where your result remains fixed at 25.43. This is
because you are taking working days away from total elapsed time, rather
than the reciprocal of deducting just weekend days from the elapsed
time.

I would suggest the following
=((C4-C3)*24)-SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(INT(C3)&":"&INT(C4))),2)5)) *24

The second part of the formula is counting the number of days that are
weekend days during the total time interval, multiplying this by 24 and
subtracting from the total elapsed time.
--
Regards

Roger Govier


"Mike" wrote in message
...
I have assumed youv'e entered the day and time using CTRL ; and CTRL +
Shift
+ ;

so try
C3 = 02/02/2007 08:00:00
C4 = 05/02/2007 09:26:00

=((C4-C3)*24)-(NETWORKDAYS(C3,C4)*24)

This returns in D4 25.43

"AndyO_UK" wrote:

Sorry Mike.....

C3 is the start date/time of a particular project
C4 is the end date/time of that particular piece of work
D4 calculates the hours it has taken to complete that piece of work -
I need
D4 to ALSO ignore the 48 hours in a weekend.

Can you help??? :-)

"Mike" wrote:

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the 48
hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Calculate time (excluding weekend (48 hrs))

I get value: #NAME? :-( Obviously something is not set right (?)



"Mike" wrote:

I have assumed youv'e entered the day and time using CTRL ; and CTRL + Shift
+ ;

so try
C3 = 02/02/2007 08:00:00
C4 = 05/02/2007 09:26:00

=((C4-C3)*24)-(NETWORKDAYS(C3,C4)*24)

This returns in D4 25.43

"AndyO_UK" wrote:

Sorry Mike.....

C3 is the start date/time of a particular project
C4 is the end date/time of that particular piece of work
D4 calculates the hours it has taken to complete that piece of work - I need
D4 to ALSO ignore the 48 hours in a weekend.

Can you help??? :-)

"Mike" wrote:

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the 48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Calculate time (excluding weekend (48 hrs))

Hi Andy

The #NAME is because Networkdays is part of the Analysis Toolpak.
You need to go ToolsAddinsand click the Analysis Toolpak.

However, as i pointed out in an earlier posting, I don't think this
proposed solution provides the correct answer in all circumstances.

--
Regards

Roger Govier


"AndyO_UK" wrote in message
...
I get value: #NAME? :-( Obviously something is not set right (?)



"Mike" wrote:

I have assumed youv'e entered the day and time using CTRL ; and CTRL
+ Shift
+ ;

so try
C3 = 02/02/2007 08:00:00
C4 = 05/02/2007 09:26:00

=((C4-C3)*24)-(NETWORKDAYS(C3,C4)*24)

This returns in D4 25.43

"AndyO_UK" wrote:

Sorry Mike.....

C3 is the start date/time of a particular project
C4 is the end date/time of that particular piece of work
D4 calculates the hours it has taken to complete that piece of
work - I need
D4 to ALSO ignore the 48 hours in a weekend.

Can you help??? :-)

"Mike" wrote:

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the
48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Calculate time (excluding weekend (48 hrs))

Roger: need some help setting this up.....

I have Data Analysis in the Tools menu and then it gives me a list and from
there I cannot determine which option to select and setup...

I appreciate this may not be the answer but the function will be good enough
for what we want it to do.

Can you please help?

"Roger Govier" wrote:

Hi Andy

The #NAME is because Networkdays is part of the Analysis Toolpak.
You need to go ToolsAddinsand click the Analysis Toolpak.

However, as i pointed out in an earlier posting, I don't think this
proposed solution provides the correct answer in all circumstances.

--
Regards

Roger Govier


"AndyO_UK" wrote in message
...
I get value: #NAME? :-( Obviously something is not set right (?)



"Mike" wrote:

I have assumed youv'e entered the day and time using CTRL ; and CTRL
+ Shift
+ ;

so try
C3 = 02/02/2007 08:00:00
C4 = 05/02/2007 09:26:00

=((C4-C3)*24)-(NETWORKDAYS(C3,C4)*24)

This returns in D4 25.43

"AndyO_UK" wrote:

Sorry Mike.....

C3 is the start date/time of a particular project
C4 is the end date/time of that particular piece of work
D4 calculates the hours it has taken to complete that piece of
work - I need
D4 to ALSO ignore the 48 hours in a weekend.

Can you help??? :-)

"Mike" wrote:

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the
48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Calculate time (excluding weekend (48 hrs))

It is not Data Analysis that you need, it is the Analysis Toolpak.

=NETWORKDAYS(C3+1,D3-1)*24+1-MOD(C3,1)+MOD(D3,1)

--
HTH

Bob Phillips

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"AndyO_UK" wrote in message
...
Roger: need some help setting this up.....

I have Data Analysis in the Tools menu and then it gives me a list and

from
there I cannot determine which option to select and setup...

I appreciate this may not be the answer but the function will be good

enough
for what we want it to do.

Can you please help?

"Roger Govier" wrote:

Hi Andy

The #NAME is because Networkdays is part of the Analysis Toolpak.
You need to go ToolsAddinsand click the Analysis Toolpak.

However, as i pointed out in an earlier posting, I don't think this
proposed solution provides the correct answer in all circumstances.

--
Regards

Roger Govier


"AndyO_UK" wrote in message
...
I get value: #NAME? :-( Obviously something is not set right (?)



"Mike" wrote:

I have assumed youv'e entered the day and time using CTRL ; and CTRL
+ Shift
+ ;

so try
C3 = 02/02/2007 08:00:00
C4 = 05/02/2007 09:26:00

=((C4-C3)*24)-(NETWORKDAYS(C3,C4)*24)

This returns in D4 25.43

"AndyO_UK" wrote:

Sorry Mike.....

C3 is the start date/time of a particular project
C4 is the end date/time of that particular piece of work
D4 calculates the hours it has taken to complete that piece of
work - I need
D4 to ALSO ignore the 48 hours in a weekend.

Can you help??? :-)

"Mike" wrote:

=NETWORKDAYS(C3,C4)*24

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the
48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Calculate time (excluding weekend (48 hrs))

E3 =(NETWORKDAYS(C3,D3)-1+MOD(D3,1)-MOD(C3,1))*24


"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the 48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default Calculate time (excluding weekend (48 hrs))

Hello Andy,

Can C3 or D3 be at the weekend?

"AndyO_UK" wrote:

Need help to calculate the total number of hours excluding the 48 hrs of a
weekend.

Currently my spreadsheet looks like this:

C3 (date/time) start
D3 (date/time) end
E3 number value total hours (=(D3-C3)*24)

Grateful for any help.

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
Create a function to calculate Mean time Before Failure RMC Excel Worksheet Functions 0 November 3rd 06 01:34 AM
Calculate time within time Frigid Excel Worksheet Functions 2 October 25th 06 12:52 AM
How do I calculate time, not time of day? DW-WD Excel Discussion (Misc queries) 3 October 18th 06 04:05 PM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
HOW DO I CALCULATE TIME IN A TIME SHEET FOR EXCEL RAFAEL New Users to Excel 1 June 26th 05 11:32 PM


All times are GMT +1. The time now is 06:57 PM.

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"