PC Review


Reply
Thread Tools Rate Thread

calculating number of weeks between two dates

 
 
=?Utf-8?B?dm5zcm9kMjAwMA==?=
Guest
Posts: n/a
 
      28th Mar 2007
Hello. I have three columns:
start date
end date
duration
What function do I use to calculate the number of weeks the dates entered in
the first two columns?

Thanks.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJpdHQ=?=
Guest
Posts: n/a
 
      28th Mar 2007
Hey there,

First make sure these cells are formatted as dates (and not text)
Ensure you have the ATP (go to tools, add-ins and check the box next to
Analysis Toolpak)
Then use the NETWORKDAYS function (formula)
for instance
col A = start date
col B = end date
col C = duration (in working days)
(opt) col D = could be the number of weeks or any other calculation


For example, col C will be your formula...
If A1 = 3/16/07
If B1 = 4/2/07
C1 will need the following pasted into it:

=NETWORKDAYS(A1,B1)

This formula calculates the number of working days between 2 dates.
Your result here should be 12

You could then do a SUM function in the next column to divide the network
days to give you an approx week calculation

Hope it helps!
-Britt


"vnsrod2000" wrote:

> Hello. I have three columns:
> start date
> end date
> duration
> What function do I use to calculate the number of weeks the dates entered in
> the first two columns?
>
> Thanks.

 
Reply With Quote
 
=?Utf-8?B?dm5zcm9kMjAwMA==?=
Guest
Posts: n/a
 
      28th Mar 2007
To show the weeks in my 3rd column, I used:
=(networkdays(A1,B1))/5
and it seems to work. Is this an accurate way to modify the formula to show
weeks?

Thanks!

"Britt" wrote:

> Hey there,
>
> First make sure these cells are formatted as dates (and not text)
> Ensure you have the ATP (go to tools, add-ins and check the box next to
> Analysis Toolpak)
> Then use the NETWORKDAYS function (formula)
> for instance
> col A = start date
> col B = end date
> col C = duration (in working days)
> (opt) col D = could be the number of weeks or any other calculation
>
>
> For example, col C will be your formula...
> If A1 = 3/16/07
> If B1 = 4/2/07
> C1 will need the following pasted into it:
>
> =NETWORKDAYS(A1,B1)
>
> This formula calculates the number of working days between 2 dates.
> Your result here should be 12
>
> You could then do a SUM function in the next column to divide the network
> days to give you an approx week calculation
>
> Hope it helps!
> -Britt
>
>
> "vnsrod2000" wrote:
>
> > Hello. I have three columns:
> > start date
> > end date
> > duration
> > What function do I use to calculate the number of weeks the dates entered in
> > the first two columns?
> >
> > Thanks.

 
Reply With Quote
 
=?Utf-8?B?Qm9uaU0=?=
Guest
Posts: n/a
 
      28th Mar 2007
If start date is column A and end date is in column B and both are formated
as dates, then for row 2 the calculation would be =(B2-A2)/7.
For this data:
Start Date End Date Weeks
3/12/2007 4/14/2007 4.7143
The result if formatted as number with 4 decimal places, so you can see it's
almost 4 1/2 weeks. If you just want it to round to the nearest number of
weeks, set the decimals to zero (which in this case would round to 5). If
you want to show full weeks only enter the formula:
=INT((B3-A3)/7)
which would return an answer of 4.

"vnsrod2000" wrote:

> Hello. I have three columns:
> start date
> end date
> duration
> What function do I use to calculate the number of weeks the dates entered in
> the first two columns?
>
> Thanks.

 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      28th Mar 2007
=WEEKNUM(B1)-WEEKNUM(A1)


"vnsrod2000" wrote:

> Hello. I have three columns:
> start date
> end date
> duration
> What function do I use to calculate the number of weeks the dates entered in
> the first two columns?
>
> Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating number of weeks between dates? John Microsoft Excel Worksheet Functions 2 30th Nov 2007 01:42 AM
calculating number of weeks between two set dates =?Utf-8?B?YW5zd2VyNzg2?= Microsoft Excel Worksheet Functions 2 21st Aug 2007 04:34 PM
Calculating number of weeks between dates (start and end dates) =?Utf-8?B?R2VyYWxkIExlbWF5?= Microsoft Excel Discussion 1 28th Mar 2007 01:13 PM
Calculating number of weeks from two dates spudgun Microsoft Excel Misc 5 4th Aug 2005 12:08 AM
calculating (correctly) the weeks and days between dates neon Microsoft Excel Worksheet Functions 4 28th Jun 2004 03:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:52 AM.