Mathew K Analytics

Lesson 11 · Excel: Zero to Expert

Excel Productivity Power Tools: Shortcuts, Paste Special, 3D References | Excel 111

Sheet: Keys Workbook: excel111productivity.xlsx. Download it from this page to see the finished result, or start a new blank workbook and build it step by…

⬇ Download workbook (.xlsx)

What you'll learn

Files for this lesson

Open the workbook in Excel (Microsoft 365 or Excel 2021) and follow along with the video.

📝 Step-by-step guide

Excel 111: Productivity Power Tools and Multi-Sheet Workbooks#

Sheet: Keys

Workbook: excel111_productivity.xlsx. Download it from this page to see the finished result, or start a new blank workbook and build it step by step with the video. Each section below lists exactly what to click and type.

Why productivity tools matter#

Moving around at keyboard speed#

  • Paste: at A3, rows [['Order', 'Month', 'Region', 'Rep', 'Product', 'Units', 'Revenue'], [2001, 'Jan', 'South', 'Ben', 'Stapler', 33, 623.7], [2002, 'Jan', 'West', 'Dev', 'Paper Ream', 12, 93.6], [2003, 'Jan', 'West', 'Dev', 'Desk Lamp', 16, 624], [2004, 'Jan', 'West', 'Hana', 'Paper Ream', 26, 202.8], [2005, 'Jan', 'West', 'Hana', 'Gel Pens', 24, 288], [2006, 'Jan', 'North', 'Ella', 'Stapler', 17, 321.3], [2007, 'Jan', 'West', 'Dev', 'Notebook', 29, 130.5], [2008, 'Jan', 'East', 'Finn', 'Notebook', 23, 103.5], [2009, 'Jan', 'South', 'Ben', 'Stapler', 17, 321.3], [2010, 'Jan', 'North', 'Ella', 'Paper Ream', 34, 265.2], [2011, 'Jan', 'West', 'Dev', 'Paper Ream', 33, 257.4], [2012, 'Jan', 'South', 'Grace', 'Notebook', 12, 54.0], [2013, 'Jan', 'West', 'Dev', 'Desk Lamp', 39, 1521], [2014, 'Jan', 'East', 'Chloe', 'Gel Pens', 30, 360], [2015, 'Jan', 'South', 'Grace', 'Desk Lamp', 36, 1404], [2016, 'Jan', 'West', 'Dev', 'Notebook', 38, 171.0], [2017, 'Jan', 'South', 'Grace', 'Gel Pens', 36, 432], [2018, 'Jan', 'East', 'Chloe', 'Notebook', 30, 135.0], [2019, 'Jan', 'East', 'Chloe', 'Notebook', 39, 175.5], [2020, 'Jan', 'West', 'Dev', 'Stapler', 16, 302.4], [2021, 'Feb', 'West', 'Hana', 'Notebook', 35, 157.5], [2022, 'Feb', 'West', 'Hana', 'Gel Pens', 9, 108], [2023, 'Feb', 'East', 'Chloe', 'Notebook', 29, 130.5], [2024, 'Feb', 'South', 'Grace', 'Notebook', 32, 144.0], [2025, 'Feb', 'East', 'Chloe', 'Notebook', 2, 9.0], [2026, 'Feb', 'South', 'Ben', 'Paper Ream', 40, 312.0], [2027, 'Feb', 'North', 'Ella', 'Notebook', 36, 162.0], [2028, 'Feb', 'East', 'Finn', 'Stapler', 15, 283.5], [2029, 'Feb', 'East', 'Finn', 'Gel Pens', 28, 336], [2030, 'Feb', 'East', 'Chloe', 'Desk Lamp', 37, 1443], [2031, 'Feb', 'West', 'Hana', 'Desk Lamp', 38, 1482], [2032, 'Feb', 'West', 'Dev', 'Notebook', 27, 121.5], [2033, 'Feb', 'East', 'Chloe', 'Notebook', 2, 9.0], [2034, 'Feb', 'West', 'Hana', 'Notebook', 38, 171.0], [2035, 'Feb', 'East', 'Chloe', 'Desk Lamp', 40, 1560], [2036, 'Feb', 'North', 'Ava', 'Stapler', 7, 132.3], [2037, 'Feb', 'East', 'Chloe', 'Gel Pens', 19, 228], [2038, 'Feb', 'West', 'Hana', 'Notebook', 31, 139.5], [2039, 'Feb', 'West', 'Hana', 'Stapler', 22, 415.8], [2040, 'Feb', 'North', 'Ava', 'Notebook', 19, 85.5], [2041, 'Mar', 'South', 'Grace', 'Paper Ream', 36, 280.8], [2042, 'Mar', 'South', 'Ben', 'Stapler', 30, 567.0], [2043, 'Mar', 'South', 'Ben', 'Desk Lamp', 40, 1560], [2044, 'Mar', 'West', 'Dev', 'Paper Ream', 15, 117.0], [2045, 'Mar', 'East', 'Finn', 'Gel Pens', 29, 348], [2046, 'Mar', 'West', 'Hana', 'Notebook', 36, 162.0], [2047, 'Mar', 'West', 'Hana', 'Gel Pens', 34, 408], [2048, 'Mar', 'West', 'Hana', 'Paper Ream', 30, 234.0], [2049, 'Mar', 'South', 'Ben', 'Gel Pens', 33, 396], [2050, 'Mar', 'West', 'Dev', 'Stapler', 33, 623.7], [2051, 'Mar', 'East', 'Finn', 'Stapler', 20, 378.0], [2052, 'Mar', 'West', 'Dev', 'Paper Ream', 29, 226.2], [2053, 'Mar', 'South', 'Grace', 'Stapler', 11, 207.9], [2054, 'Mar', 'South', 'Grace', 'Paper Ream', 16, 124.8], [2055, 'Mar', 'East', 'Chloe', 'Desk Lamp', 36, 1404], [2056, 'Mar', 'West', 'Dev', 'Stapler', 15, 283.5], [2057, 'Mar', 'North', 'Ava', 'Notebook', 9, 40.5], [2058, 'Mar', 'North', 'Ava', 'Gel Pens', 30, 360], [2059, 'Mar', 'West', 'Hana', 'Notebook', 11, 49.5], [2060, 'Mar', 'West', 'Hana', 'Desk Lamp', 40, 1560]]
  • In A1 type Office supplies orders, January to March
  • Format A1: bold, font size 14
  • Format A3:G3: bold, font colour White, Background 1, fill Blue, Accent 1
  • Format G4:G63: number format currency
  • AutoFit the width of column B:G (double-click its right edge)

