# How To Calculate Leadtime Excluding Sunday

May 30, 2009

I have a start date in cell A1(5/15/2009) and a end date in cell B1(5/25/2009).

I would like to calculate the leadtime between the 2 dates in cell C1 excluding the Sundays in between.

I have out a formula(in cell c1) as B1-A1 but it is yielding 14 days whereas it should be12 days excluding Sundays.

## Count Days Excluding Only Sunday?

Jun 5, 2014

how to count days excluding only sundays in a calender period.

"weekdays" excludes both saturdays and sundays.

## How To Calculate Sunday As Weekend In A Code

Nov 6, 2013

How to calculate weekend (ONLY SUNDAY) in VBA.

## Calculate Value Excluding Text

Feb 11, 2014

On the attached spreadh sheet I have production costs that I wish to calculate. There are certain courses that are a constant each month and they are input via a data validation list, however there will be courses that are run that are not on this list.

on the cell with 'Other' I want to total the costs for the courses that exclude the normal monthly courses.

Ive managed to use the formula below to exclude certain text but I cannot do it for multiple keywords, or maybe there is a simpler formula.
=SUMPRODUCT(--(G4:G31>0),L4:L31,--ISNUMBER(FIND("Suicide",G4:G31)))

## Calculate The Dates Between Two Days (excluding The Weekends)

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.

## Calculate Number Of Days Excluding Holidays

Oct 7, 2011

I need to calculate the number of days between 2 dates including holidays and weekends. That means I cant use NETWORKDAYS as it excludes weekend.

## Calculate Difference Between Dates Excluding Weekends

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.

## Calculate Future Date Excluding Weekends

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"
Case "CB2W"
Case "CB3W"
Case "CB4W"
Case "CB5W"
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.

## Calculate Day Difference Between Dates Excluding Certain Days

Feb 2, 2008

