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

8. Charts

Excel

8.13 Dynamic Chart from a Table

1. Verify that the growing Table and the chart are connected

A trainee adds January sales below a six-month report and sends the updated workbook to a manager. The worksheet clearly shows January, but the chart still ends in December. Adding a value and adding it to a chart source are separate events. An Excel Table can expand as new rows are added. A chart created from its data can follow that expansion in an appropriate workbook setup. Build the connection deliberately and check it with a known new row.

This example uses a fictional seller's monthly activity, inspired by how shop owners might review sales on a platform such as Amazon. The values are practice data and describe no actual business. We will start with the course's July to December Pune fixture, append one January record and compare a live-linked view with a known static snapshot. Then we'll build a Table with a calculated rate and test what happens to a valid zero and an undefined rate as the source grows.

Make the source chain inspectable. Check the input row, Table extent, selected category and value series, visible chart point and caption after an edit.

Read four related but different worksheet concepts

  • Range. An address such as A1:B7 identifies cells. A fixed chart source can keep the same extent even when adjacent data changes. Verify the real selection.
  • Excel Table. A named Table has a header and an identifiable range. Rows can be added inside or beside it through supported expansion behavior. Striping by itself does not prove a range is a Table.
  • Structured reference. A worksheet formula such as SUM of a named Table column follows the Table membership. This proves what the formula evaluates, while the chart still needs its own series check.
  • Chart source. Categories and values come from specific source definitions. Updating a worksheet cell inside those definitions is different from increasing the number of data points.
  • Refresh. An external query or PivotTable may update only after a refresh. Adding raw rows, refreshing a loaded report and extending a chart are distinct checks.

Write down the intended workbook behavior. For this lesson, one added monthly Table row should supply one new date and amount, while the fixed teaching snapshot retains its original period. If a Table-linked chart in your Excel build fails that test, inspect and repair its definition. Do not treat the basic Excel Table feature as a guarantee that every plotted range in a workbook will update automatically.

2. Lab. Append January and verify a seventh plotted value

Goal. Move from six approved numeric months to seven, and prove whether each chart includes the new record. Enter A1:B7 on a sheet called ChartData. Use real first-of-month dates in column A. For July enter =DATE(2026,7,1), then enter the corresponding dates August through December. Use a meaningful date display such as month and year so January belongs to the right annual sequence.

Fictional Pune monthly sales before and after a controlled append
Month startSales (₹ lakh)Role in the lab
2026-07-013.9Initial Table row
2026-08-014.1Initial Table row
2026-09-015.9Initial Table row
2026-10-015.0Initial Table row
2026-11-016.1Initial Table row
2026-12-014.6Initial Table row
2027-01-015.2Append during the test
Two monthly line charts begin with the same six observations. The copy of the original fixed range ends at December 4.6. The updated Table-linked chart also includes January 5.2.
Verify the actual January category and value. The fixed snapshot illustrates a known six-row input, not a failing Table.

Trace a new row from input to plotted point

  1. Create the named Table

    Select A1:B7 and use Insert Table or another supported Excel Table command. Confirm headers Month and Sales, and name it tblMonthly. Verify that the Table extent currently ends at row 7.

  2. Build a matched chart and a fixed snapshot

    Select the appropriate Table data and insert a line with markers. Check that categories are the six months and values are the six sales. In a separate sheet copy the original six rows as a deliberate fixed snapshot and create a second chart from that range. Keep it separate from the growing source.

  3. Add the verified new period inside the Table

    Insert a Table row or type directly below its last data row on a work copy and verify expansion. Enter January's actual date and sales 5.2. The Table should contain seven numeric values, regardless of how the formatting looks.

  4. Verify both series definitions

    Inspect category and values where your build exposes Select Data. The linked view should include January and plot 5.2; the fixed snapshot still ends at December 4.6. If the live chart does not update, check whether the source is still fixed, filtered, or linked to a different helper range.

  5. Prove the new scope

    The Table sum is now 34.8 lakh, compared with the original 29.6. The last point is 0.6 lakh above December. Update the chart title or scope text to include January and confirm the seven-period chart after reopening or refreshing on the target build.

