| Select Worksheet |
| See Also |
If named ranges are specified within the file then these have the advantage that both the sheet and cell range are specified permanently in the Excel file. So, these are automatically updated if further rows or columns are inserted into the cell range.
Columns whose names are suffixed with a ! character will be automatically converted into factors. Similarly, if column names end with a $ or # character, then these will be converted into a text and variate respectively. As well as supplying a conversion character, column format information can be appended to a column name. For example, a suffix of :0, :1, :2 ... :9 specifies that the column should be displayed with the given fixed number of decimal places. A suffix of :D specifies the column is to be displayed in date format. This will use GenStat's default date format. Similarly, a suffix of :T specifies that the column is to be displayed in time format.
The order of factor levels and labels can be supplied within an Excel file by adding a comment to the cell containing the column name. Within the comment the factor levels must start with a ! and labels must start with !t on a new line. The levels and labels should then be entered within brackets, for example, for levels this could be !(100,90,50,10) and for labels this could be !T(Control,A,B,C) or !t('Control','A','B','C'). The order of the items in the comment will define the order of the levels or labels in the factor. If a column just contains ordinal values (i.e. 1...n), then the comment can still be used to assign labels or levels to these groups. The first item in the comment will define the level or label for group 1 in the factor and so on.
A column description can also be supplied in the comment as a separate line, but this must not start with an exclamation mark.
The following example shows two comments that have been entered into columns within Excel (using the Excel menu item Insert | Comment). Each column will be opened in GenStat as a factor using the defined levels/labels and will include a column description.
Partial column or row information can be provided also:
| Yes if all labels | Read the column names from the row specified in the Column Names Row option if all the cells in this row contain labels only or are missing. A default column name will be generated for a missing cell. |
| Yes | Use the cells specified in the Column Names Row option . If a cell contains a number, then it will be prefixed with "_" to ensure it is a valid GenStat identifier name. |
| No | Do not read the column names from the file and generate default names for the columns. |
| Relative | Row numbers start from the top of the restricted cell range. |
| Absolute | Row numbers start from the top of the worksheet and thus correspond to the absolute row numbering in Excel/Quattro. |
| Strict | Only labels that contain just numeric data are converted, otherwise they are set to a missing value (e.g. '10' -> 10, '1O' -> *.) |
| Single | Single characters and labels containing just numeric data are interpreted as numeric values, otherwise they are set to a missing value (e.g. o,O -> 0, i,I,l,L -> 1, s,S-> 2, z,Z -> 5, comma -> decimal point, '10' -> 10, 'Io' -> *). |
| Common | Multiple characters and labels containing just numeric data are interpreted as numeric values, otherwise they are set to a missing value (e.g. 'Io' -> 10, '23X' -> *). |
| Standard | Multiple characters and labels containing just numeric data are interpreted as numeric values, but text is truncated at the end of a number (e.g. '23X' -> 23, 'A2X3' -> *). |
| Lax | Any digits are read from the text (e.g. 'A2X3' -> 23). |
| OK | Open the Excel file and close the dialog. If any factor columns contain a high proportion of missing values you will be prompted with a dialog that can be used to autonmatically fill the empty factor cells. |
| Cancel | Close the dialog without opening the file. |