I am attempting to get the formula in Column "E" (see attached excel file) to work based off the individual reps 'days off / holidays' (Columns K:P (or more as needed) that they might have. the formula I am using (which works fine) is:

=IF(C2=D2,0, SUMPRODUCT((WEEKDAY(ROW(INDIRECT(C2&":"&D2)),2)={2,3,4,5,6,7})*(COUNTIF(\$K\$2:\$S\$2,ROW(INDIRECT(C2&":"&D2)))=0)))

My issue comes up when I am coping this formula for say 100+ rows. When I copy the formula to all of the rows, the (COUNTIF(\$K\$2:\$S\$2) becomes static and does not realize that the row (ie. Row 26 Rep C) has different days off than Rep A. I can manually change the reference for the countif to specify the correct row to their own days but that becomes tedious very quickly. I was wondering if anyone has come across a way to make the countif work based off of that the name in Column B matches the name in Column G then looks 'to the right' and uses the 'days off' that are listed for the corresponding Rep. I have tried a few different ideas but nothing has worked so far.

## Calculate Number Of Hours Between 2 Cells Excluding Weekends

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?

## Calculate Only Working Hours Between Two Dates Excluding Weekends

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.

## Calculate Business Hour Downtime Excluding Weekends

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.

## Leadtime :: Make A Substract From A Today Formula

Dec 9, 2009

i got the data in this format and need to get it as date in order to make a substract from a today formula minus that date in that format, if it helps this is data imported from a website.

## Calculate Date Of The Sunday Before A Date

May 13, 2014

I have a date and need to formula to tell me the date of the Sunday that occurs before it.

For example I want to it tell me that the Sunday before 13/05/2014 is 11/05/2014.

## Convert Sunday 8 January To Sunday 9 January Using Formula

Nov 17, 2012

I am trying to update a spreadsheet for 2012 to 2013 and want to use a formula to change SUNDAY 8 January to Sunday 9 January and so on for rest of year.

## Calculate End Date Using Start Date And Number Of Days Excluding Specific Days

Nov 22, 2013

I want to calculate the end date of my German courses. This is how it works:

A course consists of 60 LU*. The course can occur i. e. three times a week: Monday, Wednesday and Friday. In each day the course lasts 2 LU, which means 6 LU each week. There is no course on Tuesday, Thursday, Saturday, Sunday and on holidays. Therefore this type of course that begins on 18-Nov-2013 will end on 03-Feb-2014.

Another course which occurs Tuesday, Thursday and Saturday, and respectively has 2 LU on Tuesday, 2 LU on Thursday and 3 LU on Saturday and starts on 03-Dec-2013 will end on 06-Feb-2014.

Therefore I want to create a worksheet where I set the start date, choose the days and respectively the LU amount on those days. The end date shall be calculated according to these criteria.

The workday function on excel cannot do this and I do not have any programming skills to work with VBA.

Legend:
*LU = lesson units; 1 LU is 45 minutes

Holidays:
28-Nov-13
29-Nov-13
08-Dec-13
09-Dec-13
25-Dec-13
31-Dec-13
01-Jan-14

[Code] ...........

## Last Sunday Of The Year

Jan 12, 2010

I am given the year (say 2009) in Cell A1.

The requirement is to put the date of last sunday of the year (2009) in cell A2. how to do this?

## Auto Hilighting Day & Date For Sunday

Feb 11, 2010

Auto Hilighting Day & Date For Sunday. i tried but no use.

## Always Making The Date The Previous Sunday

Dec 14, 2007

Is there a way to make the date in a cell check the current date then fall back to the previous sunday unless today actually happens to be sunday? So for example it would look at today and make the date 12/9/2007 rather than 12/14/2007

## Validation- If Date Input Is A Sunday

Jan 24, 2009

I would like to use Validation to verify that the date entered in cell "B3" is a Sunday. Or do I have to go at this some other way?

## Date Automatically Changes If Saturday Or Sunday?

Aug 17, 2012

I have an excel sheet that uses date formulas in order to provide data regarding the date that it brings up. My problem is that the formulas do not bring up dates unless the dates are on a weekday. Ex. I would like to look back 3 months in the past, and I do so using the formula =today()-90 (90 for 90 days, about 3 months). I would then like to input this date formula into another function (potentially an if function) so that if today-90 is a saturday or a sunday, the function will automatically bring up the date for the friday preceding it.

## Add Weekly Values From Monday To Sunday?

Jul 30, 2014

The required results from the below data are:

Required Result
Week 25 = Batches 25
Week 26 = Batches 40

Data

Data - Day

No. of Batches

16/06/14 Mon

5

17/06/14 Tue

6

18/06/14 Wed

9

[Code] ..........

## Conditional Format If Saturday Or Sunday

Oct 17, 2007

I am trying to format a row (B) if B8 = Saturday or Sunday.
The value in B8 is derived from a formula.
I have tried the following but it only works if cell is typed manually.

Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo stoppit
Application.EnableEvents = False
With Me.Range("B8")
If .Value = "Saturday" Or .Value = "Sunday" Then
Me.Range("B8:J8").Font.ColorIndex = 2
End If
End With
stoppit:
Application.EnableEvents = True
End
End Sub

I also want to change format back if cell changes to M-F.

Excel 97

## Count Number Of Days Except Sunday

Jan 6, 2009

In B13 I have the start date: 12/1/2008
In C13 I have the end date: 1/5/2009
In cell D13 I want a formula that counts the number of days between the two dates that are not Sunday. The start and end dates are included in the count.

I have created this formula using Ctrl + Shift + Enter:

{=SUM(IF(WEEKDAY(ROW(INDIRECT(B13&":"&C13)),2)7,1,0))}

I have also created this formula using Ctrl + Shift + Enter:

{=SUM(IF(TEXT(ROW(INDIRECT(B13&":"&C13)),"ddd")"Sun",1,0))}

They both seem to work. I get a result of 31.

Is there a formula that is better than this, more efficient than this, or "less expensive"?

## How To Get Only (Sunday) Highlighted In A Series Of Dates In Columns

May 19, 2014

How to get "only Sunday" highlighted in a series of dates included in excel columns. I tried some formulas found from the web pages, but they all deal with both "Saturday and Sunday"...

## How To Exclude Saturday And Sunday In Date Calculation

Oct 5, 2013

I have three columns named "name","start_date" and "end_date"

ex:

Name start_date end_date
AB 9/11/13 10:19 AM ??
CD 9/12/13 11:45 AM ??

All i need to find is,

If Name = AB, i want put start_date+3 days in the end_date column,
similarly for name = CD , start_date+7 days.

But the calculation should exculde weekends(sat and sun).

ex: For AB, start_date = 10/3/13 (3rd oct , thrusday), end_date should be start_date+3 ,so end_date = 10/6/13 but 6th october is sunday so the formula should give end_date as 10/7/13.

## Formula To Exclude Weekends (Saturday And Sunday)

Aug 4, 2014

I have below formula which gives me the due status.

[Code] ......

How can I modify the code so it excludes Saturday and Sunday.

## Day And Date Hilighted Automatically For Sunday In Red Column

Feb 10, 2010

How to creat list box and how the day and date hilighted automatically for sunday in red col and saturday and sunday colum should hilight.

## Dynamic Weekly Graph To Run From Monday To Sunday?

Oct 3, 2011

Is there a way to create a dynamic chart to automatically run from the most recent Monday to Sunday. So on Monday the entire chart will reset?

## Graphs - Highlighting Weekends (Saturday And Sunday)

Oct 25, 2013

I'm wondering if there is a way to highlight Saturday and Sunday on my graph: [URL] ......

Here, I have it done with a shape formatted with the transparent light red fill.