All months total =SUM(tblMonthly[Sales])
Numeric month count =COUNT(tblMonthly[Month])
Numeric sales count =COUNT(tblMonthly[Sales])

Fix the first link that broke

Begin with the worksheet range. Use Table Design or the applicable resize command to confirm the new row belongs to the Table. An extra row typed beyond a blank gap can be outside the intended extent. If you have a Total Row, insert a data row inside the Table in the required position rather than mistaking its summary for a month. Check exact column names in structured formulas and inspect the numeric month on the new row. Then inspect the chart. Editing its title cannot bring a missing category into the selected source.

Take a source snapshot before a major resize in your practice workbook. If an additional helper or total cell is immediately next to the Table, an expansion or paste might include unintended columns or row labels. Reserve a clean work area. A table with more cells can still show the correct chart only if the selected series is the intended one. Check that the chart added a fourth or seventh period as expected and did not add a new measure series from an adjacent calculation.

3. Check whether the view follows a filter or all rows

Compare the Table population with what the chart actually shows

After adding January, use a work copy and filter July out of the Table. The seven rows still exist, and SUM of the Table Sales amounts still gives 34.8. The six remaining visible observations sum to 30.9. On chart types and Excel builds that omit hidden rows in their current settings, the chart should no longer show July. Inspect the categories and the chart's hidden-data setting rather than assuming every version treats Table filtering, manual hiding and chart-specific filters identically. Clearing the filter should restore the original view in this test.

All sales =SUM(tblMonthly[Sales])
Visible sales =SUBTOTAL(109,tblMonthly[Sales])
Visible numeric sales =SUBTOTAL(102,tblMonthly[Sales])

These SUBTOTAL examples are worksheet checks for the Table's visibility. The 100-series function numbers ignore manually hidden rows as well as rows removed by a filter. Filter-excluded rows are omitted for both number sets. A chart can still have its own filters or data settings. Compare these formula results with the picture before labeling a KPI visible sales. If the chart is intended to show all rows, say so and check that the shown categories match that intention. Do not display a visible-subset total next to an all-source chart without explaining the difference.

Show how dates and amounts can both be present but wrong

Try a deliberately incorrect axis label range on a disposable copy, leaving the values unchanged. Give the chart seven dates from a separate period shifted one month. Seven marks and seven labels still appear, but January's 5.2 may now be attached to February. Check category/value pairing by source record rather than count alone. The approved new row has month-start 1 January 2027 and value 5.2. A verification should identify both. Restore the exact Table month range and recheck the label for the last point.

If the Table only stores the text Jan, the chart may show an unambiguous-looking month across a year boundary while sorting by text. Use real chronological dates in the cell values, then choose an appropriate display format. If the report spans multiple years, show the year where needed. If an out-of-order row is added, sort the complete Table by the date field where doing so fits the report. Verify the selected chart's order and intended date/category axis after the sort.

4. Lab. Extend a calculated rate and preserve an undefined period

Goal. Verify a calculated Table column, then test a new true zero and a new period with no denominator. Create a separate sheet called Bookings. Use the first three columns below. At first enter only Jan through Mar. Use one date per period and numeric values. The rate and status columns show what the formulas should produce after all five rows are added.

