TopicsCheat sheetLessons
Lurndo › Excel › Tables and structured references

Learning Excel: Tables and structured references

Format as Table

Every quarter brings new orders, and every time Isla has to change her formulas: B2:B21 becomes B2:B26. There's no need. A table knows how big it is.

A table

This list is formatted as a table, named Sales: a coloured header, banded rows and a filter button in every header. Type a row just below the table and it belongs to it straight away.

Look at the formula in G2: =[@Litres]*[@Price]. In a table you refer to the names of the columns. [@Litres] is the litres in the same row.

G2
fx

=[@Litres]*[@Price]

ABCDEFGHI
1QuarterBeerCustomerPackagingLitresPriceRevenueResult
2Q1Wise OwlCrown InnKeg300£2.40£720.00
3Q1Tripel HootBay Tree BistroBottle80£4.50£360.00
4Q1Night OwlCurlew InnKeg150£3.20£480.00
5Q1Wise OwlFestival HallKeg600£2.20£1,320.00
6Q1Barn OwlBay Tree BistroBottle60£4.00£240.00
7Q2Wise OwlCrown InnKeg350£2.40£840.00
8Q2Tripel HootCrown InnBottle90£4.50£405.00
9Q2Night OwlBay Tree BistroBottle120£3.40£408.00
10Q2Wise OwlCurlew InnKeg200£2.40£480.00
11Q2Barn OwlFestival HallKeg250£3.60£900.00
12Q3Wise OwlFestival HallKeg800£2.20£1,760.00
13Q3Tripel HootBay Tree BistroBottle110£4.50£495.00
14Q3Barn OwlCrown InnKeg180£3.80£684.00
15Q3Wise OwlCurlew InnKeg250£2.40£600.00
16Q3Night OwlCrown InnKeg100£3.20£320.00
17Q4Night OwlFestival HallKeg400£3.00£1,200.00
18Q4Tripel HootCurlew InnBottle70£4.50£315.00
19Q4Wise OwlCrown InnKeg320£2.40£768.00
20Q4Barn OwlBay Tree BistroBottle90£4.00£360.00
21Q4Tripel HootFestival HallKeg300£4.20£1,260.00
22

A whole column

Sales[Litres] is the whole Litres column of the table, without the header. =SUM(Sales[Litres]) adds up all the litres.

When a new order comes in, the column grows with it and the formula counts it in by itself.

I2
fx

=SUM(Sales[Litres])

ABCDEFGHI
1QuarterBeerCustomerPackagingLitresPriceRevenueResult
2Q1Wise OwlCrown InnKeg300£2.40£720.004820
3Q1Tripel HootBay Tree BistroBottle80£4.50£360.00
4Q1Night OwlCurlew InnKeg150£3.20£480.00
5Q1Wise OwlFestival HallKeg600£2.20£1,320.00
6Q1Barn OwlBay Tree BistroBottle60£4.00£240.00
7Q2Wise OwlCrown InnKeg350£2.40£840.00
8Q2Tripel HootCrown InnBottle90£4.50£405.00
9Q2Night OwlBay Tree BistroBottle120£3.40£408.00
10Q2Wise OwlCurlew InnKeg200£2.40£480.00
11Q2Barn OwlFestival HallKeg250£3.60£900.00
12Q3Wise OwlFestival HallKeg800£2.20£1,760.00
13Q3Tripel HootBay Tree BistroBottle110£4.50£495.00
14Q3Barn OwlCrown InnKeg180£3.80£684.00
15Q3Wise OwlCurlew InnKeg250£2.40£600.00
16Q3Night OwlCrown InnKeg100£3.20£320.00
17Q4Night OwlFestival HallKeg400£3.00£1,200.00
18Q4Tripel HootCurlew InnBottle70£4.50£315.00
19Q4Wise OwlCrown InnKeg320£2.40£768.00
20Q4Barn OwlBay Tree BistroBottle90£4.00£360.00
21Q4Tripel HootFestival HallKeg300£4.20£1,260.00
22

The Total Row

At the bottom of a table you can switch on a Total Row. It calculates with SUBTOTAL: =SUBTOTAL(109,[Total]) in D7 adds up the Total column.

The first argument picks the calculation: 109 is the sum, 101 the average, 102 the count, 104 the maximum and 105 the minimum.

D7
fx

=SUBTOTAL(109,[Total])

ABCDE
1ProductQuantityPriceTotalVAT
2Malt40£18.50£740.00
3Hops12£32.00£384.00
4Yeast8£14.75£118.00
5Bottles30£9.60£288.00
6Labels25£4.20£105.00
7Total£1,635.00
8

Try it yourself

In I2, put the total revenue, using the Revenue column of the Sales table.

ABCDEFGHIJ
1QuarterBeerCustomerPackagingLitresPriceRevenueResult
2Q1Wise OwlCrown InnKeg300£2.40£720.00
3Q1Tripel HootBay Tree BistroBottle80£4.50£360.00
4Q1Night OwlCurlew InnKeg150£3.20£480.00
5Q1Wise OwlFestival HallKeg600£2.20£1,320.00
6Q1Barn OwlBay Tree BistroBottle60£4.00£240.00
7Q2Wise OwlCrown InnKeg350£2.40£840.00
8Q2Tripel HootCrown InnBottle90£4.50£405.00
9Q2Night OwlBay Tree BistroBottle120£3.40£408.00
10Q2Wise OwlCurlew InnKeg200£2.40£480.00
11Q2Barn OwlFestival HallKeg250£3.60£900.00
12Q3Wise OwlFestival HallKeg800£2.20£1,760.00
13Q3Tripel HootBay Tree BistroBottle110£4.50£495.00
14Q3Barn OwlCrown InnKeg180£3.80£684.00
15Q3Wise OwlCurlew InnKeg250£2.40£600.00
16Q3Night OwlCrown InnKeg100£3.20£320.00
17Q4Night OwlFestival HallKeg400£3.00£1,200.00
18Q4Tripel HootCurlew InnBottle70£4.50£315.00
19Q4Wise OwlCrown InnKeg320£2.40£768.00
20Q4Barn OwlBay Tree BistroBottle90£4.00£360.00
21Q4Tripel HootFestival HallKeg300£4.20£1,260.00
22
I2

Ready for more?

The full lesson has 6 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousFilteringNext →Conditional formatting

SQL

  • Topics
  • All lessons
  • Cheat sheet

Excel

  • Topics
  • All lessons
  • Shortcuts

HTML & CSS

  • About the course
  • All lessons

Lurndo

  • Dashboard
  • Leaderboard
  • Premium
  • Account
  • Privacy
Nederlands