Sixty orders, running from row four all the way down to row sixty three. Only the first part fits on the screen, so this is a perfect list to practise on.

Control and the arrow keys#

  • Click A4
  • Press Ctrl+Down
  • Press Ctrl+Right
  • Press Ctrl+Up
  • Press Ctrl+Left

Four key presses took us around all four edges of the list. On sixty rows that's handy. On sixty thousand rows it's the difference between one second and a minute of scrolling.

  • Press Ctrl+Home
  • Press Ctrl+End

Control End is a great way to check how big a sheet really is. If it lands far below your data, something was typed or formatted down there, maybe by accident.

Selecting with Control and Shift#

  • Click G4
  • Press Ctrl+Shift+Down

The whole revenue column is selected, G4 to G63, and look at the status bar at the bottom of the window. It says Average four hundred and nine dollars twelve, Count sixty, and Sum twenty four thousand five hundred and forty seven dollars twenty. That's our total revenue, without writing a single formula.

  • Click F4
  • Press Ctrl+Shift+Down

Sixty cells again. The sum of units is one thousand five hundred and seventy nine, and the average is about twenty six point three units per order. The status bar is my favourite quick checker. Select anything, glance down, and you have the count, sum and average instantly.

  • Click A3
  • Press Ctrl+Shift+Right
  • Press Ctrl+Shift+Down

The whole table, A3 to G63, is selected. The status bar count says four hundred and twenty seven, which is sixty one rows times seven columns. Every cell is filled, so nothing is missing.

  • Click A3
  • Press Ctrl+Shift+End

The same range in one key press, A3 to G63.

  • Click D20
  • Press Ctrl+A

Control A inside a block of data selects just that block, the current region. Excel stopped at the blank row two, so the title isn't included. Press Control A a second time and it selects the entire sheet. That's useful too, but usually you want just the data.

Whole rows and whole columns#

  • Click D20
  • Press Shift+Space
  • Click G10
  • Press Ctrl+Space

Column G is selected from top to bottom. The status bar shows a count of sixty one this time, because the heading counts as a filled cell, but the sum is still twenty four thousand five hundred and forty seven dollars twenty, because text isn't added. Combine them with what you learned in video one: Control and Space, then Control, Shift, plus, inserts a new column in two key presses.

  • Click A1

A few more shortcuts worth knowing#

Go To Special: fill in the blanks#

