How to Calculate Running Total in Excel? (Complete Guide)

In the following overview image, we used the SUM function to calculate the running total of sales values, with the formulas showing how the function is updated through cells.

Overview of calculating Excel running total using SUM function


Download the Practice Workbook


What Is a Running Total?

A running total, or a cumulative sum, is a series of partial sums of any set of data. The running total shows the summary of data as it accumulates over time.

Suppose we have the first value X. If we get the second value Y, the running total will be X+Y. Similarly, if there’s a third value Z, the updated running total will be X+Y+Z, and so on.


What Are the Uses of Running Total?

  • You can use it in the cash register operation of any store. Cash registers in particular show a running total of different products as they are scanned into the system. They usually keep track of all transactions that take place throughout the day in a running total as well.
  • The running total is useful in sports. An excellent example of a running total is in the sport of cricket. Every time a player scores a run, the total run gets increased. As a result, the final score is only the aggregate of the runs or running total.
  • You need to calculate the running total if you work in a sales position. If you have a quota, you can use a running total to monitor your progress. Managers use these running totals to assess the performance of workers on a monthly, quarterly, or annual basis.
  • You can use the running total in the year-to-date calculation. The running total tracks a specific task or activity from a specific date until the end of the year.
  • Businesses frequently use the running totals to manage their inventories as they have to keep track of how many goods are sold. Then, they compare that number to how many items they have on hand.
  • You can use the running total in the balance sheet. You can clearly see any assets and liabilities at any time with the use of balance sheets.
  • You can also use the running total for calculating your bank balance.
  • Ride-sharing companies and delivery services use the running total to track the mileage. As a result, drivers are compensated per mile.
  • You may track your daily or weekly calorie intake using the running totals. You can track your calories in order to lose weight. For this purpose, use Excel to input the number of calories in each meal. Then, calculate how many calories you’ll consume over the course of a day or a week.

How to Calculate the Running Total in Excel

Method 1 – Use a Custom Formula

  • Use the following formula in cell E5 to get the first running total result.
=D5

Inserting a cell reference to calculate running total

  • Use the following formula in cell E6:
=D6+E5
  • Apply the Fill Handle tool to copy this formula in the rest of the column. You’ll get the running total.

Inserting a custom formula and using Fill Handle tool to calculate running total


Method 2 – Apply the SUM Function

  • Insert the following formula in cell E5, then apply the Fill Handle tool to get the running total:
=SUM($D$5:D5)

Inserting SUM function and using Fill Handle tool to calculate running total


Method 3 – Use the SUMIF Function for Conditions

  • Insert the following formula in cell E5, then apply the Fill Handle tool to get the running total for values that have “North” as the region.
=SUMIF($B$5:B5,"North",$D$5:D5)

Inserting SUMIF function and using Fill Handle tool to calculate running total with criteria


Method 4 – Combine SCAN and LAMBDA Function

  • Insert the following formula in cell E5.
=SCAN(0,D5:D14,LAMBDA(a,v,a+v))

Inserting SCAN and LAMBDA function to calculate running total

Formula Breakdown

  • LAMBDA(a,v,a+v)– Here a represents the accumulated value and v represents the current value in the iteration. The expression a+v adds the current value to the accumulated value using the LAMBDA function.
  • SCAN(0,D5:D14,LAMBDA(a,v,a+v))– Here the initial value is set to 0. Then, the second argument D5:D14 represents the range of values over which the SCAN function will iterate. Finally, the SCAN function performs the LAMBDA expression calculation for each value.
Note: The SCAN and LAMBDA functions are available only in the Microsoft 365 version.

Method 5 – Use the Quick Analysis Tool to Calculate the Running Total Automatically

  • Select the whole dataset and click on the Quick Analysis Tool button.
  • Click on the Total tab and then press the slider button.

Selecting Totals tab under Quick Analysis Tool button

  • Select Running Total (yellow color). You’ll get the running total of your values placed automatically in column E.

Selecting Running Total button to calculate running total


