Create a Morning and Night Shift Comparison Chart in Excel
Question details
Create a chart comparing morning and night shift counts for six people.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A shift table lists assignments for six people, and the user wants to compare the frequency of each shift.
- Observed behavior
- A clustered column chart should show morning and night shift counts side by side for each person.
Check that columns B through G contain the six people's shift entries in rows 2 through 15. Make sure the shift labels in the summary match the wording used in those entries.
Count shifts and insert a clustered column chart in Excel
Use COUNTIF to summarize each person's shifts, then chart the results side by side.
In I1:O3, leave I1 available for a label, enter the six people's names in J1:O1 in the same order as columns B:G, and enter the morning and night shift labels in I2:I3.
In J2, enter =COUNTIF(B$2:B$15,$I2). Copy the formula across through O2 and down through O3.
Select I1:O3, then choose Insert > Column Chart > 2-D Clustered Column.
If the chart groups the results by shift instead of person, select the chart and choose Chart Design > Switch Row/Column so each person has morning and night columns.

Compare shift counts in WPS Spreadsheet
Use COUNTIF in WPS Spreadsheet to summarize morning and night assignments, then insert a clustered column chart to compare each person's counts.
- 1. Open the shift table: Open WPS Spreadsheet and choose Open to select your workbook.
- 2. Create the summary: Enter the six names in J1:O1 and the shift labels in I2:I3. In J2, enter =COUNTIF(B$2:B$15,$I2), then copy it across and down through O3.
- 3. Insert a column chart: Select I1:O3, open Insert > Chart, and choose a clustered column chart.
- 4. Review the comparison: Check that each person has separate morning and night columns. If needed, select the chart and use Switch Row/Column in the chart tools.

Frequently Asked Questions
Why are some shift counts zero?
Check that the labels in I2:I3 match the shift entries in B2:G15. Also verify that the COUNTIF range covers the rows containing the assignments.
How do I include more rows of shift assignments?
Change the formula's range to cover the additional rows, such as =COUNTIF(B$2:B$30,$I2) in J2, and then copy it across and down through the summary table.
Why does the chart group columns by shift instead of person?
Select the chart in Excel and choose Chart Design > Switch Row/Column. Each person should then appear as a category with separate columns for morning and night.
Can I add another shift type to the chart?
Enter the new shift label in I4, copy the formulas from J3:O3 down to J4:O4, and update the chart's data range to include I1:O4.




