Date Calculations
If you are happy to assume there are 30 days in a month, then this
approximation should work for you:
=ROUNDUP((B2-A2)/30,0)
assuming end date is in B2 and start date is in A2. If you want it
slightly more accurate you can make it 30.4.
Hope this helps.
Pete
On Jul 23, 11:11*pm, Tommy wrote:
I have a worksheet with a beginning and ending date range. I need the number
of months for the range but also need them rounded up to the next month.
For example:
13-Jul-11 to 31-Jul-12 should calculate as 13 months and not the 12 provided
by the DATEDIF function.
In short, I need to round up to the next month for my calculations.
05-Mar-11 to 31-Dec-11 should return 10 full months and not 9.
Is there an easy way to do this?
|