Chart & Visualization Issues

Create an Excel Pie Chart for Room Turnaround Time Categories

Khadija KhanKhadija Khan Dec 2, 2026 868 views

Question details

Create a pie chart showing the number of rooms in each turnaround time category.

Create a Pie Chart for Room Turnaround Time Categories in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Turnaround times need to be grouped as below 15 minutes, 15–20 minutes, or more than 20 minutes.
Observed behavior
The desired chart shows each category's share of the total recorded turnaround times.
Before you start

Check whether the turnaround values are stored as numbers of minutes or as Excel time values. The category formula must use thresholds in the same format as the source values.

Solution 1Recommended

Categorize Turnaround Times and Create an Excel Pie Chart

Use a helper column and a COUNTIF summary to chart the number of rooms in each time range.

1
Add a category column

Assuming turnaround times are in column A, enter Category in B1. For numeric minutes, enter =IF(A2="","",IF(A2<15,"Below 15 minutes",IF(A2<=20,"15–20 minutes","More than 20 minutes"))) in B2.

2
Use time thresholds if needed

If column A contains Excel time values rather than numeric minutes, enter =IF(A2="","",IF(A2<TIME(0,15,0),"Below 15 minutes",IF(A2<=TIME(0,20,0),"15–20 minutes","More than 20 minutes"))) in B2 instead.

3
Fill the categories

Select B2 and drag its fill handle down through the last row of turnaround data.

4
Count each category

Enter the three category labels in D2:D4 exactly as they appear in the formula. In E2, enter =COUNTIF($B:$B,D2), then fill the formula down through E4.

5
Insert the pie chart

Select D2:E4, then choose Insert > Pie Chart and select a pie chart style. Use the chart title and data label options to make the results easier to read.

Categorize Turnaround Times and Create an Excel Pie Chart
Boundary values: Exactly 15 minutes and exactly 20 minutes are both included in the 15–20 minutes category. Blank source cells are left uncategorized.
Create charts in WPS Spreadsheets

Build the Turnaround Time Pie Chart in WPS Spreadsheets

Use a category formula and COUNTIF summary in WPS Spreadsheets, then insert a pie chart to visualize the room turnaround distribution.

  1. 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select the workbook containing the turnaround times.
  2. 2. Classify the times: If numeric minutes start in A2, enter =IF(A2="","",IF(A2<15,"Below 15 minutes",IF(A2<=20,"15–20 minutes","More than 20 minutes"))) in B2, then fill it down. For time values, replace 15 and 20 in the comparisons with TIME(0,15,0) and TIME(0,20,0).
  3. 3. Create the summary: Enter the three category labels in D2:D4. Enter =COUNTIF($B:$B,D2) in E2 and fill it down through E4.
  4. 4. Insert the chart: Select D2:E4, choose Insert > Chart, and select a pie chart. Add a descriptive chart title and data labels if needed.
  5. 5. Save the workbook: Choose File > Save As and select XLSX if you need to share the workbook with Excel users.
Group turnaround times and chart category counts in one worksheetOpen and edit Microsoft Excel XLS and XLSX filesUse familiar formulas such as IF, TIME, and COUNTIFCreate and customize pie charts with a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

How are exactly 15 and 20 minutes categorized?

Both values fall in the 15–20 minutes category. The formula tests for less than 15 first, then for values less than or equal to 20.

How do I handle turnaround times stored as Excel times?

Compare the cells with TIME(0,15,0) and TIME(0,20,0) instead of the numbers 15 and 20. For example, replace A2<15 with A2<TIME(0,15,0).

Can I use a PivotTable instead of COUNTIF?

Yes. Select the source data and category column, choose Insert > PivotTable, and place Category in both Rows and Values. Set the Values calculation to Count, then chart the category totals.

Why does my category count show zero?

Check that the labels in D2:D4 match the helper-column labels exactly and that the COUNTIF range includes the category cells. Also check that the formula in column B has been filled down.