View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BoniM BoniM is offline
external usenet poster
 
Posts: 353
Default calculating number of weeks between two dates

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.