# Count Working Days Between 2 Dates, But Return A Zero If The 2 Dates Are The Same Day

Jan 15, 2009

Today I am having a very annoying problem that really has me stumped – I need to work out the lag between a Due Date and Delivered Date

But as people sometimes manage to deliver on the Due Date it needs to show a zero (as in they got it in on time) but using the formula below the result is a 1 and I want a zero

Can anyone help me please? I have tried putting assorted -1s in to the formula and it looks like it might work until I copy down and find that if a person delivered one day early the result shows -3 for example!

## Number Of Working Days Between 2 Dates

Oct 10, 2007

I'm currently working on a file that has employee holidays/sickness etc. What I want to do is be able to see is a DATE FROM and DATE TO and next to it the total amount of working days between and including those dates. On top of the since employee's sometimes like to take half days I need it so that it can determine half days as well.

So for example I have an employee going to be off work from 29/10/2007 until 09/11/2007 12pm which is 10.5 days in total, but that includes weekends when I don't want it to.

Also it comes out as 11 days at the moment because I can't figure out how to get it to determine is it is half a day.

What formula should I use or if someone could create an example that would be really usefull :D

## Number Of Working Days Between Dates

Apr 18, 2007

I need to work out the number of working days between 2 dates, where the working week is Monday to Thursday, ignoring all bank holidays etc.

## Days Between Two Dates Separated Into Days Per Month For Multiple Dates - Excel

Feb 13, 2013

I wanted to determine the number of days between two dates. Specifically, if the initial date is in one month, and the second is in a different month and an output would result a number of days in each month until the final date. BUT I have a large amount of data to do this for in a list view, way to put a formula in excel and just drag down the entire list to get the required information. see below for an example.

The result I'm looking for is the separate the months and only show the relevant months between the two dates in one cell or the adjacent. Something similar to the table outlined below.

Input Data
Result
Start Date

[Code]....

## Pull Forward The Dates By 3 Or 5 Working Days

Apr 15, 2009

I have a spreadsheet stating a date that my company will deliver a product by but due to a set of certain circumstances we need to pull forward the dates by 3 or 5 working days. Basically it needs to show the dates below but minus 3 days unless this includes non-working days (i.e. weekends)

01/01/10
02/01/10
03/01/10
04/01/10
05/01/10
06/01/10
07/01/10
08/01/10
09/01/10
10/01/10

## Formula For Working Out Number Of Days Between Dates Excluding Weekends?

Aug 6, 2012

I want to create a formula that works out the number of days between two dates but excludes weekends?

## Count Days Between Two Dates

Apr 13, 2007

vba excel?

I wish to calculate the days between the starting date (column A) and ending date (column B). For the first 7 days are excluding all the holiday and weekend and the rest of it until the ending date are counted.

## Count Dates Within Last X Days

Sep 6, 2007

I am trying to count the number of dates in a column that are within the last 180 days. I tried using COUNTIF and it did not work. Formula which I thought should work: =COUNTIF(A3:A32,>(A40)). My workaround is shown in Column B, but this method adds one column for each participant.

## Count Number Of Days Between 2 Dates

Mar 17, 2009

I have a question, does anyone now how to count between dates, for exemple :

01-02-2009
15-02-2009
22-02-2009
25-02-2009
03-03-2009
11-03-2009

And i wont only to count between 01-02-2009 / 28-02-2009, the result it will be 4.

## Count Number Of Days Between Two Dates

Mar 28, 2014

Need a formula (E1) to determine the number of days that have passed between two given dates (C1 & D1) ONLY when the Status of a given report (B1) is "Late"

B1 = Status (Pending; On Hold; Late; Completed) (i.e "LATE")
C1 = Status Date (i.e. 28 Mar 14)
D1 = Deadline (date) (i.e. 25 Mar 14)
E1 = Total Days Late (= ?)

Note: I'm using Office for Mac 2011

## In Dates Count The Number Of Days

Jan 5, 2007

I have a range of dates. i would like to count the number of days that are earlier than the date =TODAY().

Do i use the COUNTIF function?

## Count The Actual Number Of Days Between 2 Dates?

Jan 23, 2014

I need to count the actual number of days between 2 dates but excluding Sunday...

For example,

Start Date-----End Date-------# of Days
01/Jan/14-----23/Jan/14-------20 days (excluding Sunday)

In some cases, Holiday also to be removed i.e. 01-Jan-2014 is holiday, then the # of days should be 19 days.

If I use Networkdays formula, then system results excluding both Saturday and Sunday. But I want to remove only Sunday.

## Count Number Of Dates Older Than 30 Days

Nov 12, 2008

I need to figure out how to tell Excel to count the number of invoices on a worksheet older than 30 days and display that number in my Summary worksheet. Here's a quick example:

