logo
search
Chart & Visualization Issues

How to Dynamically Set an Excel Chart Axis from Filtered Data

Algirdas JasaitisAlgirdas Jasaitis Oct 13, 2026 869 views

Question details

The user needs a chart's horizontal date axis to automatically adjust its end point based on slicer selections or visible filtered data in a financial model.

How to Dynamically Set an Excel Chart Axis from Filtered Data
Product
Excel
Device & OS
not provided
Scenario
Managing a financial model where chart visualizations need to toggle between forecast dates and actual actuals using slicers.
Observed behavior
The chart requires dynamic horizontal axis adjustment to reflect only the latest available date from the filtered dataset without manual axis resizing.
Before you start

Ensure your data is organized in a tabular format without blank rows or columns, and that your date column is formatted properly as dates rather than text.

Solution 1Recommended

Use Dynamic Named Ranges and Helper Formulas

Leverage Excel's Name Manager and formulas like FILTER or OFFSET to create a dynamic data source that updates the chart axis based on slicer selections.

By defining named ranges with dynamic formulas, you can link your chart's axis directly to the filtered results of your data. This ensures the chart only plots visible, relevant dates.

1
Create a Helper Range

Set up a helper column or cell using the FILTER or MAXIFS function to extract the visible date range based on the slicer's active criteria.

2
Define a Dynamic Named Range

Navigate to the 'Formulas' tab and click 'Name Manager'. Click 'New' and use a formula like OFFSET or INDEX to define a dynamic range referencing your helper data.

3
Apply Named Range to Chart

Right-click your chart and choose 'Select Data'. Edit the Horizontal (Category) Axis Labels and replace the static range with your newly created named range (e.g., =Sheet1!DynamicDates).

4
Adjust Hidden and Empty Cell Settings

If using hidden rows from a filter instead of dynamic arrays, click 'Hidden and Empty Cells' in the 'Select Data' dialog and ensure 'Show data in hidden rows and columns' is unchecked.

Use Dynamic Named Ranges and Helper Formulas
Workbook Structure: Always prefix your named range with the sheet name or workbook name when adding it to the chart data source.

Easily Create Dynamic Charts in WPS Spreadsheet

WPS Spreadsheet supports advanced dynamic formulas like MAXIFS, FILTER, and OFFSET, enabling you to build responsive charts and financial models that automatically update based on your slicer and filter selections.

  1. 1. Open Your Data: Launch WPS Spreadsheet and open your existing financial model.
  2. 2. Define Named Ranges: Go to the 'Formulas' tab and select 'Name Manager' to create your dynamic data ranges using OFFSET or INDEX.
  3. 3. Insert the Chart: Insert your chart via the 'Insert' tab and right-click to choose 'Select Data'.
  4. 4. Link to Dynamic Data: Edit the Series and Axis inputs to reference your new dynamic named ranges, allowing seamless chart updates as slicers change.
Full compatibility with Microsoft Excel (.xlsx) formats and standard chartsRobust formula support including OFFSET, INDEX, and dynamic array functionsIntuitive Name Manager for building dynamic chart sources effortlessly
QA img-9

Frequently Asked Questions

Why isn't my Excel chart updating when I use a slicer?

If your chart is linked to a static data range, slicers might only hide rows without updating the chart's axis bounds. To fix this, ensure your chart's 'Hidden and Empty Cells' setting is configured to not show hidden rows, or use dynamic named ranges for the data source.

Can I make the chart axis dynamically adjust its maximum and minimum bounds?

Excel does not natively support formula-driven axis bounds in the format axis menu without VBA. However, by using dynamic named ranges for your chart data source, the chart will automatically plot only the data points in that range, effectively making the axis dynamic.

Are FILTER and MAXIFS functions supported in WPS Office?

Yes, WPS Spreadsheet supports advanced logical and array functions, including MAXIFS and FILTER, allowing you to build the exact same dynamic charting logic as you would in Microsoft Excel.