Sheet: Blanks

  • Paste: at A3, rows [['Region', 'Rep', 'Month', 'Sales'], ['North', 'Ava', 'Jan', 2850], ['', '', 'Feb', 1970], ['', '', 'Mar', 3220], ['', 'Ella', 'Jan', 4530], ['', '', 'Feb', 1440], ['South', 'Ben', 'Jan', 1570], ['', '', 'Feb', 3940], ['', '', 'Mar', 1680], ['', 'Grace', 'Jan', 3070], ['', '', 'Feb', 4180], ['East', 'Chloe', 'Jan', 1490], ['', '', 'Feb', 3790], ['', '', 'Mar', 2290], ['', 'Finn', 'Jan', 1390], ['', '', 'Feb', 1640], ['West', 'Dev', 'Jan', 3420], ['', '', 'Feb', 3340], ['', '', 'Mar', 1550], ['', 'Hana', 'Jan', 2430], ['', '', 'Feb', 1660]]
  • In A1 type Exported sales report
  • Format A1: bold, font size 14
  • Format A3:D3: bold, font colour White, Background 1, fill Green, Accent 6
  • Format D4:D23: number format $#,##0

Twenty rows of sales. North is written once in A4, and the four rows below it are empty. The same for South, East and West. The rep names are the same: Ava appears once, then two blanks, then Ella.

  • Starting in F3, type these rows (one value per cell, moving right):

    | Region | Sales | |---|---|

  • In G4 type the formula =SUMIFS($D$4:$D$23,$A$4:$A$23,F4)

  • Fill G4:G7 down (drag the fill handle, or select it and press Ctrl+D)

  • Format G4:G7: number format $#,##0

North shows only two thousand eight hundred and fifty. South fifteen seventy, East fourteen ninety and West three thousand four hundred and twenty. Those are just the first rows of each region. Every blank row is ignored, because a blank cell doesn't equal North. The report looks fine, but the numbers are badly wrong.

  • Click A4
  • Press Ctrl+Down

It stops at A9, South, not at the bottom. The gaps break our keyboard shortcuts too.

Select the blanks, then fill them all at once#

  • Select A4:B23
  • Press F5
  • Press Alt+S
  • Press K
  • Press Enter

Look at the selection now. Only the empty cells inside A4 to B23 are selected, twenty eight of them, scattered all over. The active cell, the white one, is A5, the first blank.

  • Type the formula =
  • Press Up
  • Press Ctrl+Enter

Every blank is filled. A5 to A8 now say North, the rows under South say South, and every rep name is repeated down its group. Each blank got its own equals the cell above. Because the reference is relative, A6 points at A5, which points at A4, so the value ripples all the way down the group.

  • Click A7

The formula bar shows equals A6. A chain of formulas, each copying the one above.

Lock it in with Paste Special values#

  • Select A4:B23
  • Press Ctrl+C
  • Press Ctrl+Alt+V
  • Press V
  • Press Enter
  • Press Esc
  • Click A7

The formula bar shows the plain text North. Safe to sort, filter or pivot. And look at our summary. North is now fourteen thousand and ten, South fourteen thousand four hundred and forty, East ten thousand six hundred and West twelve thousand four hundred. Together that's fifty one thousand four hundred and fifty, every row counted.

Paste Special: more than values#

Sheet: Paste

  • Paste: at A3, rows [['Product', 'Price', 'Supplier update'], ['Notebook A4', 4.5, ''], ['Gel Pens (box)', 12, 13.5], ['Stapler', 18.9, ''], ['Printer Paper', 7.8, ''], ['Highlighters', 6.4, ''], ['Desk Lamp', 39, 42], ['Sticky Notes', 3.2, ''], ['Whiteboard Markers', 9.6, 9.9]]
  • In A1 type Price list maintenance
  • Format A1: bold, font size 14
  • Format A3:C3: bold, font colour White, Background 1, fill Blue, Accent 1
  • Format B4:C11: number format currency
  • AutoFit the width of column B:C (double-click its right edge)

Eight products, from a four dollar fifty notebook to a thirty nine dollar desk lamp. The supplier has new prices for gel pens, the desk lamp and whiteboard markers.

Transpose: turn rows into columns#

  • Select A3:B11
  • Press Ctrl+C
  • Click A14
  • Press Ctrl+Alt+V
  • Press E
  • Press Enter
  • Press Esc

The list now runs across rows fourteen and fifteen. Product names along row fourteen, prices underneath, from A14 all the way to I15. Even the currency format came along. This copy is a snapshot. If a price changes up above, the transposed copy won't follow. For a live flipped version you'd use the TRANSPOSE function, which spills like the dynamic arrays from video five.

Multiply a whole range in place#

  • In E3 type Increase
  • In E4 type 1.05
  • Click E4
  • Press Ctrl+C
  • Select B4:B11
  • Press Ctrl+Alt+V
  • Press V
  • Press M
  • Press Enter
  • Press Esc