Worksheet '1234' has 10 invoices, 6 of which are more than 30 days old (invoice dates are in column B). Worksheet 'Summary' needs to display the total number of invoices and the number older than 30 days.

## Count Days In Specific Year Between Two Dates

Jan 22, 2008

I want to be able to count the number of days in a specific year between two dates.

Suggested formula input: DaysInYear(Date1,Date2,Year)

Examples:

DaysInYear(3/3/2005,3/3/2006,2006) should return 62 (31 in Jan, 28 in Feb and 3 in Mar.)

DaysInYear(3/3/2005,3/3/2007,2006) should return 365

## Formula To Return Average Days Between Two Dates In A Given Month?

Jan 13, 2014

I have a workbook with two sheets. The first has a list of job positions open, columns designated to stages in the employment process and in these columns, my staff enter the dates that they completed a particular stage.

"Position | Date Opened | Stage 1 | Stage 2 | Stage 3 | Stage 4"
Pos 1 | 01/01/2014 |02/01/14|03/01/14|07/01/14|09/01/14

This has a great number of entries and they are increasing and decreasing every day depening on the amount of jobs available.

On the second sheet, I am trying to set up a table which shows the average working days it is taking to complete each stage, divided into the months in which the job position was opened (i.e. for positions opened in january, the average completion working days for stage 1 was X amount of days etc...)

I have tried using =IF(AND(Logical, Logical),TRUE,FALSE) but this doesn't return any info as the logicals will always be false. I tried the OR function, but that requires only one of the criteria to be true to return a value. What I need is for the formula to return a number of days between two dates, ONLY if the opened date falls in one month.

## Pick Range Of Dates And Find Number Of Days Without Sales Between Those Dates

Feb 23, 2014

Here is my set up:

A2 to BF2 is a range of dates

A3 to BF3 are sales. Days without sales are 0.00

I want to pick a range of dates and find the number of days without sales between those dates. So, a formula that will look to a start date in A1 and an end date in B2, and then count the number of days that did not have sales between. Index/Match/Countif/Dateif I can't seem to make anything work.

## Count Days Between Dates For A Part-time Worker?

Apr 26, 2011

I work only on Wednesdays and Thursdays. I'd like to calculate the number of my working days between two dates.

NETWORKDAYS seems like the right place to start, but I can't think of how to tell it to ignore Mondays, Tuesdays and Fridays as well as the weekend days.

## Date Formula- To Count The Number Of Days Between 2 Dates

Aug 4, 2008

I have been using a formula to count the number of days between 2 dates and if the date was older than 12 months it would work fine.

The data that i was using has been changed and they have decided to change the format of the dates and dropped the year reference no all i have to work with is dates like 27-07 this represents 27th July i can format this date to work fine unless the date falls before 1 jan this year all i get is lots of numbers and it stuffs up the whole calculation.

The formula i am using to compare the dates is

=DATEDIF(N31,\$D\$1,"d")

## Add X Days To Dates, For Criteria Count, But Skip Weekends

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

## Difference Between Dates And Times In Days , Hours Mins ( Working Hours )

Mar 2, 2010

The below formulae allows me to see the difference between two dates and only returns the difference in working hours ie :
Difference between
02/02/2010 08:00 & 03/02/2010 08:00 is 16 Hours 0 Minutes

=(INT(A3)-INT(C6))+MAX(MOD(A3,1)-MAX(MOD(C6,1)))

The following displays it in the Hrs and Mins format

=TEXT(B15,"[h]")&" Hour"&IF(OR(TEXT(B15,"[h]")+0=0,TEXT(B15,"[h]")+0>1),"s "," ")&MINUTE(B15)&" Minute"&IF(MINUTE(B15)1,"s ",""))

## Convert List Of Dates To Count No. Of Dates By Week

Jan 27, 2006

Basically I have 2 columns each with a list of dates in no particular order (and containing blank cells too), one planned date column and one actual date column.

What I need to do is plot this on a graph, and since the number of dates has no set limit and I dont want to have to plot maybe 100 dates on the x axis, so i want to group them by week before plotting them, i.e. 10 dates for week ending 10th jan, 25 dates for week ending 17th jan etc

I have a pivot table that counts how many of each date occurs, i.e. 10 x 2nd jan, 7x 3rd jan etc etc but it does not split them into weeks.

im sure theres an easyish way of doing it so i can get the 2 lines on the graph for no. of planned dates each week and no. of actual dates each week, i just cant see it.

## Counting Dates In A Range :: Count Weekend Dates

Feb 4, 2010

In Cells B2:B100, i have dates that which have been entered using a combo box (the dates type is for e.g. 14th March 2010 format)

