Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
IGG IGG is offline
external usenet poster
 
Posts: 3
Default Formula to calculate the difference in weeks between two dates

Hi,

I' am hoping you can help with what might seem a basic query.

I have a row of dates in one column for which I want to find the difference
between the earlist and latest date i.e. =max(A1:A10)-=Min(A1:A10); however I
cant get the cell to calculate the number of weeks difference as apposed to
the number of days.

Secondly I need to apply the same rule to the column again; but only
concentrating on those dates after a date of my choice i.e. The number of
weeks between the 31/03/08 and the latest date in the column.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 329
Default Formula to calculate the difference in weeks between two dates

Hi IGG,

Is there a reason you can't simply divide the number of days by 7?
=(MAX(A1:A10)-MIN(A1:A10))/7

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

"IGG" wrote in message ...
Hi,

I' am hoping you can help with what might seem a basic query.

I have a row of dates in one column for which I want to find the difference
between the earlist and latest date i.e. =max(A1:A10)-=Min(A1:A10); however I
cant get the cell to calculate the number of weeks difference as apposed to
the number of days.

Secondly I need to apply the same rule to the column again; but only
concentrating on those dates after a date of my choice i.e. The number of
weeks between the 31/03/08 and the latest date in the column.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Formula to calculate the difference in weeks between two dates

Number of weeks:

=INT((MAX(A1:A10)-MIN(A1:A10))/7)

or if you want the odd days as well:

=INT((MAX(A1:A10)-MIN(A1:A10))/7)&" Weeks & "
&MOD((MAX(A1:A10)-MIN(A1:A10)),7)&" Days"

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"IGG" wrote in message
...
Hi,

I' am hoping you can help with what might seem a basic query.

I have a row of dates in one column for which I want to find the
difference
between the earlist and latest date i.e. =max(A1:A10)-=Min(A1:A10);
however I
cant get the cell to calculate the number of weeks difference as apposed
to
the number of days.

Secondly I need to apply the same rule to the column again; but only
concentrating on those dates after a date of my choice i.e. The number of
weeks between the 31/03/08 and the latest date in the column.






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Formula to calculate the difference in weeks between two dates

Try this

=INT((MAX(A1:A10)-MIN(A1:A10))/7)&" Weeks
"&MOD(MAX(A1:A10)-MIN(A1:A10),7)&" Days"

For the second part of your question put the date 31/3/2008 in a cell (say) B1
and use

=INT((B1-MAX(A1:A10))/7)&" Weeks "&MOD(B1-MAX(A1:A10),7)&" Days"

Mike
"IGG" wrote:

Hi,

I' am hoping you can help with what might seem a basic query.

I have a row of dates in one column for which I want to find the difference
between the earlist and latest date i.e. =max(A1:A10)-=Min(A1:A10); however I
cant get the cell to calculate the number of weeks difference as apposed to
the number of days.

Secondly I need to apply the same rule to the column again; but only
concentrating on those dates after a date of my choice i.e. The number of
weeks between the 31/03/08 and the latest date in the column.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference in Weeks between 2 dates Grd Excel Worksheet Functions 2 April 11th 07 03:56 PM
Function to calculate the nuber of weeks between dates? Fish Excel Worksheet Functions 4 March 13th 06 10:55 PM
formula to calculate difference between dates and times Breezie Excel Discussion (Misc queries) 2 February 25th 06 04:14 PM
How do I calculate # of weeks between 2 dates in excel? Linda Excel Worksheet Functions 2 July 1st 05 06:05 PM
HOW TO CALCULATE NUMBER OF WEEKS BETWEEN TWO GIVEN DATES(MAY BE . WARRENCHERYL Excel Worksheet Functions 1 January 5th 05 08:15 AM


All times are GMT +1. The time now is 10:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"