Fictional registration windows and verified booking rates
MonthEligibleBookedExpected rateExpected status
2026-01-01201260%Verified
2026-02-01251560%Verified
2026-03-01403075%Verified
2026-04-011000%Verified
2026-05-0100No eligible records
The example rate series contains January 60 percent, February 60, March 75 and April zero. May has a month category with no defined rate because the denominator is zero.
Five months can appear in the source while only four rates are defined. April's zero is a measured result, and May's rate is unavailable.
  1. Make the first three rows into a Table. Select the initial rows and headers. Create tblBookings and include two new fields Rate and Status in the Table. The field names in the formulas should match exactly.
  2. Calculate the rate per row. Enter the Rate formula in the first Table data row. It uses the current row's fields. Format the output as percentages. A calculated Table column often fills automatically; confirm all three results.
  3. Keep status independent of appearance. Enter the displayed Status formula and verify the three rows are Verified. Review any invalid combination or missing source value. Keep Month, raw Eligible and raw Booked in your Table.
  4. Append April and May. Insert or add data rows in the Table, then check formula extension. April has a confirmed zero out of ten and counts as a numeric rate, while May has zero eligible and stays blank-looking. If the formulas did not fill, inspect the calculated column state before plotting.
  5. Verify the selected chart fields and the actual display. Plot Month and Rate intentionally, keeping the audit columns outside the chart. In a version where chart definitions use worksheet ranges, use Select Data to check which series is included. Compare the categories and numeric points. Blank-looking formula output may not behave like a genuinely empty cell on every chart. Test it and preserve a visible review note.
Rate =IF(AND(ISNUMBER([@Eligible]),ISNUMBER([@Booked]),[@Eligible]>0,[@Booked]>=0,[@Booked]<=[@Eligible]),[@Booked]/[@Eligible],"")
Status =IF(ISNUMBER([@Rate]),"Verified",IF(AND(ISNUMBER([@Eligible]),ISNUMBER([@Booked]),[@Eligible]=0,[@Booked]=0),"No eligible records","Review"))
Number of confirmed rates =COUNT(tblBookings[Rate])

The first three periods have 57 bookings of 85 eligible, a pooled rate of about 67.06 percent. After April the same 57 bookings have a denominator of 95, giving 60 percent. May contributes no new eligible records and no confirmed rate. It does not change the pooled result. The Table has five dated records and four numeric rates. Keep those checks beside the figure. A status column confirms why the number of valid points differs from the number of source dates.

Use a tested strategy to display undefined values

For exact chart presentation, compare a blank-looking formula output with a genuine empty cell in a disposable test. Excel's hidden and empty settings vary by chart type and version. A chart may show an unintended zero for some formula outputs. If that happens, use a clearly documented missing-value helper supported by the target chart and check its actual behavior, or chart a verified numeric subset and state that May is unavailable in the adjacent table. Do not present a May zero mark as a result of no eligible records. Be explicit about the chosen way to preserve the time position or describe the omitted record.

Check a counterexample that changes the source rather than its label. On a copy change April's Booked from zero to 3. The monthly rate becomes 30 percent, and the pooled total becomes 60 out of 95, about 63.16 percent. May remains unchanged. If the chart or caption does not update, inspect the formula and source range separately. Restore the original verified April after the experiment.

5. Distinguish data edits, recalculation and refresh

Start at the oldest unchanged link in the report

Use three columns on a small audit sheet: Source data, Report Table and Chart. Say where each gets its values. In the first lab there is one edited Table on the worksheet, so adding a row can be the source action itself. In a workbook that imports a file, that external source can change without altering the loaded Table immediately. If a worksheet formula uses a calculated column, one input can change while calculation mode or a stale stored output affects the dependent value. If the Table and helper show the new month and amount but the chart does not, inspect the actual series and filters last.

For a controlled query practice on a version that supports it, start from a separate source CSV with the first six monthly values or an approved small local source Table. Set the imported Month type intentionally and check the chart reads the loaded report Table. Add one approved practice row to the source, not to a hand-typed position in the query output. Refresh the loaded query as documented for that worksheet. A Preview Refresh inside Power Query can update what you see in its editor without updating the loaded worksheet table. Verify the actual output rows and latest category before finishing. On an installed build without the chosen query tools, use the manual Table lab and keep the same verification sequence.

If a refresh is scheduled or runs in the background, wait until the updated data are actually available before checking the chart. A menu click is not evidence that it finished. Record the latest approved month and its value on the worksheet. Compare them to the chart after refresh and reopening. When the application displays a warning or error, distinguish old cached values from new verified ones. Explain which report version is being shown. An unchanged graph can be the correct picture of an unchanged loaded range.

Trace a Table and a PivotTable as separate objects

Sometimes a regular Excel Table is the source for a PivotTable or PivotChart. Adding an approved row to the underlying Table may not immediately update the grouped PivotTable result. Check the source Table, then refresh the relevant pivot when required, and inspect the stored report summary or chart filters. A dashboard based on a pivot can intentionally show totals by year rather than one month per mark. Decide which grouping was requested before assuming every input row needs one plotted category.

For this exercise, ChartData contains a verified row per month. If instead there are three Pune transactions in January, a verified monthly summary must combine them into the correct monthly amount. A table growing by three transaction rows can produce one new monthly point or update an existing month. The underlying grain matters. Choose either a chart of approved period summaries or a chart of individual transactions according to the question. Label the month or transaction grain in the chart title and audit.

Keep future formulas, chart sources and dates aligned

Adding a row at the right location is part of the Table mechanism. To see a formula mapping issue, add January's date correctly, and temporarily leave the sales cell as numeric text. The Table contains seven dates but only six numeric sales. A chart can display a missing or misleading mark even though the row count looks right. Check COUNT in both columns and compare the last date to the last numeric amount. Convert a value only if its source and intended numeric type are confirmed. Restore numeric 5.2 on the work copy.

Now imagine an import appends that same January record twice. It would produce eight source rows and a sales sum of 40.0 rather than 34.8. A chart can now have two January records at one calendar label or two positions depending on the chosen axis. Verify one record per expected period when that is the source contract. If two rows represent separate shipments rather than two monthly summaries, change the grain appropriately before charting. A duplicate detection rule needs to distinguish a replay from a legitimate component.

6. Build an acceptance check before reusing the workbook

Write an expected state before testing each change

  1. Start with a known input and scope. Confirm six months, 29.6 lakh and December 4.6. Keep the approved control before adding January.
  2. Test growth. Enter one date and amount, confirm Table membership, and inspect the chart's seven dates and one intended sales series. Record January 2027 and 5.2 independently.
  3. Test filters and restore them. Exclude July on a copy, compare 34.8 all rows with 30.9 visible rows, and check the chart scope. Clear practice filters and verify all seven categories again.
  4. Test a real zero and undefined rate. The Bookings example has five date rows and four confirmed rates. Check April on the zero line and May as unavailable under a verified display rule.
  5. Test a smaller or empty valid selection. Check what the workbook shows if no rows are in scope. Avoid a blank chart next to a stale total or title describing a full period. Provide a simple no-data state in the companion text.
  6. Save and reopen the handoff version. Read the actual chart and labels after reopening in the platform readers use. Preserve an exact summary and source counts if a chart can render differently there.

Use another dynamic feature only when it preserves the intended contract

Microsoft also documents variable-length dynamic-array references for charts in current Excel releases including Excel 2024. That is a separate option from sourcing a named Table. Check whether the installed version supports the particular feature you want. A spilled formula can grow while a chart tied to a fixed range still remains the old size. It can also be blocked or return an unexpected dimension. Use a known input-change test. Later lessons show a selected helper, a rolling range and a series toggle. Choose the simplest mechanism that matches the verified requirement.

If the audience needs a fixed published period, a static snapshot can be valid. In the lab, the independent six-month chart intentionally describes July to December and stays at 29.6 lakh. Give it the correct title and a date note. A fixed version need not be defective. It becomes a defect when the workbook claims the figure includes new input that it did not receive. Keep dynamic report and monthly snapshot labels clear so nobody mistakes one for the other.

Use the Excel Task Hub for an appropriate source-range exercise. Try a two-row Table and prove how the chart reacts to a third row. Continue to Drop-down Driven Dynamic Chart to see a different trigger. There, a control changes the values that feed a known period range even when the underlying source has not added a row.

Test when the new row is outside the Table despite matching styles

On a fresh copy with six original periods, leave one blank row below the Table and enter January under that gap. Check whether it actually joined the Table. If it did not, the structured SUM should remain 29.6. The adjacent cell can still be colored to look like a normal source row. Use the Table's documented resize or insert action to include exactly the intended data rows. If widening the Table would include a genuine blank period, decide explicitly whether the missing period requires a dated review record. Do not include an unexplained gap solely to reach the new amount.

After adding January inside the Table, select the Table range and confirm the header stayed in the right location. Test deliberately writing a new column next to it, such as Notes. Excel may add a Table column under expansion rules. That does not establish which series the chart should show. Inspect what the chart includes and remove any unintended series or point references from the chart definition. Keep text notes in an appropriate sheet field. Expansion needs a dimensional check in both directions when additional columns are possible.

Consider shrinking a report to six approved months for a publication snapshot. A resize changes which cells belong to the Table. It can leave values outside the new region. Keep those records in a documented source backup or snapshot if needed. Verify parent formulas and charts read the intended extent. A shrunk Table should not be mistaken for six complete records if an unexpected filtered source is driving it. In a practice file you can compare the former and new Table boundaries directly instead of using color.

Keep a caption in sync with a visible subset

For the manual Table exercise, suppose a caption should report the most recent currently visible month. The named Table Month values are verified numeric dates. Use a visible numeric count first, then a visible maximum date only when there is at least one matching date. In a supporting Excel workbook try the worksheet phrase below. TEXT uses English chart labels in this sample and may need the corresponding codes in another locale.

=IF(SUBTOTAL(102,tblMonthly[Month])=0,"No visible months","Latest visible month: "&TEXT(SUBTOTAL(104,tblMonthly[Month]),"mmm yyyy"))

Before applying filters, that expression should name January 2027. Exclude January and the visible latest date is December 2026. Exclude all months and the caption states no visible months rather than formatting an empty maximum as a date. The rule describes Table visibility. It should only be used as the caption of a chart whose displayed range has been verified to follow the same visibility. If you use a chart-only series filter or show hidden data, define a different caption rule.

Compare that caption with a static report title. You can keep the larger heading as Pune sales by month and place the live date scope immediately below it. The source name and unit remain stable while the date changes. If the chart supports linking a title to a cell, verify the exact reference after copying it between sheets. Don't type over a linked title to make a quick cosmetic update and assume it remains linked. When the app cannot link the title, keep the live worksheet text adjacent and review the copied chart before sharing.

Distinguish a changed amount from a changed number of observations

On a disposable version adjust December from 4.6 to 4.9 while retaining January 5.2. The series still contains seven dated categories and only one month moves upward by 0.3. The total becomes 35.1. A correct Table source can update an existing value without changing the row count. Compare that edit to the original test, where a new month extends the series. A chart responding to the first mutation might still need a range adjustment for the second.

Likewise, changing an existing month label should not add a row. If a chart already has a fixed source of the first six inputs from a separate snapshot, that snapshot will not receive live changes either. Testing the separate snapshot demonstrates its planned independence. To test actual growth on the current chart, make the new record in the named Table and inspect every chart link after the edit. Separate an intentional distinction between static and live reporting from a defect in the current chart.

A displayed series definition may show ordinary cell addresses even if the workbook adjusts them when its Table grows. Do not decide whether a chart is dynamic based only on the words you see in one formula or dialog. Inspect its behavior after the known expansion. Conversely, a worksheet helper with a structured Table formula may be dynamic when the selected chart values are not. Write down which object owns each reference. Then compare the actual series extent before and after the test. This gives more reliable evidence than assuming any particular formula display style proves a linked object relationship.

Keep headers meaningful when replacing a query result or Table source. If a new feed renames Sales to Gross sales, compare its definition and only reassign the chart after the intended metric is confirmed. A perfectly expanded range can carry a different measure. Use a source comparison row that checks units in addition to name, value and date.

Use accepted source definitions for newly imported rows

In a rate chart, a row can be inside the Table but fail a source rule. As a negative control for Bookings, add June with 5 Eligible and 8 Booked. Since Booked is supposed to be a subset of Eligible, this produces Review and no verified rate. The row exists in the audit but should not supply a numerical value to a verified-only chart or pooled result. A formula and chart range updated successfully. The reason for suppression is a data validity rule, not a feature failure. Keep that distinction visible for the next reader.

For published rates, use one deliberate population. If you calculate the pooled value for Verified rows only, add numerator and denominator from the same set before dividing. If only April and May are handled, May contributes zero to both counts and no independent valid rate. If an invalid June row sneaks into a pooled formula, the numerator and denominator can imply a misleading result. Test exact raw totals, valid counts and expected exclusions together before using a chart summary. A separate status filter should use status, not simply hide all zero-looking cells.

Prepare a simple reopen and recover test

Write a short note with the intended final record and state. For the first lab it might say 7 months, latest January 2027 sales 5.2, all-row total 34.8, no filter. Save a copy, reopen it in the intended platform and check the same facts. If the series appears shorter, compare the worksheet and chart definitions instead of immediately retyping the latest data. If the chart uses a helper sheet that was not included in an exported copy, identify those missing dependencies explicitly.

Use an exact table fallback during that check. It should list dates and readings so a course reader can verify the result without inspecting workbook internals. A fixed image may intentionally show the last verified month even when a separate data workbook later updates. Give the image a date and scope so it can be read correctly. The dynamic file and the archived report are different deliverables. Check the intended audience has the version it expects.

7. Interview questions with worked answers

How would you create a chart that includes new rows?

Build it from a named Table over the intended headers and data. Add a single known trial period, verify the Table actually expanded, and inspect categories, values and scope label in the chart. If it uses a separate fixed helper, extend or re-link that source deliberately. A Table alone does not prove the chart grew.

Why might the Table grow while the chart stays unchanged?

The chart could point at a fixed series, the wrong worksheet or an unchanged helper. A new source row could be hidden or the loaded query still stale. Check the source chain in order and compare the exact latest month and amount in each stage.

Will filtered Table rows affect SUM and the chart in the same way?

Ordinary SUM includes the numeric rows in the named Table column across that filter. SUBTOTAL can calculate the visible result. The chart can depend on its own hidden-data and filter settings, so inspect its categories. Label which population a visible total describes.

How do you keep a month with no eligible records distinct from zero bookings?

A zero numerator and positive denominator give a known zero. A zero denominator makes the rate undefined. Keep numeric types and a source status, then test the displayed behavior of blank-looking or missing outputs before treating a plotted zero as measured.

What is the difference between updating a Table and refreshing a query?

A direct spreadsheet edit changes the live source Table. A query-based workbook may need a refresh of its loaded result and checks for later calculations or PivotTables. A refreshed preview can be different from the loaded range. Verify source amount and chart series independently.

8. Predict the resulting source, plot or total

Which January value should the growing chart show?

5.2 lakh in January 2027, following December 4.6. The Table has seven numeric dates and seven numeric values. Check both sources and the label after the append.

What are the all-row and visible-row amounts after filtering July out?

The full seven rows total 34.8 and the visible six total 30.9. The figure should clearly say whether it shows all seven or just the visibly selected six.

Does a fixed six-month snapshot necessarily need to show December's update and January?

A deliberately static snapshot preserves its specified period and source values. The current report needs checked data and extent. Label both roles before comparing them. A static six-month output cannot stand in for a seven-month claim.

Why is April a plotted zero and May an undefined rate?

April has 0 of 10 verified eligible records, so its rate is zero. May has no eligible denominator. Keep that row's status and verify the chart does not imply a measured May zero.

Which test catches seven marks paired with the wrong dates?

Check the date and value together by source row. The last category should be January 2027 paired with 5.2. A simple count of seven marks cannot validate the month labels.

9. Six reminders

  • Grow the actual Table.

    Confirm new rows belong to its named range and calculated columns.

  • Check chart linkage.

    Data values and category labels must extend together.

  • Inspect filters.

    Match scope for chart, table, total and title.

  • Keep missing rates visible.

    Distinguish measured zero, missing values and undefined denominator.

  • Refresh the right object.

    Source file, loaded query, pivot and chart can update separately.

  • Verify before sharing.

    Use a known append, compare exact figures and confirm the saved result.

Microsoft references