I want a formula that will count the cells that have dates between 1st April 2010 to 30th June 2010 in cells B2:B100

Also, I would like a formula that counts weekend dates between 1st April 2010 to 30th June 2010?

## Count Unique Dates In A Column That Are Between Two Dates?

Dec 18, 2012

I have a sheet named "XYZ Activity" with meeting dates in column B starting with cell B4. There are duplicates in this list, that should only be viewed as one meeting. On another sheet, each company that attends the meeting has a specific join date found in Column C (C4 is the first company start date). I am trying to figure out an equation that will count how many meetings the company could have attended. I already calculate the total meetings they have attended using either of the following equations:

=COUNT(1/FREQUENCY(IF('XYZ Activity'!\$C\$4:\$C\$4000=A3,IF('XYZ Activity'!\$B\$4:\$B\$4000<>"",'XYZ Activity'!\$B\$4:\$B\$4000)),IF('XYZ Activity'!\$C\$4:\$C\$4000=A3,IF('XYZ Activity'!\$B\$4:\$B\$4000<>"",'XYZ Activity'!\$B\$4:\$B\$4000))))

=SUM(IF(FREQUENCY(IF('XYZ Activity'!C\$4:C\$5000=A4,IF('XYZ Activity'!G\$4:G\$5000="Yes",MATCH('XYZ Activity'!B\$4:B\$5000,'XYZ Activity'!B\$4:B\$5000,0))),ROW('XYZ Activity'!B\$4:B\$5000)-ROW('XYZ Activity'!B\$4)+1),1))

## Count Dates & String Dates After Given Date

May 14, 2008

The attached workbook has dates in column C, although some of these dates are just strings.

I'm trying to write some vba that will tell me how many of the cells in column C contain a date (or looks like a date) that is greater than (after) the real date in cell G1.

At the moment I loop through the cells in column C and can ascertain, which dates can be counted, then copy one row over at a time, but I'm looking for a slicker (perhaps one-liner) answer, perhaps by copying a block of rows in one go. The aim is to copy those rows to another sheet. There are many more rows than in the attached, and many sheets to process, and I have no control over the format of the dates/strings in column C. Currently it takes about 20 seconds to copy over the necessary rows, but I'm looking for it to happen much more quickly; current thoughts are to sort on column C (sorting on column C anything that looks like a number as a number - which has it's own problems!), have a count of dates satisfying the criterion (say using a worksheet formula such as COUNTIF or SUMPRODUCT, perhaps also using EVALUATE) then copy a block of rows in one go.

not very relevant, but the existing code is something like this which highlights rather than copyies the rows(included in the attached): ...

## Count Days In Set Range Of Dates From A Range

Aug 7, 2014

Trying to count how many days from a set range of dates are within another range.

So for example, the first two dates, 7/29/2014 - 8/5/2014 would be 6

7/31/20148/6/2014 are the set dates

Count Days Within Range.xlsx

## Count Number Of Working Days

Nov 26, 2013

Create a formula to count number of days an employee work (in 25 working days and 5 Friday as rest day month):

Example:

If employee works 25 days during weekdays he will get counted as = 30 days
If employee works only 22 days during weekdays with 3 absences during weekdays he will get counted as = 27 days.
If employee works from 1st to 24th and 25th to 30th absence he will get counted as = 24 days.

Other examples and output desired I attached here: Sample.xlsx

## Days Between Two Dates

Jun 16, 2008

I have been using: =DATEDIF(A1,B1,"md") & " days" to calculate the difference, in days, between two dates in a speadsheet, however, the number of formulae in the spreadsheet now is cumbersome so I'm trying to put it together in VB.

## Macro: Return Previous Working Days Date

Dec 1, 2006

how do i get the previous days working date in VBA, how can i get VBA to determine wether we are in the week, and how will i get it to know its a monday to retrieve fridays date?

## Know Exact Days Between 2 Dates?

Jun 4, 2014

So, it is for a hotel, I need to know to know between a Check-in and a check-out date, each day (monday, saturday) there is. In depending it is for one night or 12.. I will try to be clear: Depending on the channel of booking and the day of week we have a % of commission different. so I want to put the price in one cell and it is calculate for each date in order at the end I have the right net profit (because the right commission has been applied). Of course to complicate the commissions do not apply in the same order depending the channel and there are fixed costs which are count one time or repeat by the amount of nights. For the these things what i did seems work.

After, my boss would like to link the dates with another excel file which say for each date which "level of price" (price point) is applied and function of this Price Point we have the price applied per room type and offer

But for now, I didn't find anything what can say to me between 2 dates what dates are between...

## Difference In Days Between 2 Dates

Jun 18, 2014

How to find the difference between 2 dates in days ,eg,12/10/14 and 14/10/14 = 2 days on a spreadsheet.