Chart & Visualization Issues

How to Create a Dynamic Employee Attendance Pie Chart in Excel

Elise WilliamsElise Williams Nov 10, 2026 868 views

Question details

The user wants to create an automatically updating pie chart that displays attendance categories when a specific employee is selected from a drop-down list.

How to Create a Dynamic Employee Attendance Pie Chart in Excel
Product
Excel
Device & OS
not provided
Scenario
Tracking and visualizing individual employee attendance records (like working days, sick days, and annual leave) using dynamic dashboards.
Observed behavior
Needs to build a pie chart linked to a summary table or PivotTable that excludes overtime and updates instantly upon employee selection.
Before you start

Ensure your raw attendance data is organized in a clean table format with clear headers (e.g., Employee Name, Total Days, Sick Days, Annual Leave), and verify that no blank rows exist.

Solution 1Recommended

Use a Linked Summary Table with a Drop-Down List

This method relies on creating a data validation drop-down and using lookup formulas to feed a summary table, which then directly powers the dynamic pie chart.

By setting up a dedicated summary table, you can easily control exactly which categories (excluding overtime) are fed into the pie chart. The chart will update instantly whenever the drop-down value changes.

1
Create the Drop-Down List

Select a cell where you want the drop-down to appear. Go to the Data tab, click 'Data Validation', choose 'List' under Allow, and select the range containing your employee names.

2
Build the Summary Table

Create a new small table nearby with rows for Working Days, Sick Days, Annual Leave, Late Starts, and Early Finishes. Exclude any rows for overtime.

3
Link Data Using Formulas

Use VLOOKUP or XLOOKUP referencing the drop-down cell to pull the employee's absence data into the summary table. Calculate 'Working Days' dynamically by subtracting the sum of absence categories from the 'Total Working Days'.

4
Insert the Pie Chart

Highlight the summary table's categories and their calculated values. Navigate to Insert > Pie Chart and select your preferred 2D or 3D pie chart style.

5
Customize Data Labels

Right-click the pie chart slices, choose 'Add Data Labels', then right-click the labels to select 'Format Data Labels'. Check 'Category Name' and 'Percentage' to make the chart easy to read.

Use a Linked Summary Table with a Drop-Down List
Chart Testing: Test your setup by changing the employee name in the drop-down list. The values in the summary table and the pie chart slices should both adjust immediately.
Dynamic Charting Made Easy

Create Dynamic Attendance Charts Effortlessly with WPS Spreadsheet

WPS Spreadsheet provides powerful data validation, robust lookup formulas, and stunning chart capabilities to help you build interactive HR dashboards with ease. Best of all, it handles standard Excel files natively.

  1. 1. Set Up Data Validation: Open your worksheet in WPS Spreadsheet. Go to Data > Validation to quickly create your employee drop-down menu.
  2. 2. Apply Lookup Formulas: Use WPS Spreadsheet's built-in VLOOKUP function to automatically fetch attendance categories based on your drop-down selection.
  3. 3. Insert and Customize Chart: Highlight your calculated summary table, navigate to the Insert tab, click Chart, select Pie, and instantly visualize your data.
100% compatibility with Microsoft Excel (.xlsx) formats and formulasIntuitive Data Validation tools for quick drop-down list creationBeautiful, modern chart styles and pre-built HR templatesFree to use and incredibly lightweight on system resources
microsoft office alternative - wps office

Frequently Asked Questions

Why is my pie chart not updating when I change the employee drop-down?

This usually happens if your pie chart is linked directly to static raw data instead of your formula-driven summary table. Right-click the chart, choose 'Select Data', and ensure the selected range points to the summary table containing the VLOOKUP/XLOOKUP formulas.

How do I exclude the overtime category from showing up in the pie chart?

When highlighting the data range for your pie chart, simply do not select the Overtime row or column. If you are using a PivotChart, uncheck 'Overtime' in the PivotTable Fields list.

How do I calculate 'Regular Working Days' correctly?

Regular Working Days should be dynamically calculated. In your summary table, use a simple formula like `=Total_Working_Days - SUM(Sick_Days, Annual_Leave, Late_Starts)`. This ensures the pie chart reflects the actual baseline working days properly.

Can I hide the summary table while keeping the chart visible?

Yes. You can place the summary table on a separate worksheet and hide that sheet, or you can hide the specific columns/rows. If the chart disappears when you hide the data, right-click the chart > Select Data > Hidden and Empty Cells > check 'Show data in hidden rows and columns'.