Solved

calculating the number sof months between to dates

Posted on 2011-03-04
4
302 Views
Last Modified: 2012-05-11
Hi Experts

How would you acturally calculate the number of months between two dates:-

Col A                  Col B                  Col C
1 Feb 2011        30 April 2011      3 months

so the date in col A always has to be the start of the month and the date in col b the end of the month. (results in col C)

       
0
Comment
Question by:route217
  • 2
4 Comments
 
LVL 59

Accepted Solution

by:
Saurabh Singh Teotia earned 250 total points
ID: 35034696

Use this formula...

=DATEDIF(A1,B1,"ym")

Also this will give you answer as 2..since it will be 3 when the date in column B becomes 1st march 2011 which is correct.

Saurabh...
0
 
LVL 24

Expert Comment

by:jimyX
ID: 35034724
You may use difference between dates and divide by 30, so in column c you put:
=(B1-A1)/30

make sure to format column c as numbers with 0 decimal places
0
 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 250 total points
ID: 35034731
or you can round it:
=Round((B1-A1)/30) or =Roundup((B1-A1)/30)
0
 

Author Comment

by:route217
ID: 35034741
Thanks for the feed back let me test to see end result
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Distribute Values over date range (2 of 2) 5 23
Turn date into age 17 32
simple excel formula 4 13
Index Match Formula VBA 6 15
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question