Every price went up by five percent. Gel pens went from twelve dollars to twelve sixty. Printer paper from seven eighty to eight nineteen. The desk lamp from thirty nine to forty dollars ninety five, and whiteboard markers to ten dollars and eight cents. No helper column, no formulas left behind, just new values.

Skip blanks: paste updates without wiping data#

  • Select C4:C11
  • Press Ctrl+C
  • Click B4
  • Press Ctrl+Alt+V
  • Press V
  • Press B
  • Press Enter
  • Press Esc

Only three prices changed. Gel pens are now thirteen fifty, the desk lamp forty two, and whiteboard markers nine ninety, exactly as the supplier said. Every other product kept its new five percent price, because the blank cells were skipped.

Text to Columns#

Sheet: Split

  • Paste: at A3, rows [['Customer record'], ['Ava Chen,Bondi,2026'], ['Ben Walker,Fremantle,6160'], ['Chloe Nguyen,Fitzroy,3065'], ['Dev Patel,Glenelg,5045'], ['Ella Smith,New Farm,4005'], ['Finn Brown,Sandy Bay,7005']]
  • Paste: at F3, rows [['Raw text'], ['Ava Chen,Bondi,2026'], ['Ben Walker,Fremantle,6160'], ['Chloe Nguyen,Fitzroy,3065'], ['Dev Patel,Glenelg,5045'], ['Ella Smith,New Farm,4005'], ['Finn Brown,Sandy Bay,7005']]
  • Format A3,F3: bold

Everything is crammed into column A. Ava Chen comma Bondi comma two oh two six. We can't sort by suburb or count customers per postcode like this.

  • Select A4:A9
  • On the ribbon choose Data > Text to Columns
  • Press Alt+D
  • Press Alt+N
  • Press Alt+C
  • Press Alt+F

The records are split. Names stay in column A, suburbs move to column B and postcodes to column C. The postcodes are real numbers now, sitting on the right of their cells.

  • Starting in A3, type these rows (one value per cell, moving right):

    | Name | Suburb | Postcode | |---|---|---|

  • Format A3:C3: bold, font colour White, Background 1, fill Blue, Accent 1

  • AutoFit the width of column A:C (double-click its right edge)

The formula way, and a Flash Fill reminder#

  • Starting in G3, type these rows (one value per cell, moving right):

    | Name | Suburb | Postcode | |---|---|---|

  • In G4 type the formula =TEXTSPLIT(F4,",")

  • Fill G4:G9 down (drag the fill handle, or select it and press Ctrl+D)

  • Format F3:I3: bold, font colour White, Background 1, fill Green, Accent 6

  • AutoFit the width of column F:I (double-click its right edge)

Each row spills into three columns. The same result, but live. Notice the postcodes sit on the left this time. TEXTSPLIT returns text, so two oh two six is the text two oh two six, not a number. Wrap it in VALUE if you need to do maths with it.

  • In D3 type First name
  • In D4 type Ava
  • Click D5
  • Press Ctrl+E
  • AutoFit the width of column D:D (double-click its right edge)

Excel spotted the pattern and filled Ben, Chloe, Dev, Ella and Finn. Flash Fill is perfect for one-off jobs, and like Text to Columns it leaves values, not formulas.

Fill lists: months, days and quarters#

  • In B12 type Jan
  • Fill B12:M12 right (Ctrl+R)
  • In A13 type Mon
  • Fill A13:A19 down (drag the fill handle, or select it and press Ctrl+D)
  • In A21 type Q1
  • Fill A21:D21 right (Ctrl+R)

Twelve months, Jan to Dec, from one word. Seven days, Mon to Sun. And quarters, Q1 to Q4. Full names like January work too, and so does Week 1, where Excel counts the number.

Grouping rows into an outline#

Sheet: Outline

  • Paste: at A3, rows [['Item', 'Amount'], ['Income', ''], ['Salary', 5200], ['Side business', 850], ['Interest', 45], ['Total income', ''], ['Expenses', ''], ['Rent', 2100], ['Groceries', 780], ['Transport', 260], ['Utilities', 310], ['Total expenses', ''], ['', ''], ['Net savings', '']]
  • In B8 type the formula =SUM(B5:B7)
  • In B14 type the formula =SUM(B10:B13)
  • In B16 type the formula =B8-B14
  • Format B5:B16: number format $#,##0
  • Format A3:B3: bold, font colour White, Background 1, fill Orange, Accent 2
  • Format A4,A8:B8,A9,A14:B14,A16:B16: bold
  • AutoFit the width of column A:B (double-click its right edge)

