Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Tom
 
Posts: n/a
Default Formula to Remove Weekend Days

I have a spreadsheet that I am trying to subtract the days between dates and
remove the weekend days from the calculation.

example: G2 - F2 = ???
5/23/2006 - 5/17/2006 = 4

TFTH,
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Formula to Remove Weekend Days

Try this:

For
F2: StartDate
G2: EndDate

This formula requires the Analysis ToolPak add-in (ATP):
H2: =NETWORKDAYS(F2,G2)

This formula does not use the ATP:
H2: =SUMPRODUCT(--(WEEKDAY(ROW(INDEX(A:A,F2):INDEX(A:A,G2)),2)<6))

Note: the NETWORKDAYS function accepts a third argument, a list of holidays
which would not be counted as workdays.

btw...unless you don't want to include the start date, there are 5 workdays
between 5/17/2006 and 5/23/2006...In that case, just subtract 1 from the
formula results.



Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Tom" wrote:

I have a spreadsheet that I am trying to subtract the days between dates and
remove the weekend days from the calculation.

example: G2 - F2 = ???
5/23/2006 - 5/17/2006 = 4

TFTH,

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
need help with formula Bryan J Bloom Excel Discussion (Misc queries) 11 October 31st 05 10:52 PM
Please help!! Vacation Accrual Formula MissNadine Excel Worksheet Functions 1 August 19th 05 02:32 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Macro or Formula to remove Text from Cells smck Excel Worksheet Functions 6 May 11th 05 03:22 AM


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