Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel date formula

Status
Not open for further replies.

DanWo

Technical User
Aug 19, 2002
32
PL
I would like to calculate :
End Date (B1)
from a Start Date (A1)
+ Duration (C1) in Working days (without WE & holidays)
BUT
if cell D1=1 ,Saterdays are working days too.

WORKDAY function consider only monday to Friday as working days!
How to do it?
 
DanWo,

There's no set way to do this that I know. Here is a way to set up a lookup to give you the results. I have basically taken a listing of dates and removed the Sundays. Then in the next cell I numbered them using auto fill. Different companies observe different holidays so you want to go through and remove the dates your company observes. Then sort column "A". Then number column "B" sequentially. After you can either move or hide those cells. The VLOOKUP will do the rest. Here's a sample

Jim
 
This formula should give you the number of Saturdays between two dates:
[blue]
Code:
  =INT((A2-$A$1)/7)+(WEEKDAY($A$1)>MOD(WEEKDAY(A2),7))
[/color]

It should be a simple matter to incorporate this into your current formula.


 
He wants to include Saturdays. But remove Sundays and Holidays.

Jim

 
jdhilljr: You have a point. I missed that the requirement was to calculate the End date given the Start date and number of workdays. I was attacking it from the perspective of simply calculating workdays between two dates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top