Total income is six thousand and ninety five dollars, total expenses three thousand four hundred and fifty, and net savings two thousand six hundred and forty five.

  • Select 5:7
  • Press Alt+Shift+Right
  • Select 10:13
  • Press Alt+Shift+Right

A new margin has appeared on the left. Each group has a bracket line with a minus button at its end, and at the very top there are two small buttons, one and two. These are the outline levels.

  • Python: code ws.Outline.ShowLevels(1)

The detail rows fold away. We see Income, Total income, Expenses, Total expenses and Net savings. A neat one page summary, and the minus buttons have turned into plus buttons.

  • Python: code ws.Outline.ShowLevels(2)

Quick Analysis#

  • Paste: at D3, rows [['Month', 'Sales', 'Costs'], ['Jan', 18400, 12100], ['Feb', 19650, 12800], ['Mar', 21200, 13350], ['Apr', 20300, 13100], ['May', 22800, 14200], ['Jun', 24150, 14900]]
  • Format D3:F3: bold, font colour White, Background 1, fill Green, Accent 6
  • Format E4:F9: number format $#,##0
  • Select D3:F9
  • Press Ctrl+Q

The Quick Analysis gallery pops up below the selection. Along the top are the tabs: Formatting, Charts, Totals, Tables and Sparklines. Hovering over any option shows a live preview right on the data. The Totals tab, for example, can add a sum, an average or a running total row underneath with one click.

  • Press Esc
  • In D10 type Total
  • Select E10 and click AutoSum (Alt+=)
  • Select F10 and click AutoSum (Alt+=)
  • Format D10:F10: bold, double bottom border
  • AutoFit the width of column D:F (double-click its right edge)

Total sales of one hundred and twenty six thousand five hundred dollars, and total costs of eighty thousand four hundred and fifty.

  • Select D3:F9 and insert a column chart titled “Sales and costs by month”

Automatic subtotals#

Sheet: Subtotals

  • Paste: at A3, rows [['Region', 'Rep', 'Product', 'Sales'], ['North', 'Ava', 'Notebook', 3500], ['North', 'Ella', 'Gel Pens', 1175], ['North', 'Ava', 'Stapler', 1575], ['North', 'Ella', 'Desk Lamp', 2225], ['South', 'Ben', 'Notebook', 1175], ['South', 'Grace', 'Gel Pens', 3325], ['South', 'Ben', 'Stapler', 1100], ['South', 'Grace', 'Desk Lamp', 2200], ['East', 'Chloe', 'Notebook', 1075], ['East', 'Finn', 'Gel Pens', 1650], ['East', 'Chloe', 'Stapler', 2650], ['East', 'Finn', 'Desk Lamp', 3475], ['West', 'Dev', 'Notebook', 1700], ['West', 'Hana', 'Gel Pens', 1550], ['West', 'Dev', 'Stapler', 2750], ['West', 'Hana', 'Desk Lamp', 1950]]
  • In A1 type Sales by region
  • Format A1: bold, font size 14
  • Format A3:D3: bold, font colour White, Background 1, fill Blue, Accent 1
  • Format D4:D19: number format $#,##0

Sixteen rows, four for each region, North, South, East and West.

  • Click A4
  • Ribbon: path Data > Subtotal, ok True

Excel inserted a total row after each region. North Total is eight thousand four hundred and seventy five, South Total seven thousand eight hundred, East Total eight thousand eight hundred and fifty, and West Total seven thousand nine hundred and fifty. At the bottom, the Grand Total is thirty three thousand and seventy five dollars.

  • Click D8

The formula bar shows SUBTOTAL, open bracket, nine, comma, D4 to D7. Nine is the code for sum. SUBTOTAL has a clever property: it ignores other SUBTOTAL cells. That's why the grand total doesn't count the regional totals twice.

  • Python: code ws.Outline.ShowLevels(2)

Just the four region totals and the grand total. A one glance summary of the whole list. Level one would show only the grand total, and level three shows everything again.

Working with several sheets#

  • Go to the Jan sheet
  • Go to the Feb sheet
  • Go to the Mar sheet

Group sheets: type once, fill many#

  • Go to the Jan sheet
  • Press Ctrl+Shift+Pagedown
  • Press Ctrl+Shift+Pagedown

