Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to sum a total in multiple Excel tables
  • Excel Pie Chart
  • Remove Duplicates Example in Excel
  • How to Create Thermometer Chart in Excel
  • How to Use Solver Tool in Excel

References

  • Left Lookup in Excel
  • Count rows with at least n matching values
  • How to get relative column numbers in a range in Excel
  • How to use Excel INDIRECT Function
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation don’t exceed total
  • Excel Data validation no punctuation
  • Excel Data validation exists in list
  • Excel Data validation whole percentage only
  • Prevent invalid data entering in specific cells

How to create running total in an Excel Table

by

This tutorial shows illustrates a Running total in Excel Table.

To create a running total in an Excel Table, you can use the INDEX function set up with a structured reference.

Formula

=SUM(INDEX([column],1):[@column])

Explanation

 In the example shown, the formula in F5 is:

=SUM(INDEX([Total],1):[@Total])

When copied down the column, this formula will return a running total at each row.

How this formula works

At the core, this formula has a simple pattern like this:

=SUM(first:current)

Where “first” is the first cell in the Total column, and “current” is a reference to a cell in the current row of the Total column.

Worked Example:   How to sum a total in multiple Excel tables

To get the a reference to the first cell, we use INDEX like this:

INDEX([Total],1)

Here, the array is the entire “Total” column and row number is 1. This works because, the INDEX function returns a reference to the first cell, not the actual value.

Worked Example:   Categorize text with keywords in Excel

To get a reference to the current row, we use:

[@Total]

This is the standard structured reference syntax for “this row”.

The SUM function sums the values in the range at each row, creating a running total.

As the formula is copied down the column, the reference to the first cell doesn’t change, but the referent to the current cell changes at each row. The result is a reference that expands.

Worked Example:   How to find and replace multiple values at same time in Excel

Simple expanding range

Why not use a simple expanding range like this?

=SUM($E$5:E5)

For some reason, this kind of mixed reference becomes corrupted in an Excel Table as rows are added. Using INDEX with a structured reference solves the problem.

Post navigation

Previous Post:

How to generate random date between two dates in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF with wildcards in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate Quarter of Date in Excel
  • How to calculate percent of year complete in Excel
  • How to get workdays between dates in Excel
  • Two ways to sum time over 30 minutes in Excel
  • Add decimal minutes to time in Excel

Grouping

  • Group arbitrary text values in Excel
  • Map text to numbers in Excel
  • Group times into 3 hour buckets in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign data to groups in Excel

General

  • How to Insert Cells, Row and Rows in Excel
  • Create dynamic workbook reference to another workbook in Excel
  • How to add sequential row numbers to a set of data in Excel
  • Zoom Worksheet in Excel
  • How to calculate percent of students absent in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning