Chart & Visualization Issues

How to Calculate Equipment Online Availability Percentage in Excel

Jason MillerJason Miller Oct 26, 2026 868 views

Question details

Create an interactive Excel report with department, equipment, and date selections to calculate and visualize how long selected equipment was online over a 7-day period.

How to Calculate Equipment Online Availability Percentage in Excel
Product
Excel
Device & OS
not provided
Scenario
Building a dynamic dashboard to track and report equipment uptime and downtime percentages.
Observed behavior
The goal is to calculate the online duration as a percentage of the total duration based on user dropdown selections, and display this metric in a pie chart.
Before you start

Ensure your raw data logs accurately record the online and offline timestamps for each piece of equipment, and format the data as an Excel Table for easier reference.

Solution 1Recommended

Use Power Query and Data Validation for a Dynamic Report

Create dynamic dropdown lists using Power Query and calculate the availability percentage to feed a pie chart.

By utilizing Power Query to extract unique departments and equipment names (like RTUs), you can create clean validation lists. A summary table can then calculate the online duration based on the selected criteria.

1
Extract Unique Lists with Power Query

Load your raw data into Power Query. Remove duplicates to create clean, unique lists of Departments and Equipment, then load these lists into a hidden settings sheet.

2
Create Dropdown Menus

On your report sheet, go to Data > Data Validation. Select 'List' and refer to the named ranges (e.g., 'EDTbl') from your Power Query output to create dropdowns for Department, Equipment, and Date.

3
Calculate the Online Percentage

Set up an output table that uses formulas like SUMIFS to sum the online hours for the selected equipment and date range. Divide this by the total possible hours (e.g., 168 hours for 7 days) and format the cell as a Percentage.

4
Insert the Pie Chart

Select the calculated online percentage and the remaining offline percentage. Go to the Insert tab, select Pie Chart, and customize the chart title and labels to reflect the selected equipment.

5
Automate with a Refresh Macro

If you are using Power Query to filter the final output instead of formulas, record a simple macro that refreshes all data connections when a dropdown value is changed, and assign it to the worksheet selection change event.

Use Power Query and Data Validation for a Dynamic Report
Clear Expected Results: Before building complex macros, map out your expected results in a simple table. Once the figures and formulas calculate the correct percentage manually, attaching the pie chart and macro becomes much easier.

Create Interactive Availability Reports with WPS Spreadsheet

WPS Spreadsheet provides powerful data validation, advanced formulas, and dynamic charting tools that make calculating equipment uptime and building interactive dashboards effortless.

  1. 1. Open Your Data Log: Launch WPS Spreadsheet and open your equipment log data file.
  2. 2. Set Up Dropdowns: Navigate to the Data tab, click Validation, and set up your Department and Equipment dropdown lists.
  3. 3. Apply Calculation Formulas: Use the SUMIFS function to calculate total online duration and format the result cell as a percentage.
  4. 4. Insert a Pie Chart: Highlight your summary data, go to the Insert tab, click Chart, and choose a Pie Chart to visualize the availability.
Fully compatible with Microsoft Excel (.xlsx) formulas and formattingIntuitive interface for inserting dropdowns, PivotTables, and Pie ChartsLightweight software that handles large equipment data logs smoothlyFree to use for daily data analysis and reporting tasks
QA img-9

Frequently Asked Questions

How do I create a dynamic dropdown list for equipment in Excel?

Go to the Data tab and select Data Validation. Choose 'List' under the Allow settings, and specify the source as a named range or a cell reference that contains your unique equipment IDs generated via formulas or Power Query.

Why is my pie chart not updating when I change the dropdown selection?

If you are using standard formulas, ensure your Calculation Options (under the Formulas tab) are set to Automatic. If your report relies on Power Query, you must refresh the data connection (Data > Refresh All) or use a VBA macro to trigger a refresh upon selection change.

How do I calculate the percentage of time online over 7 days?

First, calculate the total hours the equipment was online using SUMIFS. Then, divide that number by the total hours in 7 days (168 hours). Finally, select the result cell and apply the Percentage number format from the Home tab.

Can I show both online and offline percentages in the same pie chart?

Yes. Create a small summary table with two rows: 'Online' and 'Offline'. Calculate the percentage for each so they total 100%. Select both the labels and the calculated percentages, then insert a 2D or 3D pie chart.