ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculating difference between dates (https://www.excelbanter.com/excel-discussion-misc-queries/234005-calculating-difference-between-dates.html)

DUNNER7

Calculating difference between dates
 
I have column c with the start date ex. 9/4/2009 and column d leave date ex.
11/02/09. How can I calculate number of school days (no SAT and SUN) that
the student attended between these two dates in column e?

Thanks
Del Dobbs

Jacob Skaria

Calculating difference between dates
 
Wtih start date in A1 and end date in B1; try the below which will give you
the count inclusive of both dates (excluding Sat and Sun)

=(B1-WEEKDAY(B1,2)+WEEKDAY(A1,2)-A1)/7*5-MIN(5,WEEKDAY(A1,2))+MIN(5,WEEKDAY(B1,2))+1

If this post helps click Yes
---------------
Jacob Skaria


"DUNNER7" wrote:

I have column c with the start date ex. 9/4/2009 and column d leave date ex.
11/02/09. How can I calculate number of school days (no SAT and SUN) that
the student attended between these two dates in column e?

Thanks
Del Dobbs


Gary''s Student

Calculating difference between dates
 
Excel has a function specifically for this. See:
NETWORKDAYS
in Excel Help.
--
Gary''s Student - gsnu200857


"DUNNER7" wrote:

I have column c with the start date ex. 9/4/2009 and column d leave date ex.
11/02/09. How can I calculate number of school days (no SAT and SUN) that
the student attended between these two dates in column e?

Thanks
Del Dobbs


DUNNER7

Calculating difference between dates
 
I saw that function and didn't know how to place/columns in the formula. Do
I select columns c, d, e, and click function and input values? Do I select
column E and format it to take value from columns c and d? I know it must be
something obvious, but I cannot seem to make this work.

Thanks,

"Gary''s Student" wrote:

Excel has a function specifically for this. See:
NETWORKDAYS
in Excel Help.
--
Gary''s Student - gsnu200857


"DUNNER7" wrote:

I have column c with the start date ex. 9/4/2009 and column d leave date ex.
11/02/09. How can I calculate number of school days (no SAT and SUN) that
the student attended between these two dates in column e?

Thanks
Del Dobbs


David Biddulph[_2_]

Calculating difference between dates
 
=NETWORKDAYS(C1,D1)
If you get a #NAME? error, look at Excel help for the NETWORKDAYS function.
--
David Biddulph

"DUNNER7" wrote in message
...
I have column c with the start date ex. 9/4/2009 and column d leave date
ex.
11/02/09. How can I calculate number of school days (no SAT and SUN) that
the student attended between these two dates in column e?

Thanks
Del Dobbs




edvwvw via OfficeKB.com

Calculating difference between dates
 
DUNNER7 wrote:
I have column c with the start date ex. 9/4/2009 and column d leave date ex.
11/02/09. How can I calculate number of school days (no SAT and SUN) that
the student attended between these two dates in column e?

Thanks
Del Dobbs



Use NETWORKDAYS ( you will need the analysis addin if using Excel 2003)

Syntax = NETWORKDAYS( Start_date, End_date, Holidays)

edvwvw

--
Message posted via http://www.officekb.com



All times are GMT +1. The time now is 02:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com