How to Count Months from Date to Today by Using Excel Formula

This article will demonstrate how to count months from date to today in Excel by using different functions like MONTH, DATEDIF, YEARFRAC, and YEAR. We’ll use the following sample dataset, where the D column is filled with today’s date.

Count Months from Date to Today by Using Excel Formula


Method 1 – Using Formula with the MONTH Function to Count the Number of Months from a Date to Today in Excel

Steps:

  • Select cell E5.
  • Insert the following formula.
=MONTH(D5)-MONTH(C5)
  • Press Enter.

Using Formula with MONTH Function to Count the Number of Months from Date to Today in Excel

  • You will get the number of months for all the people in the data set.

Read More: How to Calculate Number of Months Between Two Dates in Excel


Method 2 – Applying the DATEDIF Function to Count the Number of Months from a Date to Today

Steps:

  • Select cell E5 and use the following formula:
=DATEDIF(C5,D5,"M")
  • Press Enter.

Applying Excel Formula with DATEDIF Function to Count Number of Months from Date to Today

  • You will see the number of months between the first person’s joining date and today’s date.
  • Besides, use the Fill Handle tool and drag it down from cell E5 to E13.

  • You’ll get number of months between the joining date and today’s date in the data set.

Read More: Excel Formula to Calculate Number of Days Between Today and Another Date


Method 3 – Inserting the YEARFRAC Function to Count Months from a Date to Today

Steps:

  • Select cell E5.
  • Insert the following formula.
=INT(YEARFRAC(C5,D5)*12)

In this formula, the YEARFRAC function shows the number of years, so we multiply the number of years by 12 to count the number of months. Then, the INT function will convert the months into an integer value.

  • Press Enter.

Inserting Excel Formula with YEARFRAC Function to Count Months from Date to Today

  • Use the Fill Handle tool and drag it down from cell E5 to E13.

  • Here are the results.

Read More: How to Calculate Years from Today in Excel


Method 4 – Nesting YEAR and MONTH Functions to Count Months from a Date to Today

Steps:

  • Use the following formula in cell E5.
=(YEAR(D5)-YEAR(C5))*12+ MONTH(D5)-MONTH(C5)
  • Press Enter.

Nesting YEAR and MONTH Functions to Count Months from Date to Today by Excel Formula

  • Use the Fill Handle tool and drag it down from cell E5 to E13.

  • Here are the results for our sample.

Read More: Calculate Years and Months Between Two Dates in Excel


Download the Practice Workbook


Related Articles


<< Go Back to Days Between Dates | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Bishawajit Chakraborty
Bishawajit Chakraborty

Bishawajit Chakraborty, a Rajshahi University of Engineering & Technology graduate with a B.Sc. in Mechanical Engineering, has been associated with ExcelDemy since 2022. Presently, he is a content developer, specializing in Excel Power Query, Data Analysis and VBA. It is worth mentioning that he has authored more than 90 articles on VBA content development. His profound interest lies in the fields of data analytics and data science. He possesses expertise in VBA, Power BI, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo