How to analyze data (1-3 hours)

↵ Back to module homepage

Once you have some data (from yourself, from some friends you tested the experiment on, etc.), you can try analyzing it.

The easiest way to analyze data is to load it into Excel. Once you have it in Excel, Excel provides a lot of options that can streamline your data analysis.

Importing data to Excel

See the video below to see how to import your data. Your Excel interface may look slightly different from mine, depending on your Excel version and your settings. If you cannot or don't want to watch the video, read the instructions below the video.

Organizing data in Excel

Once your data are in Excel, you can calculate the averages you need for each condition. Excel has some powerful features you can take advantage of. If you want to do advanced Excel stuff, first complete the below worksheet to get familiar with the basics of how Excel works (including cell addresses, formulae, and dynamic and static references).

Once you have finished the worksheet and are familiar with the foundational concepts of Excel, there are many ways you can use Excel to analyze your data. Below I describe three different approaches/methods you can use. The first method is simplest (i.e., it involves the least learning about Excel techniques) but most labor-intensive (you have to do more work by hand); the last is most complicated (i.e., you need to understand some complicated Excel concepts) but saves the most time later (once you've invested time in learning Excel, the method can automate most of the other work for you). You can choose whichever method you are most comfortable with. For each method I have posted a video demonstration as well as a written explanation.

Method 1: Manual calculation

This method consists of just manually averaging together the appropriate reaction times from the "related" condition, and again manually averaging together the appropriate reaction times rom the "unrelated" condition. To create an average, click on any empty cell in the Excel sheet, and type =AVERAGE( . This will create a formula. After that, click on each reaction time you want to include (to include multiple reaction times, you should either hold the "Ctrl" key while clicking them, or you should type a comma after each one.) Once finished, click Enter to see the average. Repeat this process again to get the unrelated reaction times.

Method 2: Manual sorting and then manual calculation

(Note: because of a recording problem, you can't see some of the dialog windows that open during this video. But you can still hear the narration explaining what is happening.)

This is similar to Method 1, but you can first rearrange the data to make the process more efficient. Select your two columns of data and then click the "Data" tab and click "Sort". Then, sort the data (based on the column that has the codes, not the column that has the reaction times). After this, all the "100s" will be together, all the "200s" will be together, etc. Then you can manually calculate the reaction times in essentially the same way as shown in Method 1, but now it will be easier and faster to do that.

Method 3: Formula-based calculation

If you get good with using Excel formulae, you can set up formulae that will do all this work automatically. The procedure shown in the video is just one example.

In this example, we use the =IF() formula to select sets of trials that meet a certain condition (such as having appropriate codes for "related" pairs). An =IF() formula is formatted as follows: =IF( condition, value if true, value if false ). What that means is, Excel will check to see if a certain condition that you specify is true. If the condition is true, it will show <value if true> in that cell, otherwise it will show <value if false>. We can take advantage of this to create a column that consists only of "related" trial reaction times (and another that consists only of "unrelated" trial reaction times), and get the average for it.
(In this example, I am assuming that the trial codes are in Column A, and reaction times in Column B)


Important reminder! Don't leave negative numbers in your data when you do data analysis! (If you aren't sure why, review the discussion of this issue from the "Priming" module; in the data analysis step of that module, we discussed why you shouldn't include negative numbers in your analysis.) Before doing the data analysis, you should choose what to do about negative numbers in your results.


You don't need to submit anything for this task; this is just to prepare you for what you will need to do later. When you are confident that you are able to analyze datasets you get from DMDX, continue on to the next section: "How to make statistical conclusions".


by Stephen Politzer-Ahles. Last modified on 2021-07-12. CC-BY-4.0.