# Ask a matrix question

A **matrix question** puts several items in rows and uses the same answer choices for each. For example, ask people to rate **Delivery**, **Packaging** and **Support** from **Poor** to **Excellent**.

## Set up the question

1. Open your survey, add a question and select **Matrix** under **Answer type**.
2. Enter the question text. Enter the columns under **Matrix columns**. Under **Matrix rows**, enter each subject you want people to rate. Use **Add row** for another subject.
3. Leave **Allow multiple selections per row** off for one choice per subject. Turn it on when several factors can apply.
4. Under **Selections per row**, choose **At least**, **Exactly** or **At most** and enter a number. For example, **At most 2** accepts one or two selections per answered row.
5. Make the question optional if a shopper can leave a subject blank. A required matrix needs an answer in every row. Save the draft and preview both cases before publishing.

## Change the display order

Enable **Randomize rows**, **Randomize columns**, or both. To keep Delivery in its original slot while the other subjects move, expand **Pin rows in place** and select **Delivery**. **Pin columns in place** works the same way for choices.

Going back keeps the same order and selections. The saved answer uses the original row and choice labels. On a phone, the choices appear beside each row’s controls.

![Mobile matrix with Cost selected for Store, Speed and Cost for Delivery and Returns left blank.](/docs/media/matrix-mobile.png)

## Ask about one selection

Under **Matrix columns**, select **Follow-up** beside Cost. Under **Match in**, select **Delivery**. A shopper who picked Cost only for Store will skip this question. See [question logic](/docs/questions/question-logic.md) for conditions and preview steps.

## Read the percentages

Open **Results** and expand the matrix question. **Answers** counts people who answered the question. **Selections** counts all their picks. By default, each percentage shows that choice’s share of all selections in the row.

In the example below, two people answered the Delivery row. Together they made three selections. One selected Cost, so Cost accounts for 33% of selections. Click that percentage or **Percentage of selections** to switch the table to percentage of people. Cost now shows 50%. Someone who skipped Delivery is excluded from both calculations for that row.

![Matrix report showing two answers, four selections and the percentage of selections for each row.](/docs/media/matrix-report.png)

## Edit a matrix that already has responses

Rename a row or column in its text box to carry its counts forward. If you change **Delivery** to **Shipping**, the Results table shows the existing votes under **Shipping**. Move a row up or down from its three-dot menu to change its position. Each shopper’s answers stay with the row they rated. A pinned row stays pinned after a rename, and follow-up rules use its new name. Update a rule that uses a row before removing that row.

To start a row or column at zero, remove it, then add a new one. The other cells keep their votes. **Edit rows as a list** lets you paste several rows at once. Matching names keep their counts and new names start at zero. Publish to update Results. These rules also apply to a matrix inside a form panel.

## Correct or export an answer

From **Answers**, expand a response and choose **Edit answer**. The editor uses the labels, choices and limits from the survey version the person answered. Saving updates the affected counts.

CSV exports group the choices under each answered row, such as **Delivery: Speed + Cost**. The response report CSV also includes **Matrix answer JSON** when it contains matrix answers. Keep that column if you intend to [import the file again](/docs/surveys/importing-data.md).
