Chart & Visualization Issues

How to Update an Excel Pie Chart Based on Today's Date

Steven ParkerSteven Parker Oct 28, 2026 869 views

Question details

The user needs to create a pie chart that updates automatically when the current date falls between a specific start and end date.

How to Automatically Update an Excel Pie Chart Based on Today's Date
Product
Excel
Device & OS
not provided
Scenario
Creating dynamic date-based visualizations for daily reports or tracking dashboards.
Observed behavior
The target value for the pie chart needs to be populated conditionally if today's date is within a given range, allowing the linked chart to recalculate and display automatically.
Before you start

Ensure your spreadsheet is set to automatically recalculate formulas so the TODAY() function refreshes each time you open the workbook.

Solution 1Recommended

Use Cell References with IF, AND, and TODAY Functions

This method links your formula to existing cells containing your start and end dates, making it easy to adjust your date range without editing the formula directly.

By utilizing the TODAY() function in combination with IF and AND, you can conditionally populate the data cells that feed your pie chart. As the actual date changes, Excel will recalculate the output, and your chart will dynamically reflect the new values.

1
Set up your date references

Enter your previous (start) date in cell A2, your upcoming (end) date in cell B2, and your target value in cell C2.

2
Enter the conditional formula

Select the cell where you want the chart data to appear and enter the formula: =IF(AND(TODAY()>A2,TODAY()<=B2),C2,0). This checks if today falls within your defined boundaries.

3
Insert the Pie Chart

Highlight the resulting cells containing your formula outputs, navigate to the 'Insert' tab on the ribbon, and click the 'Pie Chart' icon to generate your dynamic visualization.

Use Cell References with IF, AND, and TODAY Functions
Dynamic Updates: Because the TODAY() function relies on your computer's system clock, the chart will automatically update without any manual date entry when you open the file on future dates.
Create Dynamic Charts Easily

Create Dynamic Date-Based Pie Charts with WPS Spreadsheet

WPS Spreadsheet fully supports advanced logical and date functions like IF, AND, and TODAY, allowing you to build dynamic, self-updating charts effortlessly. It provides an intuitive interface for managing complex data visualizations.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open your existing data file or create a new one.
  2. 2. Apply the TODAY formula: Enter your conditional =IF(AND(TODAY()...)) formulas to build your dynamic data range.
  3. 3. Insert your Pie Chart: Highlight the data, go to the 'Insert' tab, and click the 'Pie Chart' icon to generate your visualization instantly.
Free to use with a familiar, user-friendly interfaceFully compatible with Microsoft Excel formulas, functions, and .xlsx filesRich library of built-in chart types including 2D and 3D pie charts
microsoft office alternative - wps office

Frequently Asked Questions

Why isn't my TODAY() formula updating the pie chart automatically?

The TODAY() function updates when the workbook is opened or when the sheet recalculates. If it is not updating, check your calculation settings. Go to the Formulas tab, click on Calculation Options, and ensure it is set to 'Automatic' rather than 'Manual'.

Can I include the exact start date in my boundary condition?

Yes. By default, using the greater than operator (>) excludes the start date. To include the exact start date in your condition, use the greater than or equal to operator (>=) in your formula, such as TODAY()>=A2.

Does this dynamic date formula work for other chart types like bar or line graphs?

Absolutely. The formula simply calculates the underlying data values in your spreadsheet cells. Any chart type—whether a bar chart, line graph, or pie chart—linked to those specific cells will automatically update when the calculated values change.