Method 6 – Use the Table Feature

  • Select the whole dataset (B4:E14).
  • Go to Insert and select Table. Or, press Ctrl + T from your keyboard.

Inserting Table from Insert tab

  • Tick the option My table has headers in the Create Table window.
  • Press OK.

Choosing option from Create Table window

  • The Table is ready to use.
  • Put the following formula in cell E5:
=SUM(Table3[[#Headers],[Sales]]:[@Sales])

We use Table3 as our table’s name and we summed the Sales column of our table.

Putting a custom formula to calculate running total


Method 7 – Apply Power Query

  • Select the whole dataset.
  • Go to Data and choose From Table/Range.

Inserting Table from Data tab

  • In the Create Table window, tick the option My table has headers.
  • Press OK.

Choosing option from Create Table window

The Power Query Editor will open.

  • Go to the Add Column tab and select From 1 from the Index Column drop-down menu.

Creating a new Index column in Power Query Editor

  • A new column titled Index will be added next to the Sales column.
  • Select Custom Column under the Add Column tab.

Creating a new Custom column in Power Query Editor

  • In the Custom Column window, type a new column name. We put Running Total as the name.
  • Put the following formula in the formula box:
=List.Sum(List.Range(#"Added Index"[Sales],0,[Index]))

Sum gives the sum of the range within the dataset. List.Range gives the range of Sales and it will change depending on the Index value.

  • Check whether No syntax errors have been detected appears. If it appears, press the OK button. If you get an error, re-check the formula.

Putting a custom formula in Custom Column window to calculate running total

  • A new column titled Running Total will be added after the Index column.

Showing Running Total column in Power Query Editor

  • Right-click on the empty space of the Index column.
  • Select the Remove option.

Removing Index column from Power Query Editor

  • Go to the Home tab and select Close & Load.

Selecting Close & Load from Home tab to load this data table in Excel sheet

You’ll get the running total of your sales values along with the dataset in a new worksheet.

Showing running total of the sales values using Power Query


Method 8 – Use a Pivot Table

  • Select B4:D14 and go to Insert, then choose PivotTable.

Inserting Pivot Table from Insert tab

  • Choose the option New Worksheet in the PivotTable from table or range window.
  • Press OK.

Choosing options from PivotTable from table or range window

  • The PivotTable Fields window will open.
  • Drag the Month under the Rows field once and the Sales under the Values field twice.

Dragging values into different fields under PivotTable Fields window

  • You’ll get a dataset like below.

Showing Pivot Table with Sum of Sales column

  • In the PivotTable Fields window, go to the Value Field Settings by clicking on the Sum of Sales2 drop-down.

Opening Value Field Settings from Sum of Sales2 menu

  • In the Value Field Settings wizard, put the name as Running Total.
  • Go to Summarize Values By tab and choose Sum from the drop-down.

Choosing Sum from Summarize Values By tab under Value Field Settings wizard

  • Go to the Show Values As tab and choose Running Total In under this option.
  • Select Month as the Base field and press OK.

Choosing Running Total In and Month from Show Values As tab under Value Field Settings wizard

  • You’ll see the running total in column D.

Showing running total of sales in Pivot Table


Method 9 – Apply Power Pivot and DAX

  • Select B4:D14, go to Insert, and choose PivotTable.

Inserting Pivot Table from Insert tab

  • Choose New Worksheet and tick the option Add this data to the Data Model in the PivotTable from table or range window.
  • Press OK.

Choosing options from PivotTable from table or range window

  • Select Month and Sales. These 2 will automatically get added to the Rows and Values fields, respectively, under the PivotTable Fields pane.

Selecting values to automatically add into different fields under PivotTable Fields window

  • You’ll see a dataset like this in your Excel sheet.

Showing Pivot Table with Sum of Sales column

  • In the PivotTable Fields pane, right-click on the empty space of Range.
  • Click on the Add Measure option.

Selecting Add Measure option from Range under PivotTable Fields wizard

  • You’ll get the Measure window. Give it a name like Running Total.
  • Put the DAX formula in the formula box:
=CALCULATE (SUM ( Range[Sales] ),FILTER (ALL (Range[Month] ),Range[Month] <= MAX (Range[Month]) ))

Range[Sales] refers to the Sales column and Range[Month] indicates the Month column of the dataset.

  • Select Currency as the Category and press OK.

Putting a custom formula in Measure window to calculate running total

  • Running Total is added in the PivotTable Fields window.
  • Tick it to add this to your Excel sheet.

Selecting Running Total value from PivotTable Fields wizard

You’ll obtain the running total of the sales values.

Showing running total of sales in Pivot Table


Method 10 – Apply a Relative Named Range and R1C1 Style with the SUM Function

  • Go to the File tab.

Opening File tab

  • Select Options under the Home tab.

Selecting Options menu from Home tab

  • The Excel Options window will open up.
  • Tick the R1C1 reference style option from the Formulas tab.
  • Click OK.

Choosing R1C1 reference style under Excel Options window

  • The reference style will change to R1C1 (shown by column letters being replaced with numbers).
  • Go to Formulas and choose Define Name.

Selecting Define Name option from Formula tab

  • The New Name window will open up.
  • Put a name Total in the Name box.
  • Insert the following formula in the Refers to box.
=R[-1]C
  • Click OK.

Defining name and formula for Named Range

  • Put the following formula in cell R5C5 and apply the Fill Handle tool:
=SUM(RC[-1],Total)

You’ll obtain the running total of the sales values.

Applying SUM function to calculate running total


How to Create a Running Total Chart in Excel

  • Select the whole dataset excluding the Region column (C4:E14).
  • Go to the Insert tab.
  • Select 2D Clustered Column Chart from the Column Chart options.

Inserting 2D Clustered Column Chart from Insert tab

  • Select the Running Total Columns (Orange Color) and right-click.
  • Select Change Series Chart Type.

Selecting Change Series Chart Type for changing chart type of Running Total Chart from Context menu

  • Go to the Combo tab in the Change Chart Type window.
  • Select Line with Markers for Running Total Chart and press OK.

Choosing Line with Markers for Running Total Chart

  • The chart is now ready.
  • We have made some formatting changes like giving the chart a title and adding a legend to make the chart visually appealing.

Showing a Running Total Chart


Things to Remember

  • A running total and the total sum are different. The running total sums the former value with the current value. But the total sum sums all the values.
  • The running total is different from the running balance. In the running balance, when you add a new entry, the sum of values can grow or reduce. But in the running total, it’ll only grow.
  • When we used the Named Range method, we changed the reference style to R1C1 from A1 style. This change is only applicable to this method.

Frequently Asked Questions

What is an example of a running total?

Suppose you work in a sales position and want to know the total number of items sold up to a particular date. In this case, you have to calculate the running total of the number of items sold instead of the sum.

What is the formula for a running balance in Excel?

There are a lot of formulas for a running balance in Excel. You can use a custom formula and SUM, SUMIF, SCAN, and LAMBDA functions to calculate the running balance. You’ll find all these methods in this article.

What is the purpose of running total in Excel?

The purpose of the running total in Excel is to add up the values of items as we enter new items and values over time.

What are the methods available to find the running total in Excel?

In this article, you’ll find all the methods available to find the running total in Excel. We can apply a custom formula and use SUM, SUMIF, SCAN, and LAMBDA functions to calculate the running total. Moreover, we use the Quick Analysis tool, Table, Pivot Table, Power Query, Power Pivot, and DAX measures.


Excel Running Total: Knowledge Hub


<< Go Back to How to Calculate in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sajid Ahmed
Sajid Ahmed

Sajid Ahmed, a BSc graduate in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, assumes the position of an Excel & VBA Content Developer at ExcelDemy. A self-motivated individual, his profound interest in research and innovation aligns seamlessly with his passion for Excel. In this role, Sajid not only adeptly addresses challenges but also demonstrates enthusiasm and expertise in gracefully navigating complex situations. This underscores his steadfast commitment to consistently delivering exceptional content. His interests... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo