Ravindra BagaleCourses & study guides मराठी Track your progress

8. Charts

8.15 Named Ranges with OFFSET (Rolling Charts)

Use when you need, for example, the last 6 months automatically, in any Excel version.

=OFFSET(reference, rows, cols, [height], [width]) returns a range shifted from a starting cell.

Steps in Excel

  1. Data in ChartData!A2:A100 (months) and B2:B100 (Pune), filled from the top without gaps.
  2. Formulas › Name Manager › New… Name LastMonths, Refers to:

    =OFFSET(ChartData!$A$1, COUNTA(ChartData!$A:$A)-6, 0, 6, 1)

  3. New name LastSales, Refers to: =OFFSET(LastMonths, 0, 1).

  4. Insert any chart › Chart Design › Select Data › Edit the series › Series values: ='Blinkit_Maharashtra.xlsx'!LastSales (workbook or sheet name is required) › Horizontal (Category) Axis Labels › Edit › ='Blinkit_Maharashtra.xlsx'!LastMonths.
  5. Add a new month row – the chart shows the latest 6 months.

OFFSET is volatile (recalculates on every change); on large models prefer an INDEX-based name: =INDEX(ChartData!$A:$A,COUNTA(ChartData!$A:$A)-5):INDEX(ChartData!$A:$A,COUNTA(ChartData!$A:$A)).

Ravindra Bagale's Tip

When putting a named range into a chart series, many students write just =LastSales and Excel gives an error. The series needs the workbook/sheet name – ='File.xlsx'!LastSales. And for COUNTA to work correctly, don't leave empty cells in the middle of the column or notes below it.

Practice tasks (10+)

Try these on a blank sheet. Open a hint only if you are stuck. No quiz — just practice.

1. Rebuild the smallest example of named ranges with offset rolling charts on a blank sheet for BrightLedger Finance.

Hint: Use only the steps on this page. Keep numbers numeric.

2. Change one input for Priya Deshmukh and confirm the result updates.

Hint: If the result is stuck, check absolute vs relative references.

3. Repeat the same steps with a £ or € value for Emma Clarke.

Hint: Formatting must not break SUM.

4. Write the result meaning in one plain sentence next to the cell.

Hint: Imagine explaining it to a new joiners.

5. Add a second row and fill the method down.

Hint: Double-click the fill handle if the pattern is consistent.

6. Break the example on purpose, then fix it using this lesson.

Hint: Common break: text instead of a number.

7. Apply named ranges with offset rolling charts to a 5-row made-up BrightLedger Finance table.

Hint: Keep column headers clear.

8. Check your answer with a simple total or COUNT.

Hint: A wrong total usually means a format or key mismatch.

9. Swap ₹ and $ on one column and re-check totals.

Hint: Stored values stay the same; only the display changes.

10. List two mistakes beginners make with named ranges with offset rolling charts.

Hint: Look back at the tip box on this page.

11. Teach the steps out loud in under one minute.

Hint: Why → What → How.

12. Save the sheet as BrightLedger_practice.xlsx.

Hint: Use a clear file name for class.

Loading practice tasks...

  1. Total nights (Easy): Add up Nights in D2:D11.
  2. Average rate (Easy): Average of the Rate per night ($) column, rounded to 2 decimals.
  3. Rows in Standard (Easy): How many rows have Category/group "Standard"? (column B)
  4. Largest nights (Easy): The largest value in D2:D11.
  5. Nights for Standard (Medium): Total of the Nights column where Room type is "Standard".
  6. Standard in Seattle (Medium): Total of the Nights column where Room type is "Standard" and City is "Seattle".
  7. Best in Standard (Medium): Largest E2:E11 value where B is "Standard".
  8. Value of row 2 (Medium): Multiply the first-row Nights by the first-row Rate per night ($).
  9. Look up Aarav Shah (Medium): The Nights for "Aarav Shah" (use a lookup on column A).
  10. Total value (Hard): Sum of D times E for all rows.
  11. Share of Standard (Hard): Share of D2:D11 that is "Standard", rounded to 3 decimals.
  12. Total "Nights" for Standard (Hard): Add up the "Nights" column for the rows where "Room type" is "Standard".
  13. Above average? (Hard): "Above" if E2 is above the average of E2:E11, else "Below".

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Named Ranges With Offset Rolling Charts?
Card 1: What is Named Ranges With Offset Rolling Charts? · Download PNG
Revision card 2: Tiny example — Named Ranges With Offset Rolling Charts
Card 2: Tiny example — Named Ranges With Offset Rolling Charts · Download PNG
Revision card 3: Checklist — Named Ranges With Offset Rolling Charts
Card 3: Checklist — Named Ranges With Offset Rolling Charts · Download PNG