All three tabs are now highlighted in white, and the title bar at the top of the window says Group. That's your warning light: whatever you do now happens on every grouped sheet.

  • In A1 type Monthly expenses

  • Format A1: bold, font size 14

  • Starting in A3, type these rows (one value per cell, moving right):

    | Category | Amount | |---|---|

  • Starting in A9, type these rows (one value per cell, moving right):

    | Total | =SUM(B4:B8) | |---|---|

  • Format A3:B3: bold, font colour White, Background 1, fill Orange, Accent 2
  • Format A9:B9: bold, double bottom border
  • Go to the Subtotals sheet
  • Go to the Feb sheet

The title bar no longer says Group, and Feb has the title, the orange headings, the five categories and the total formula, exactly like Jan. We'll set number formats and widths once each sheet has its numbers. We typed it once and got it three times.

  • Paste: at B4, rows [[4200], [9650], [5480], [1850], [590]]
  • Format A3:B9: number format $#,##0, column width 12
  • Paste: at Jan!B4, rows [[4200], [9800], [6150], [1200], [640]]
  • Format A3:B9: number format $#,##0, column width 12
  • Paste: at Mar!B4, rows [[4200], [10400], [7020], [950], [615]]
  • Format A3:B9: number format $#,##0, column width 12

March's total is twenty three thousand one hundred and eighty five dollars. January came to twenty one thousand nine hundred and ninety, and February twenty one thousand seven hundred and seventy.

Moving between sheets with the keyboard#

  • Go to the Jan sheet
  • Press Ctrl+Pagedown
  • Press Ctrl+Pagedown
  • Press Ctrl+Pageup
  • Press Ctrl+Pageup
  • Go to the Mar sheet

3D references across sheets#

Sheet: Quarter

  • Paste: at A3, rows [['Category'], ['Rent'], ['Wages'], ['Stock'], ['Marketing'], ['Utilities'], ['Total']]

  • Starting in B3, type these rows (one value per cell, moving right):

    | Jan | Feb | Mar | Q1 total | |---|---|---|---|

  • Starting in B4, type these rows (one value per cell, moving right):

    | =Jan!B4 | =Feb!B4 | =Mar!B4 | |---|---|---|

  • Fill B4:D9 down (drag the fill handle, or select it and press Ctrl+D)

Each column copies one month from its own sheet. Rent is forty two hundred every month, and the totals on row nine match the three month sheets.

  • In E4 type the formula =SUM(Jan:Mar!B4)
  • Fill E4:E9 down (drag the fill handle, or select it and press Ctrl+D)
  • Format B4:E9: number format $#,##0
  • Format A3:E3: bold, font colour White, Background 1, fill Orange, Accent 2
  • Format A9:E9: bold
  • AutoFit the width of column A:E (double-click its right edge)

Rent for the quarter is twelve thousand six hundred, wages twenty nine thousand eight hundred and fifty, stock eighteen thousand six hundred and fifty, marketing four thousand, and utilities one thousand eight hundred and forty five. The quarter's total is sixty six thousand nine hundred and forty five dollars. And it matches the sum of columns B, C and D on every row.

  • Starting in A11, type these rows (one value per cell, moving right):

    | Average month | =AVERAGE(Jan:Mar!B9) | |---|---|

  • Starting in A12, type these rows (one value per cell, moving right):

    | Biggest month | =MAX(Jan:Mar!B9) | |---|---|

  • Format B11:B12: number format $#,##0

  • Format A11:A12: bold

  • AutoFit the width of column A:A (double-click its right edge)

The average month cost twenty two thousand three hundred and fifteen dollars, and the biggest was twenty three thousand one hundred and eighty five, which was March.

The secret of 3D references: sheet order#

INDIRECT: a sheet name in a cell#

  • Starting in G3, type these rows (one value per cell, moving right):

    | Month | Feb | |---|---|

  • Validation: range H3, list ['Jan', 'Feb', 'Mar'], input_message Pick a month

  • Starting in G4, type these rows (one value per cell, moving right):

    | Month total | =INDIRECT(H3&"!B9") | |---|---|

  • Starting in G5, type these rows (one value per cell, moving right):

    | Wages | =INDIRECT(H3&"!B5") | |---|---|

The month total is twenty one thousand seven hundred and seventy, and wages are nine thousand six hundred and fifty. Both are February's numbers.

  • Starting in G6, type these rows (one value per cell, moving right):

    | Category | Stock | |---|---|

  • Starting in G7, type these rows (one value per cell, moving right):

    | Amount | =XLOOKUP(H6,INDIRECT(H3&"!A4:A8"),INDIRECT(H3&"!B4:B8")) | |---|---|

  • Format H4:H5,H7: number format $#,##0

  • Format G3:G7: bold

  • AutoFit the width of column G:H (double-click its right edge)

February's stock was five thousand four hundred and eighty dollars.

  • In H3 type Mar

