Having introduced the idea of a test for a well-constructed Excel data list, I ought actually to fill in the details for you. The basic idea of the Data Menu Test is to structure your data in such a way that you can easily use the commands under the word ‘Data’ in your Excel menu. This is highly beneficial because the Data menu is very powerful.
Actually, passing the test is dead easy; well, it is for me at least since I always construct lists this way.
To find out whether you do the same, take the following three simple steps
1. Go To Current Region
Do you know how to do this? It’s quite useful. The ‘Current Region’ is found as follows:
- Place your cell pointer on any cell in your list
- Increase the rectangle of selected cells in all directions until it meets a completely blank row or column (or the edge of the spreadsheet) on each side
- The cells you have selected are the Current Region.
Excel can do this for you automatically using one of the “Special” options on the Go To dialog box, but it’s quite long-winded. On the menu, click Edit, then Go To… In the Go To dialog box click the button labelled Special… then click the radio button labelled Current region and press ‘OK’.
Forunately for everyone involved, there’s a quick way of doing all of this in an instant: simply place the cell-pointer somewhere within your list and press Ctrl+*. The Current Region will be selected.
This test is passed if the Current Region includes all of the list data and nothing else. Check around the boundaries of the selected cells using the scroll bars – or by jumping to each corner of the selected range using Ctrl+. (Ctrl + ‘period’).
2. Data Sort
Place your cell-pointer somewhere within your list and click Data, then Sort… The Sort dialog box will appear, based on what Excel finds in your list. Take a closer look at this box to find out whether you pass the test. You should see
- ‘Header row’ selected in the ‘My data range has’ section
- The ‘Sort by’ selection boxes should contain the full header names of your list columns, not partial names or ‘Column A’, ‘Column B’, etc.
After deciding whether or not your list passes, you should click the Cancel button – unless you really do want to sort your list at this point…
3. Summary Data
I actually don’t have a simple automated test for this. The rule is that the list shouldn’t contain any rows of summary or subtotal data. Probably the easiest thing to do is to scan the list. Look particularly at the bottom of the list for totals. You might want to sort the list on a numeric column and look at the extremes (top and bottom) where subtotal and total rows are likely to congregate.
That’s all there is to it! A clean, flat, rectangular list of data is often what you need for effective Excel work. If you pass the data menu test then you’re well on your way.
PS. Excel 2003 introduced a new ‘List’ item on the Data menu – which can be helpful in managing your lists. Experiment and see what you think.