How to Update an Excel Pie Chart Based on Today's Date
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.

- 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.
Ensure your spreadsheet is set to automatically recalculate formulas so the TODAY() function refreshes each time you open the workbook.
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.
Enter your previous (start) date in cell A2, your upcoming (end) date in cell B2, and your target value in cell C2.
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.
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 Fixed Dates with the DATE Function
If your date ranges are static and will not change, you can hardcode the dates directly into the formula using the DATE function.
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. Open your workbook: Launch WPS Spreadsheet and open your existing data file or create a new one.
- 2. Apply the TODAY formula: Enter your conditional =IF(AND(TODAY()...)) formulas to build your dynamic data range.
- 3. Insert your Pie Chart: Highlight the data, go to the 'Insert' tab, and click the 'Pie Chart' icon to generate your visualization instantly.

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.