Everything switches to March. The total is twenty three thousand one hundred and eighty five, wages ten thousand four hundred, and stock seven thousand and twenty. One cell drives the whole block.

Project: quarterly regional roll-up#

  • Go to the Summary sheet
  • Go to the North sheet
  • Go to the South sheet
  • Go to the East sheet
  • Go to the West sheet

Build the regional layout once#

  • Go to the North sheet
  • Press Ctrl+Shift+Pagedown
  • Press Ctrl+Shift+Pagedown
  • Press Ctrl+Shift+Pagedown

Four highlighted tabs, and the title bar says Group. Summary isn't included, which is what we want.

  • In A1 type Quarterly sales by product

  • Format A1: bold, font size 14

  • Starting in A3, type these rows (one value per cell, moving right):

    | Product | Q1 | Q2 | Q3 | Q4 | Year | |---|---|---|---|---|---|

  • In A9 type Total

  • In F4 type the formula =SUM(B4:E4)
  • Fill F4:F9 down (drag the fill handle, or select it and press Ctrl+D)
  • In B9 type the formula =SUM(B4:B8)
  • Fill B9:E9 right (Ctrl+R)
  • Format A3:F3: bold, font colour White, Background 1, fill Blue, Accent 1
  • Format A9:F9: bold, double bottom border
  • Format F3:F9: bold
  • Go to the Summary sheet
  • Go to the East sheet

East has the full layout: title, headings, five products, formulas and formatting. So do North, South and West. One build, four sheets, and they're guaranteed to be identical, which is exactly what 3D references need.

Paste each region's numbers#

  • Paste: at North!B4, rows [[3200, 3450, 3100, 3900], [2100, 2250, 2400, 2600], [1450, 1300, 1600, 1750], [2800, 2950, 3050, 3300], [3900, 4100, 3700, 4500]]
  • Format A3:F9: number format $#,##0, column width 11
  • Click F9

North's quarters are thirteen thousand four hundred and fifty, fourteen thousand and fifty, thirteen thousand eight hundred and fifty, and sixteen thousand and fifty. That's fifty seven thousand four hundred for the year.

  • Paste: at South!B4, rows [[2750, 2900, 3500, 3100], [1800, 1950, 2050, 2300], [1200, 1350, 1250, 1400], [3100, 3000, 3350, 3000], [2600, 2800, 3100, 3000]]
  • Format A3:F9: number format $#,##0, column width 11
  • Click F9

South made forty nine thousand five hundred for the year.

  • Paste: at East!B4, rows [[3600, 3800, 3950, 4200], [2400, 2500, 2700, 2850], [1650, 1700, 1800, 1900], [3300, 3500, 3450, 3800], [4200, 4400, 4650, 4900]]
  • Format A3:F9: number format $#,##0, column width 11
  • Paste: at West!B4, rows [[1900, 2100, 2000, 2300], [1500, 1600, 1550, 1700], [950, 1050, 1100, 1150], [2200, 2350, 2400, 2600], [2100, 2300, 2450, 2900]]
  • Format A3:F9: number format $#,##0, column width 11
  • Click F9

West made thirty eight thousand two hundred. East, which you saw go past, made sixty five thousand two hundred and fifty, the biggest of the four.

  • Go to the North sheet
  • Click B4
  • Press Ctrl+Shift+Down
  • Press Ctrl+Shift+Right

The block B4 to F9 is selected, all the numbers and totals, with no gaps. Every region sheet has the same shape, so the summary will line up perfectly.

The Summary sheet with 3D SUMs#

  • Select A3:F9
  • Press Ctrl+C
  • Go to the Summary sheet
  • Click A3
  • Press Ctrl+V
  • Press Esc
  • Clear B4:F9 (Delete key)
  • In A1 type Quarterly regional roll-up
  • Format A1: bold, font size 14
  • Format A3:G9: column width 11
  • In B4 type the formula =SUM(North:West!B4)
  • Fill B4:F4 right (Ctrl+R)
  • Fill B4:F9 down (drag the fill handle, or select it and press Ctrl+D)

The whole company in one grid. Notebooks made eleven thousand four hundred and fifty in Q1, rising to thirteen thousand five hundred in Q4. For the year, Notebooks made forty nine thousand seven hundred and fifty, Pens thirty four thousand two hundred and fifty, Staplers twenty two thousand six hundred, Paper forty eight thousand one hundred and fifty, and Lamps fifty five thousand six hundred. The quarter totals are forty eight thousand seven hundred, fifty one thousand three hundred and fifty, fifty three thousand one hundred and fifty, and fifty seven thousand one hundred and fifty. And the grand total in F9 is two hundred and ten thousand three hundred and fifty dollars.

  • Click C6

