Calculate End Dates Allowing For Weekends
Feb 9, 2009
If I have the start date (say February 01, 2009) and the job will take 100 working days, when will it finish if there is no work done over weekends? I assume you can use networkdays somehow but the final logic escapes me
View 2 Replies
ADVERTISEMENT
Apr 29, 2006
I am looking for formula to calculate the dates between two days (excluding the weekends)
I am working in Saudi Arabia and the weekend days over here are thursday and Friday.
View 9 Replies
View Related
Jun 8, 2008
I wanted to calculate the difference between dates, excluding the weekends. After much thought i used =NETWORKDAYS(A1,B1)+IF(NETWORKDAYS(A1,A1)+ NETWORKDAYS(B1,B1)=2,-SIGN(NETWORKDAYS(A1,B1)),0) that seemed to be working fine. However, I had a problem today with this formula when my start day was saturday (24/05/08) and the last day was monday (26/05/08). What i want is that when i take the difference between these two days, i should get zero as answer as we are not including the weekends in calculation so the start date should ideally be the first weekday which is Monday. However, the formula is giving me 1 as an answer.
This formula works fine if i select 27/05/08 as last date in which case i get 2 as an answer which is right. In gist, what i am looking for is a formula which will give me the difference between two dates and exclude the weekends from the calculation. The last date can't be a weekend, but the start date can. Hence, whenever the start date is a weekend, the formula should take monday as a start day.
View 9 Replies
View Related
Oct 30, 2009
How should I calculate working hours between two dates? Say if start at 9/25/2009 7:26:13 PM and finish at 10/20/2009 9:46:13 AM, the function should return 245:20:00 because the working hours are from 8am to 11 PM (8 - 23), and there are weekends between the dates. Preferably the function should work like the NETWORKDAYS() function, but it should also include the time, not just the dates.
View 9 Replies
View Related
Jan 18, 2009
When you have 0 divided by 0 if there a way to show 0 instead of the div/o error message. The reason I want to know if that I have a spreadsheet for peoples efficiency during the week which feeds into another sheet to provide a monthly/yearly totals and who is the best and worst, but if there on holiday for a week or two the feed does not work as the error message does not allow the other sheet to calculate.
View 7 Replies
View Related
May 3, 2013
In a sheet, like the example, I have monthly shift schedules for employees. What I want is to count the total shifts for Saturday and Sunday, separately Night (N) and Morning (M)/Afternoon (A) shifts, as in columns with red.
ABCDEMNOPQRAGAHAIAJ1JUNE 20132DATE1234121314151617....
HOW MANY "N" HOW MANY "M" AND "A"3SATSUNMONTUEWEDTHUFRISATSUNMON....
AT SAT-SUNAT SAT-SUN4Employee1NNNNNMM--A205Employee2MMMM-NNNNN246
Employee3AAAAM--MMM067Employee4--MM-AANNM408............................................9EXAMPLE
View 6 Replies
View Related
Nov 11, 2009
to calculate how long a ticket is open in our system before being resolved. I don't want to count weekends, and if the ticket is 'suspended', I don't want to count that either. There is also the factor that the ticket 'un-suspend' date may be later than the ticket 'closed' date. Which is the bit that's throwing me.
So, I have the following fields
Ticket Open, Ticket Closed, Ticket Suspended Date, Ticket Unsuspended Date
A sample ticket might be (using above fields)
02/11/09 09/11/09 04/11/09 30/11/09
That 'should' equal two days (16 hours) as the Unsuspend date falls after the close date so it was suspended from the 4th until closure.
Now I want to know, in hours (8 hour day) how long that ticket took to resolve (i.e close), remembering you can't count the time it was suspended, or any time that fell over a weekend. Also not all tickets are suspended.
View 13 Replies
View Related
Aug 25, 2007
I am using the same structure to update another column, under the same sub:
If Target.Column = 5 Then '
Select Case Range("d69").Value
Case "CB1W"
ActiveCell.Value = DateAdd("ww", 1, Now())
Case "CB2W"
ActiveCell.Value = DateAdd("ww", 2, Now())
Case "CB3W"
ActiveCell.Value = DateAdd("d", 21, Now())
Case "CB4W"
ActiveCell.Value = DateAdd("d", 28, Now())
Case "CB5W"
ActiveCell.Value = DateAdd("d", 35, Now())
Case "NI"
ActiveCell.Value = ""
Case Else
ActiveCell.Value = ""
End Select
I would like to apply the code to the whole column but if I change Select Case Range("d69").Value to Select Case Range("d2:1000").Value I get a Type Mismatch Error (13) - (on Case "CB1W" ) - column d cells are data validation drop down boxes that get their value form a named ranged :Lead_Status. The column is also formatted as Text. (I applied the code to d69 because I have data already in the other cells which I don't want altered till I have the code working)
I would also greatly appreciate your advice on how to incorporate the WEEKDAY function to exclude weekends for the DateAdd function.
View 9 Replies
View Related
Dec 27, 2007
I want to calculate a date that is 28 days in the future. I don't want to exclude any days - However - if the end date falls on a weekend or holiday, I would like to push it out to the next business day.
I currently have the weekends covered, but am stumped on the holidays.
(For weekends, I am using the WEEKDAY function on a hidden sheet, and then the following 3 IF statements:
IF today + 28 = Mon.-Fri., then give me today + 28.
IF today + 28 = Sat., then give me today + 30.
IF today + 28=Sun., then give me today + 29.
I have tried adding an additional IF statement to address a specific holiday - namely, President's Day on 2/18/08, which is a Monday - but it won't add the extra day, because I think my initial IF statement re: Monday being today + 28 is overriding it.
View 9 Replies
View Related
Apr 20, 2009
I attached an excel file for an example. Basically I am calculating on time shipping, but I want don't want Saturday and Sunday to coun't against us.I need G5 to equal 3 days. Right now when I subtract E2 from F2 I get 5 days. But we only work M-F, and Saturday and Sunday shouldn't count against us. How would I subract the days automattically, so it takes out Saturday and Sunday?
View 10 Replies
View Related
Oct 2, 2006
Is it possible to make a macro that creates a Pop-up box that asks for date ranges and generates copies of the first worksheet in the workbook labelled as dates? There are ALWAYS 6 half terms to a school year so a 6x2 pop up box / table that is formatted in the following way will allow the appropriate date ranges to be inputted (saturdays and sundays must be excluded from this range):
Title of input box: Input School Half Term Date Ranges
******** Start Date ** End Date **
Autumn 1 03.09.06 18.09.06
Autumn 2
Spring 1
Spring 2
Summer 1
Summer 2
The macro would then create a series of sheets from 03.09.06 to 18.10.06 as well as the other 5 date ranges (excluding weekends) using the first sheet as a template. Would the user have to also input the start day for each half term or would excel 'know that 04.09.06.06 is a Monday and 18.10.06 is a Wednesday?
If the macro could create worksheets for these date ranges and clone the first worksheet in the workbook then that would save me LOADS of time copying and pasting each year.
View 9 Replies
View Related
May 22, 2008
how to find the number of days between 2 Dates excluding weekends and holidays using vba. I m using excel 2003. All I know is to figure out todays date using the keyword 'Date'.
Also, this is my second post and I have tried to comply with the rules regarding the title, but if it is still inappropriate and does not meet 'stating the problem' criteria,
View 3 Replies
View Related
Jun 2, 2014
I have a worksheet where I capture the date and time of each new entry in column A.
In the next column, it's counting up the number of hours since that entry was made. However, it's including Saturdays and Sundays in this count and I was wondering if there's a formula to calculate the number of hours excluding Saturdays and Sundays? I know that network days would count the number of working days from one date to the next, but really need hours. Is this possible?
View 3 Replies
View Related
Feb 15, 2008
I am trying to calculate downtime for a Service Level Agreement.
The data that I have is the start date/time and the resolved date/time for an incident.
The data are in the format - 1/1/2008 03:32 AM. The incidents may occur at any time but downtime is calculated only business hours and excludes weekends. I may be required to exclude holidays but that is not a hard requirement right now. What I must be able to specify are the working hours.
As example(s)
- if an incident is generated on 1/2/2008 4:00 PM and resolved at 1/3/2008 11:00 AM then the downtime is 4 hours.
- if an incident is generated on 1/12/2008 4:00 PM (which is a Sat) and resolved at 1/14/2008 11:00 AM (which is Monday) then the downtime is 3 hours.
The above assumes working hours are 8:00 AM through 5:00 PM.
I have tried using the NETWORKDAYS and WORKDAY functions with little success.
View 9 Replies
View Related
Feb 26, 2014
Is there a way to autofill dates in excel to exclude weekends and bank holidays?
View 6 Replies
View Related
Dec 5, 2013
I am trying to run a macro to put in the Month, Day, Year on each tab but I want it to exclude holidays and weekends. I am not a techie or anything but I would like to know how to do this. I have tried various vb codes but they don't exclude the weekends/holidays.
View 3 Replies
View Related
Feb 13, 2008
I have a spread sheet that is used to show the dates for the days in the week that my students are in class. I want it to be able to take the date from a cell that has the class start date and then show what the date will be for day 1, day 2, day 3, etc... I am not a beginner with excel but i can't figure out how to get it to skip calendar weekends.
View 9 Replies
View Related
Feb 28, 2008
I am trying to compile a count of dates using a numerical reference which adds x consecutive dates onto the initial start date based on the number in a cell.The dates added cannot fall on a weekend.
The start date for each calculation begins in D4 with the corresponding number of days to add onto this date in K4. In the example below 8/11/2007 -- 2 means that the 8th and 9th of Nov get one added to their count. As the next row also has 9th Nov as a start date one more is added to 9th Nov. As the 10th and 11th were a weekend they are skipped and the count starts again from the next Monday. I have enclosed a simplified worksheet with some sample data.
Example:
D4 --------- K4
8/11/2007 -- 2
9/11/2007 -- 3
Expected output:
AE4---------AF4
8/11/2007 -- 1
9/11/2007 -- 2
12/11/2007 --1
13/11/2007 --1
View 5 Replies
View Related
Mar 16, 2009
I would like to find out if a job took more than 24 hour cycle time (eg. 6:00 am to 5:59:59 AM next day). data:
A1 = received date & time (format "m/d/yyyy h:mm")
B1 = completed date & time (format "m/d/yyyy h:mm")
my formula is '=if(B1-A1>"24:00"+0,"Yes","No"). The problem with the formula is that it doesnt exclude weekends nor public holidays. I couldnt formulate a solution using networkdays function......
View 3 Replies
View Related
Aug 6, 2012
I want to create a formula that works out the number of days between two dates but excludes weekends?
View 3 Replies
View Related
Jul 11, 2006
I am creating a problem report spreadsheet for work. In col C I have a date/time that the problem started, eg, 23-Jun-2006 15:20 and in col D I have a date/time for when the problem was resolved, eg, 26-Jun-2006 15:40. I need to calculate the amount of hours that we were not available for use (due to the problem). This is based on a list of available hours. Eg, on Mondays we are available 19.5 hrs, T-F 22.5 hrs, Sa 14.5 hrs, and Sun 0 hrs.
If I do a straight subtraction, it uses 24 hrs for each day - not taking into account our available hrs. If I do NETWORKDAYS it automatically doesn't consider Sat or Sun - and i need it to - and it does have a DayEnd and DayStart but it assumes they are constants. I found the day corresponding to the date and thought I could determine the series of days between it, e.g., if the start day was Friday & the end day Monday, the series in between is Sat & Sun. Then I could do a lookup on all 4 days in a table & add them all together. But I can't figure out how to do this!
View 4 Replies
View Related
Aug 11, 2014
Is there a way to calculate an age based on Date of birth and current date?
View 3 Replies
View Related
Jan 13, 2009
I can calculate the networkdays between two dates but how do I project a finishing date if I know the starting date, the holidays, and the duration of the task in working days? (Sample sheet attached, working in Excel 2003).
View 2 Replies
View Related
Jul 27, 2009
I need to calculate the amount of time between two dates, and show it in the number of hours and minutes. My dates are formatted to show the time in Zulu time. So 1406 = 2:06PM.
Here is what I have:
A1 = 6/4/08 1406Z
B1 = 6/5/08 0402Z
For this example, the formula should return a result of 13 hours and 58 minutes. With the result, there is no need to desingate Zulu time with a 'Z'. But I need the result in a format that will allow me to calculate an average for all my data.
View 9 Replies
View Related
Jan 1, 2010
I would like to calculate the total hours between two dates using a unique formula and without inserting new columns. I have attached an example of the data I'm working with.
View 4 Replies
View Related
Jan 7, 2010
In my excel I want to use a calender date such as 05/21/09 and automatically add or subtract a specific number of days. For example: 10 days before 05/21/09....
I dont want to have to count back 10 days and manually enter it. Is there a way to have excel calculate and give me the date in my spreadsheet? i.e. automatically calculate (05/12/09)-(10 days)= 5/11/09. its not too hard when its 10 days, but when its -97 days, it can be very annoying.
View 5 Replies
View Related
Mar 28, 2012
I have 2 columsn with data that looks like this:
Creation DateResolved DateDifference in days7/1/2011 4:221/9/2012 14:587/1/2011 8:567/1/2011 13:517/1/2011 11:438/3/2011 17:157/1/2011 11:597/14/2011 14:077/3/2011 22:477/5/2011 11:037/4/2011 1:399/15/2011 15:207/4/2011 8:367/5/2011 9:357/5/2011 7:047/6/2011 9:107/5/2011 9:177/6/2011 10:007/5/2011 10:471/9/2012 14:37
I am trying to figure out what formula to use to calculate the difference between the creation date and resolved date in hours and days. That is, In once column I would like to see the difference in 'hours' and in another column I would like to see the difference in 'days'.
View 3 Replies
View Related
Oct 18, 2013
Calculate dates as The Number Of Days, Months Or Years Between Two Dates
The two formulas I tried below show the wrong output when trying to figure the days between 12/8/2011 to 1/2/2012. It should show 0 years, 0 months, 24 days, not 138 days.
I did notice when the day of the month on the start date is before the day of the month of the end date, the formula seems to work. Ref. the second dates on the first example.
Example 1
Start End
12/8/2011 1/2/2012 = 0 years, 0 months, 138 days
Wrong display. should show 0 years, 0 months, 24 days
Start End
12/1/2011 1/2/2012 = 0 years, 1 months, 1 days
Note that when the start date "day", (1), is before the end date "day", (2) the formula seems to work.
First formula used above:
=DATEDIF(B3,C3-(MOD(B3,1)>MOD(C3,1)),"y")&" years, "&DATEDIF(B3,C3-(MOD(B3,1)>MOD(C3,1)),"ym")&" months, "&DATEDIF(B3,C3-(MOD(B3,1)>MOD(C3,1)),"md")&" days"
Example 2
Start End
12/8/2011 1/2/2012 = 0 years, 0 months, 138 days
Should show 0 years, 0 months, 24 days
Second formula tried above:
=DATEDIF(B10,C10,"y") & " years, " & DATEDIF(B10,C10,"ym") & " months, " & DATEDIF(B10,C10,"md") & " days"
View 2 Replies
View Related
May 19, 2008
I seem to have the worst luck when it comes to getting dates and times to calculate together. My logic just seems to go straight out the window.
What I am trying to do, the end result, is get a Time Worked (duration) that I have spent on a ticket, and a Total Time, the time a ticket was opened, to the time it was closed.
I guess we can try to do this one step at a time.
The first thing that I would like to know is if there is a way to calculate Date/Time in a MM/DD/YYYY, H:MM format?
IE:
Ticket Opened ...................Ticket Closed
5/16/2008 2:54 PM..............5/19/2008 10:47 AM
Total Time in Days / Hours / Minutes
Right now I have the Date and Time split into separate cells, simply because I couldnt figure out a way to subtract the combined date and time.
View 10 Replies
View Related
Sep 11, 2008
This is more of a query on date dif
I was trying to calculate the difference between two dates on excel
I had a look through the search message board and searched the web generally where I came across the datedif function
I had found that in order to get the number of years it was
=datedif(startdate,enddate,"Y")
for months same formula"YM" and for days use "MD" in place of "Y" in the original formula
My question is when using datedif to calculate the number of days between two days it initialy gave me the right answer
Number of days between 01/08/2008 - 22/08/2008 - Answer 21 days
Using date dif gave me 21 days but when i did
01/08/2008 - 01/09/2008 - this gave me 0
Am I entering the formula wrong or does datedif simply not pick the difference if the days havent changed even though the month has ?
I then found i could simply minus one from the other , which then had me asking what is the point of date dif
View 9 Replies
View Related