How to Create Automatic Rolling Months in Excel – 3 Methods

 

Consider the date: 2-May-19.

To automate the dates with rolling months:

Method 1 – Create Automatic Rolling Months Using the Fill Handle

  Steps:

  • Click B5 and enter the starting date.

Record the First Date for Automatic Rolling Months in Excel

  • Place the cursor at the bottom right corner of the cell.
  • Drag down the Fill Handle.

Drag Fill Handle below to Create Automatic Rolling Months in Excel

Cells will be filled with rolling dates. To display rolling months:

  • Click the Fill Handle icon and choose Fill Months.

Choose Fill Handle Option to Create Automatic Rolling Months in Excel

This is the output.

Created Automatic Rolling Months in Excel

Read More: How to Repeat Formula Pattern in Excel


Method 2 – Using the Fill Option in the Excel Toolbar to Create Automatic Rolling Months

 

Steps:

  • Click B5 and enter the starting date.
  • Select B5:B14.
  • Go to the Home tab >> Editing >> Fill >> Series…

Use Fill Tool to Create Automatic Rolling Months in Excel

  • Choose Columns in Series.
  • Select Date in Type.
  • Choose Month in Date unit.
  • Enter 1 in Step value:.
  • Click OK.

Series Window

This is the output.

Created Automatic Rolling Months in Excel

Read More: How to AutoFill Months in Excel


Method 3 – Using an Excel Formula with the DAY, DATE, MONTH, YEAR, IF, and MOD Functions

Steps:

  • Enter the starting in B5.
  • Click B6 and enter the following formula.
=DATE(IF(MONTH(B5)+1>12,YEAR(B5)+1,YEAR(B5)),IF(MONTH(B5)+1>12,MOD(MONTH(B5)+1,12),MONTH(B5)+1),DAY(B5))
  • Press Enter.

Formula to Create Automatic Rolling Months in Excel

Formula Breakdown:

=IF(MONTH(B5)+1>12,YEAR(B5)+1,YEAR(B5))

If the sum of the month of the date in B5 and 1 exceeds 12, it will return the year value in B5 plus 1. Otherwise, the year value in B5.

Result: 2019.

=IF(MONTH(B5)+1>12,MOD(MONTH(B5)+1,12),MONTH(B5)+1)

It checks if the month in B5 plus 1 is greater than 12. If this is TRUE, the function divides the month number plus 1 by 12 and returns the remainder. Otherwise, it returns the month number in B5 plus 1.

Result: 6.

=DATE(IF(MONTH(B5)+1>12,YEAR(B5)+1,YEAR(B5)),IF(MONTH(B5)+1>12,MOD(MONTH(B5)+1,12),MONTH(B5)+1),DAY(B5))

Takes the previous two results as year and month in the DATE function and adds the day number in B5.

Result: 2-Jun-2019

  • Drag down the Fill Handle to see the result in the rest of the cells.

Drag Fill Handle Below

This is the output.

Created Automatic Rolling Months in Excel

Read More: How to Autofill Days of Week Based on Date in Excel


How to Arrange Data According to the Automatic Rolling Months

To find the items produced and sales values for the second date of each month:

Dataset to Extract Data According to Automatic Rolling Months

Steps:

  • Click F5 and enter the starting date.

First Date Value of Date Series

  • Click F6 and enter the formula below:
=DATE(IF(MONTH(F5)+1>12,YEAR(F5)+1,YEAR(F5)),IF(MONTH(F5)+1>12,MOD(MONTH(F5)+1,12),MONTH(F5)+1),DAY(F5))
  • Press Enter.

Formula to Create Automatic Rolling Months in Excel

  • Drag down the Fill Handle to see the result in the rest of the cells.

Automatic Rolling Months

  • Click G5 and enter the formula below.
=INDEX($C$5:$C$23,MATCH(F5,$B$5:$B$23,0),1)
  • Press Enter.

Formula to Find Produced Items

  • Drag down the Fill Handle to see the result in the rest of the cells.

Produced Items for All Dates

  • Click H5 and use the formula below.
=INDEX($D$5:$D$23,MATCH(F5,$B$5:$B$23,0),1)
  • Press Enter.

Formula to Find Sales Values

  • Drag down the Fill Handle to see the result in the rest of the cells.

This is the output.

Found All Values for All Dates

Read more: How to Autofill Dates in Excel 


Download Practice Workbook

Download the practice workbook.


Related Articles


<< Go Back to Autofill Dates | Excel Autofill | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rifat Hassan
Rifat Hassan

Rifat Hassan, BSc, Electrical and Electronic Engineering, Bangladesh University of Engineering and Technology, has worked with the ExcelDemy project for almost 2 years. Within these 2 years, he has written over 250 articles. He has also conducted a few Boot Camp sessions on effective coding, especially Visual Basic for Applications (VBA). Currently, he is working as a Software Developer to develop and deploy additional add-ins to enhance the customers with a more sophisticated experience with Microsoft Office Suits,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo