Survey Data from Excel

With MAXQDA you can import structured documents from Excel spreadsheets in XLS or XLSX format. Each table cell is automatically coded, and you can assign variable values to the individual texts (the cases). This feature is especially useful for survey data that combines standardized and open-ended questions.

Overview of the import workflow

  1. Create your Excel file – Set up the spreadsheet in the required structure.
  2. Start the import process – Open the Survey Data from Excel import in MAXQDA and select your file.
  3. Work through the import steps – Preview the data, assign data types, and define case IDs and groups.
  4. Complete the import – MAXQDA creates your cases, assigns variables, and codes responses automatically.

Importing data from Excel spreadsheets

1. How should the Excel spreadsheet be structured?

MAXQDA imports survey-style data in a tabular format. Each row of your spreadsheet becomes a case (document). Each column represents a type of information: this could be identifiers (such as ID or group), survey questions, or standardized variables. The cells contain the values for that case, for example, a participant's name, their response to an open question, or their age. This follows the logic of a data matrix: rows are cases, columns are variables.

Example

The table below provides a simple example showing how this logic looks in practice. Content in square brackets clarifies the column's role and is not part of the actual header.

Note: The actual column headers in your file can be named freely. "ID" and "Document Group" in the example serve to illustrate the function of those columns. When you import the data, your chosen headers will appear as variable or question names in MAXQDA.
Document GroupID
[Document Name]
Positive Feedback
[Open Question 1]
Negative Feedback
[Open Question 2]
Age
[Variable 1]
Pre-knowledge
[Variable 2]
Group APerson 1Great conference!The catering was a bit tight22high
Group APerson 2Best keynote I have heard in a long time 25medium
Group BPerson 3I especially enjoyed the pre-conference workshopnone21medium
Group BPerson 4Great job - keep going!Please make workshops longer in the future31low

Here, each row is a separate case. The columns "Positive Feedback" and "Negative Feedback" contain open-ended responses. The "Age" and "Pre-knowledge" columns store standardized variables. The first two columns help MAXQDA create and organize documents in the "Document System."

Step-by-step setup

  1. Create a single worksheet that contains all rows you intend to import.
  2. Add the required and optional identifier columns at the beginning:
    • ID (required): The document name for each row.
    • Document Group (optional): The group into which the document will be imported. If you do not include one, MAXQDA will generate it during import.
  3. Add columns for your questions and variables: Use one column per question or standardized attribute, such as sociodemographic variables.
  4. Enter data in the cells: Open-ended answers can be full text; variables can be numbers or categories.
  5. Create subgroup levels: Create a subgroup by adding a backslash to the group name (e.g., Survey\Berlin).
Tip: You can organize your survey data into document groups by adding up to one subgroup. To achieve this during the import process, include a backslash in the group's name. For example, you might designate the group as "Survey\Berlin" or "Survey\Hamburg" in the "Document Group" column. This allows you to categorize surveys by location, with cases being sorted between these two subgroups accordingly.

Notes and recommendations

  • Document Group is optional: If this column is not present, MAXQDA can create a new document group and import all documents into it during the import process. However, the ID column with the document names is required.
  • Keep column headings short and clear: MAXQDA imports the first 63 characters of a column heading. If two headings are identical within those 63 characters, they are treated as the same column.
  • Use a single worksheet: MAXQDA imports only the first worksheet in an Excel file. If your data is split across multiple sheets, combine it before importing.
  • Missing values: Empty cells are treated as missing values. If the column is imported as qualitative data, those empty cells will not be coded.

2. Start the import process

Select Import > Survey Data > Import Data from Excel Spreadsheet, as shown in the image below, and choose the file in the dialog window.

Screenshot of MAXQDA's Import menu with the option to Import survey data from Excel spreadsheets in focus
Alternatively, you can use Import > Documents from Excel Spreadsheet. Both options lead to the same result.

3. Import Survey Data from Excel

After you select a file, MAXQDA opens the import dialog and guides you through the process.

Step 1: Preview

The first window displays a preview of the data (see image below) so you can confirm that the file was read correctly before continuing. You can scroll through the preview to check the content. The window also shows the total number of cases (rows) and questions (columns) detected in the file.

Example screenshot of MAXQDA data preview step during survey data import

At this stage, you can enter a name for the survey; by default, MAXQDA uses the Excel file name.

Click Next to continue, or Cancel to exit the import process.

Step 2: Confirm Data Types

In this step, MAXQDA shows how it has interpreted your spreadsheet. Each column is classified as either qualitative content or a quantitative variable. A preview of sample cells appears for every column so you can verify the detection. For quantitative columns, MAXQDA also proposes a variable type. Use the checkboxes and menus to change a column's classification or type if needed.

Screenshot of the MAXQDA import dialog showing survey columns with checkboxes to mark them as qualitative or quantitative.
  • Qualitative columns are imported as text and automatically coded with their respective column header.
  • Quantitative data is added as document or code variables, and each case/document includes the values from those columns.

If you select both qualitative and quantitative for a column, MAXQDA imports the data in two ways: once as coded text under the column header, and once as a variable. This is useful if you want to analyze standardized information alongside the open-ended responses, for example, recording a respondent's age as a variable while also keeping it coded in their text.

Tip: For more details on how variables work in MAXQDA, see the corresponding manual chapter, starting with the Document and Code Variables page.

When you finish assigning data types, click Next.

Step 3: Define Case IDs and Groups

In this step, you decide how MAXQDA should create and organize your cases. Each row in your spreadsheet becomes one case. A preview panel shows how the cases will be grouped.

Screenshot of MAXQDA import dialog where users select case IDs from a column and group cases by document group, with preview on the right.
  • Case IDs – choose whether to use values from an existing column (for example, a participant pseudonym) or let MAXQDA create unique IDs automatically.
  • Groups – optionally group cases by the values of a selected column. Cases with the same value are placed together in document groups (namely, folders).

Click Import to start the process.

Step 4: Import

MAXQDA now imports your survey data. Cases are created, variables are defined, and qualitative responses are automatically coded. When the import is complete, a confirmation message appears.

How MAXQDA handles imported survey data

After you import data from an Excel spreadsheet into an empty MAXQDA project, the project will look like this:

Screenshot of MAXQDA displaying imported survey responses under the Document System, grouped by Group A and Group B.

In sum, when you import survey data, MAXQDA does the following:

  • Creates new document groups if they don't already exist.
  • Adds the column headers from left to right as new codes in the code system (only if they're not already there).
  • Codes the text in each column with its corresponding header. The full column header is also saved in the code memo.
  • Creates new variables if needed, and assigns each document the values from the variable columns.

Once your data is imported, you can proceed to work with it. The section on Categorizing Survey Data walks you through the analysis process.

Was this article helpful?