SUM of North colon West, exclamation mark, C6. Relative references work across the stack, so when we filled, every cell adjusted, just like an ordinary formula.

Percentage of total#

  • In G3 type Share
  • In G4 type the formula =F4/$F$9
  • Fill G4:G9 down (drag the fill handle, or select it and press Ctrl+D)
  • Format G4:G9: number format 0.0%
  • Format G3: bold, font colour White, Background 1, fill Blue, Accent 1
  • AutoFit the width of column B:G (double-click its right edge)

Lamps are the biggest product line at twenty six point four percent. Notebooks twenty three point seven, Paper twenty two point nine, Pens sixteen point three, and Staplers ten point seven. And the total row shows one hundred percent, which is a nice check that nothing is missing.

A region picker with INDIRECT#

  • Starting in I3, type these rows (one value per cell, moving right):

    | Region | North | |---|---|

  • Validation: range J3, list ['North', 'South', 'East', 'West'], input_message Pick a region

  • Starting in I4, type these rows (one value per cell, moving right):

    | Year total | =INDIRECT(J3&"!F9") | |---|---|

  • Starting in I5, type these rows (one value per cell, moving right):

    | Share | =J4/F9 | |---|---|

North's year total is fifty seven thousand four hundred. We'll format the share in a moment.

  • Starting in I6, type these rows (one value per cell, moving right):

    | Best quarter | =XLOOKUP(MAX(INDIRECT(J3&"!B9:E9")),INDIRECT(J3&"!B9:E9"),B3:E3) | |---|---|

  • Starting in I7, type these rows (one value per cell, moving right):

    | Top product | =XLOOKUP(MAX(INDIRECT(J3&"!F4:F8")),INDIRECT(J3&"!F4:F8"),A4:A8) | |---|---|

  • Format J4: number format $#,##0

  • Format J5: number format 0.0%

  • Format I3:I7: bold

  • Format J3: bold, fill Yellow

  • AutoFit the width of column I:J (double-click its right edge)

North: fifty seven thousand four hundred, which is twenty seven point three percent of the company. Its best quarter was Q4, and its top product was Lamps.

  • In J3 type South

South made forty nine thousand five hundred, twenty three point five percent. Its best quarter was Q3, and its top product was Paper. Different answers, from the same formulas.

  • In J3 type West

West: thirty eight thousand two hundred, eighteen point two percent of the total, best quarter Q4, and Lamps on top.

Region comparison and a chart#

  • Starting in I10, type these rows (one value per cell, moving right):

    | Region | Year total | Share | |---|---|---|

  • In J11 type the formula =INDIRECT(I11&"!F9")

  • Fill J11:J14 down (drag the fill handle, or select it and press Ctrl+D)

  • In K11 type the formula =J11/$F$9

  • Fill K11:K14 down (drag the fill handle, or select it and press Ctrl+D)

North fifty seven thousand four hundred, South forty nine thousand five hundred, East sixty five thousand two hundred and fifty, and West thirty eight thousand two hundred.

  • Format J11:J14: number format $#,##0
  • Format K11:K14: number format 0.0%
  • Format I10:K10: bold, font colour White, Background 1, fill Orange, Accent 2
  • AutoFit the width of column I:K (double-click its right edge)

East leads with thirty one percent of all sales. North has twenty seven point three, South twenty three point five, and West eighteen point two.

  • Select I10:J14 and insert a column chart titled “Year sales by region”

Four columns, East clearly in front, then North, South and West, with the exact totals printed on top.

  • Select J11:J14

The status bar sum is two hundred and ten thousand three hundred and fifty, exactly the grand total in F9. The regions and the products agree.

  • Conditional formatting on G4:G8: highlight data_bar
  • Conditional formatting on K11:K14: highlight data_bar
  • Go to the Summary sheet

Now the structure is obvious at a glance: one green summary, followed by four blue regions.

Test the roll-up#

  • Go to the Summary sheet
  • In J3 type North

Everything followed. Lamps in Q4 went from fifteen thousand three hundred to fifteen thousand eight hundred, and the grand total is now two hundred and ten thousand eight hundred and fifty. The picker shows North at fifty seven thousand nine hundred, twenty seven point five percent, and the region table and the chart updated too. One change, on one sheet, flowed through the 3D SUMs, the shares, the INDIRECT formulas and the chart.

  • Click A1
  • Press Ctrl+S

Why build it this way#

Recap and what's next#

Found this useful?

All lessons, notebooks and datasets here are free. If they helped you, a coffee keeps new lessons coming.