PC Review


Reply
Thread Tools Rate Thread

Calculate Number of Months Weeks and Days Between Two Dates

 
 
riprussell@aol.com
Guest
Posts: n/a
 
      21st Sep 2006
Greetings:

Here's a problem that I've yet to figure out.

I'm trying to determine the number of months, weeks and days between
two dates to determine what the cost of a rented item will be, when the
vendor offers a discount for monthly rates over weekly rates over daily
rates. The standard pricing is always with the assumption that a month
is thirty (30) days, a week is seven (7) days, and a day is, well a
day...regardless of the actual calendar months they cover.

The desire is to have the answer divided in to three fields. For
instance, a rental for 39 days would ideally return the answer "1
month, 1 week, two days", in unique cells specific to each piece of
data.

Can anyone help with this? Thanks!

Rip

 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      21st Sep 2006
Check out this link...

http://www.cpearson.com/excel/datedif.htm
--
HTH...

Jim Thomlinson


"(E-Mail Removed)" wrote:

> Greetings:
>
> Here's a problem that I've yet to figure out.
>
> I'm trying to determine the number of months, weeks and days between
> two dates to determine what the cost of a rented item will be, when the
> vendor offers a discount for monthly rates over weekly rates over daily
> rates. The standard pricing is always with the assumption that a month
> is thirty (30) days, a week is seven (7) days, and a day is, well a
> day...regardless of the actual calendar months they cover.
>
> The desire is to have the answer divided in to three fields. For
> instance, a rental for 39 days would ideally return the answer "1
> month, 1 week, two days", in unique cells specific to each piece of
> data.
>
> Can anyone help with this? Thanks!
>
> Rip
>
>

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      21st Sep 2006
On 21 Sep 2006 13:04:15 -0700, (E-Mail Removed) wrote:

>Greetings:
>
>Here's a problem that I've yet to figure out.
>
>I'm trying to determine the number of months, weeks and days between
>two dates to determine what the cost of a rented item will be, when the
>vendor offers a discount for monthly rates over weekly rates over daily
>rates. The standard pricing is always with the assumption that a month
>is thirty (30) days, a week is seven (7) days, and a day is, well a
>day...regardless of the actual calendar months they cover.
>
>The desire is to have the answer divided in to three fields. For
>instance, a rental for 39 days would ideally return the answer "1
>month, 1 week, two days", in unique cells specific to each piece of
>data.
>
>Can anyone help with this? Thanks!
>
>Rip


Method 1 (returns the values in separate columns):

A1: Rental Term
B1: Months
C1: Weeks
D1: Days

A2: <enter the number of days of the rental term>
B2: =INT(Rental_Term/30)
C2: =INT(MOD(Rental_Term,30)/7)
D2: =MOD(MOD(Rental_Term,30),7)

You can custom format the cells to have the unit of time displayed as you
describe above, if you want.
--ron
 
Reply With Quote
 
riprussell@aol.com
Guest
Posts: n/a
 
      21st Sep 2006
Jim, Ron. Thanks for your thoughtful and quick responses. Ron, your
solution works beautifully. I've been trying to get this right
forever!

Thanks again. Good guys, both of you.

~Rip

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      22nd Sep 2006
On 21 Sep 2006 14:39:31 -0700, (E-Mail Removed) wrote:

>Jim, Ron. Thanks for your thoughtful and quick responses. Ron, your
>solution works beautifully. I've been trying to get this right
>forever!
>
>Thanks again. Good guys, both of you.
>
>~Rip


Glad to help. Thanks for the feedback.


--ron
 
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
How to calculate the difference between 2 dates in days, months and years Alexander Vasilevsky Microsoft Dot NET Framework 4 21st Dec 2007 12:15 PM
Calculate weeks or months between dates =?Utf-8?B?c3RpY2thbmRyb2Nr?= Microsoft Access VBA Modules 2 31st Jan 2006 04:51 PM
Calculate difference between 2 dates in months and remaining days =?Utf-8?B?TG9zdEJveQ==?= Microsoft Access Queries 3 31st Dec 2004 10:31 PM
How do I calculate how many days in which months given two dates . =?Utf-8?B?TmljayBSb2dlcnM=?= Microsoft Excel Programming 1 3rd Nov 2004 03:29 PM
Calculating the number of days/weeks/months/years that have passed =?Utf-8?B?RHVnc3Rlcg==?= Microsoft Access Getting Started 3 27th Sep 2004 12:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:38 PM.