Taken from Minitab support forum.
1.Open the sample data, UmbrellaHandles.MTW.
2.Choose Stat > Tables > Chi-Square Test for Association.
3.From the data drop-down list, select Summarized data in a two-way table.
4.In Columns containing the table, enter '1st shift' '2nd shift' '3rd shift'.
5.Under Labels for the table (optional), in Rows, enter Machine ID.
6.Click Statistics.
7.Select Each cell’s contribution to chi-square. Leave the default selections of Chi-square test, Display counts in each cell, Display marginal counts, and Expected cell counts selected.
8.Click OK in each dialog box.