Skip to main content

Selecting data in Excel with XLSTAT

This tutorial presents the different ways to select your data to run an analysis in Excel with XLSTAT.

Goal of this tutorial

MS Excel users will find data selection with XLSTAT very intuitive whereas some of you who have been using other statistical software packages might not feel immediately at ease. This tutorial will show you how simple it is to work with XLSTAT and should help you save time.

Selection by columns

The column selection requires that your dataset starts on the first row of the Excel sheet.

It does not matter if the column or variable labels are stored on the first row, as the Labels Included option displayed in most of the XLSTAT dialog boxes, allows you to specify it.

To quickly select a column, just click on the name of the column, as you would do with Excel. Then select the next columns by leaving the mouse button pressed and dragging the mouse cursor over the columns to select.


This mode is useful when columns correspond to variables and rows correspond to observations.

Note that you can select a range of non-adjacent columns. You simply need to press the (Ctrl) key on your keyboard while selecting the data with the mouse.

Selection by rows

The row selection requires that your data set starts on the first column (A) of the Excel sheet.

This mode is useful when rows correspond to variables and columns correspond to observations. In this case, you need to activate the transposition option (see below).

image.png
If the red arrow is visible: XLSTAT considers that rows correspond to variables and columns to observations.

image.png
Click on the name (1, 2, …) of the first row of your data set on the Excel sheet, and then select the next rows by pressing the mouse button and dragging the mouse cursor over the rows to select.

Selection by range

Use the range selection mode when your data does not start on the first row.

Simply select the data in the corresponding cells using the mouse.

Selection from a list of variables

Click on the following button to change the data selection mode.


When the button shows a list icon (see below), XLSTAT will allow you to display a list of the available variables that you can select.


Selection from flat files

Click on the button as shown below to change the data selection mode.


When the button shows an orange paper sheet, you will be able to import a flat file and display a list of the imported variables.


This mode is useful when your data contains millions of rows. See a more detailed tutorial on how to Run a linear regression on millions of data points in Excel.

Was this article useful?

  • Yes
  • No