Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default WEEKENDS VS. WEEKDAYS

This is rather complicated, so I'll do my best to explain the problem I am
having. I previously asked this question:

I have created a spreadsheet that calculates process times. If a product is
held overnight, then excel subtracts 15 hours from the total to account for
15 hours that are non-working hours, if a product is held over a weekend,
then excel subtracts 62 hours of non-working time (24x2 for Sat. & Sun. +15
for Fri. night). The problem I am running into is that if a product is held
for 1 or 2 days and those days are NOT weekends, then I only want it to
subtract the 15 hours for however many days.

I received the following answer:

=(NETWORKDAYS(D2,F2)-1)/2.67+G2-E2)
This will calculate the working hours between your in and out times,
based on a 9 hour day, assuming that in and out times are always
within working hours. It will take weekends into account and can also
be amended to cope with holidays if you want to do that.

The problem I am having now is that the in and out times are NOT always
within working hours, but I still only want to count the working hours. I
don't understand what function -1 has in the formula above either.


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
WEEKENDS VS. WEEKDAYS TLAngelo Excel Discussion (Misc queries) 7 May 12th 06 05:31 PM
IF statement with Weekends vs. weekdays edwardpestian Excel Worksheet Functions 4 May 7th 06 09:13 PM
Weekdays only on X axis NNester Charts and Charting in Excel 3 April 25th 05 04:53 PM
Recognizing weekends and changing to weekdays in Excel hanauer Excel Discussion (Misc queries) 2 January 8th 05 02:13 AM
Date exclude weekdays LukePW New Users to Excel 9 December 20th 04 05:00 PM


All times are GMT +1. The time now is 11:49 AM.

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

About Us

"It's about Microsoft Excel"