How to Create a Rolling Chart in Excel?
Last Updated :
03 Jan, 2023
A chart range is a data range that automatically updates as the data source is changed. This dynamic range is then utilized in a graphic as the source data. As the data changes, the dynamic range updates instantaneously, causing the chart to refresh. A common necessity when developing reports in Excel is to report on a rolling basis. This may imply the previous 12 months, the last 6 weeks, or the last 7 days. Whatever era is being reported, this might involve spending a significant amount of effort modifying chart sources and algorithms to display the correct data. To make a rolling chart, first, make two dynamic named ranges. These will automatically collect data from the previous six months. One named range contains the chart data, while the other contains the labels. We will then utilize these specified names as the source for our chart.
Make a Dynamic Chart Range Using Excel Formula
Using Excel formula and named ranges, construct dynamic chart ranges. To make the named ranges dynamic, the OFFSET function will be employed. You may use this method to reference ranges relative to another range on a sheet. As a result, this may be used to grab the data. Example:
Step 1: Assume you have the following data set.
Step 2: Then, on the Ribbon, select the Formulas tab and then the Define Name button.
Step 3: After that, the Define Name dialogue box will display. You are free to use whatever name you choose. I named this one Monthsales and used the formula below in refers to section.
=OFFSET(Sheet1!$B$1,COUNT(Sheet1!$B:$B),0,-6,1)
Explanation: This formula begins at cell B1. It then scrolls down to the bottom of the column. The column bottom is determined by counting the number of values in column B. The -6 and 1 at the end of the calculation are used to retrieve the cell’s last 6 rows and 1 column.
Step 4: We must now construct a new dynamic named range for the chart labels. The following OFFSET function will be utilized.
=OFFSET(Monthsales,0,-1)
This function takes the previously provided name and chooses an equal height range one column to the left.
Step 5: The next step is to insert a chart using the named ranges as the data source. Navigate to the Insert tab. Insert the ‘Line with markers’ chart by clicking on ‘Insert Line or Area Chart.’ The chart will be inserted into the worksheet as a result of this.
Step 6: Now the Chart will appear like this.
Step 7: Go to the Chart Design Tab and click on Select Data after selecting the chart.
Step 8: Click the Edit button in ‘Legend Entries (Series)’ in the ‘Select Data Source’ dialogue box that appears.
Step 9: Cell B1 has been chosen as the Series name. The name of the data series is taken from the Sales heading. The Monthsales designated range has been input for Series Values. Keep the sheet name in there as well, as shown in the figure below, and then click OK.
Step 10: Click the Edit button again in the ‘Labels’ Section in the ‘Select Data Source’ dialogue box. The Chartmonths designated range has been typed in the Axis label range section and then click OK.
Step 11: In Excel, a rolling chart is built. When you add new rows to the table, the chart automatically refreshes to display the most recent six months.

Similar Reads
How to Create a Line Chart in Excel
Line graphs are a highly valuable tool in Excel, helping users analyze trends and patterns effectively over time. They are widely used for time-series analysis in Excel, allowing a clear visual representation of changes in data. In this guide, you'll learn how to create a line graph in Excel, includ
10 min read
How to Create a Step Chart in Excel
A step chart is used to represent data that changes irregularly between time intervals. Now, Excel doesn't have a feature to create a Step Chart like the one shown below but we can create one by making some changes in our data. What is a Step Chart in ExcelA Step chart is the same as a Line Chart. T
4 min read
How To Create a Tornado Chart In Excel?
Tornado charts are a special type of Bar Charts. They are used for comparing different types of data using horizontal side-by-side bar graphs. They are arranged in decreasing order with the longest graph placed on top. This makes it look like a 2-D tornado and hence the name. Creating a Tornado Char
2 min read
How to Create a Dynamic Chart Range in Excel?
A Dynamic chart range is the range of a data set which automatically updates on any modifications in the original data set. It is beneficial because at some point in time we need to add or delete data from the original data set. So, we want a method to automatically update the chart on performing an
5 min read
How to Create a Bar Chart in Excel?
To learn how to create a Column and Bar chart in Excel, let's use a simple example of marks secured by some students in Science and Maths that we want to show in a chart format. Note that a column chart is one that presents our data in vertical columns. A bar graph is extremely similar in terms of t
4 min read
How to Create a Thermometer Chart in Excel?
The Thermometer chart in Excel can be used to depict specific data based on the actual value and the target value. It can be used in a wide range of scenarios such as representing the past performance of horses in horse racing or the global temperature and it's variation throughout decades etc. In t
2 min read
How to Create a Tolerance Chart in Excel?
A tolerance chart shows how a particular data item compares to the maximum and minimum permissible values. In this article, we'll analyze the average results of the students of a class using a tolerance chart. Steps for creating a Tolerance Chart Follow the below steps to create a Tolerance chart in
2 min read
How to Create a Goal Line on a Chart in Excel?
Excel is a powerful data visualization and management tool that can be used to store, analyze, and create reports on large data. Data can be visualized or compared using different kinds of plots in Excel such as line charts, bar charts, etc. A goal line is also called a target line. It helps show ac
2 min read
How to Create a Gauge Chart in Excel?
Gauge chart is also known as a speedometer or dial chart, which use a pointer to show the readings on a dial. It is just like a speedometer with a needle, where the needle tells you a number by pointing it out on the gauge chart with different ranges. It is a Single point chart that tracks a single
2 min read
How to Create Pie of Pie Chart in Excel
A Pie Chart is one of the most popular data visualization tools used in Excel to display data in a circular form. However, when you have a lot of small values, they can be hard to differentiate in a standard pie chart. This is where the pie of pie chart with two data sets in Excel comes into play. I
7 min read