Archive for the 'Excel' Category

Page 2 of 3

Always something new to learn

It had occured to me that design patterns for using Excel effectively would be very useful. Simon Murphy last week pointed out to me that I’m far from the first person to think of this and gave me a link to Dermot Bolson’s Excel design patterns. These are excellent, although I’m sure that more could be added. In particular, the Merge pattern is both new to me and highly valuable. It’s a gem. Excel standard colours

Looking around the rest of Dermot’s site I discovered that it’s possible to change colours in Excel. I can barely believe I haven’t seen this before. I feel pretty dumb when I think back to all of those times I’ve struggled and failed to find sufficient useful colours in the standard palette.

There’s always something new to learn.

CPD Evidence Summary Workbook

Following my previous post I’ve tidied up the workbook that I used to record my CPD activities and made it available here. I know it’s not much, but I was quite pleased with its simplicity and with actually getting those SUMPRODUCT arrays to work as intended. Let me know if you’ve any comments.

Excel Chart Formatting

Ugliness as Standard

I’m going to get straight to the point here: in my opinion, standard Excel charts are plain ugly. Why this should be, when Microsoft puts astounding effort into other design elements, is beyond me. Take for instance the care devoted to fonts used for different purposes. I’m astonished to think that they employ a whole team of people simply to make sure that letters and numbers look good on the screen and on paper.

But look at this:

Excel chart with default formatting

Your reaction to the above chart might be one of these:

  1. You agree with me, the above is unnecessarily ugly
  2. You think the above is actually pretty fair
  3. You don’t care about whether it looks good or not, “it’s only a chart, for goodness’ sake!”
  4. I wish I had that much revenue / I’m pleased my revenue is not that low / How did you get hold of my revenue numbers?*

*- not really the point of this post

Going on the available data (the majority of charts that I see, even in prefessional reports, use exactly the formatting shown above) I guess many people would react with point 2 or 3 above.

The Importance of Being Fairest

Is it important whether the charts you produce look agreeable or ugly? My answer is definitley yes:

  • pleasing appearance is likely to coincide with good design, which we should be concerned about
  • why not sieze the opportunity to enhance your reputation as a producer of quality work

Don’t spend too much time on aesthetics; the Excel chart system doesn’t offer enough flexibility to reward more than a few minutes of beautification. However, please do consider the design aspects of the charts you produce.

Good Design

The Visual Display of Quantitive Information, an often recommended book, inspires a healthy concern for design of charts. After reading it, I have always aimed for the following features (or lack of features!) in my Excel charts:

  • Remember the primary purpose of a chart is communication, not art. Don’t use 3D, embedded pictures, zany colour schemes, etc.
  • Remove all unnecessary ink – e.g. the solid black lines that surround everything in Excel’s default formats
  • Tone down the elements that have supporting roles (e.g. gridlines) by colouring them gray or using dotted lines
  • Colours are clearer than shading patterns or shaped markers at distinguishing data series – unless you need to print in black and white
  • Choose more interesting colours than the default, but keep tones in proportion
  • Resize all labels and titles to allow the data itself to take centre-stage
  • Resize the plot area so that it properly fills the chart area

Here is the result of about 3 minutes work on the chart above:

Excel chart with improved format

What do you think – worth the time invested?

Excel Tip – Reversing signs

Every so often, I need to reverse the sign of a range of numbers. This might be required, for example, when a downloaded trial balance shows the P&L account values as the negative of their normal selves because credits have been represented as negatives.

If the number of cells is very small then I might simply edit each cell individually and add or remove a minus sign. Of course, this does not scale well to handling alot of numbers. I really wouldn’t want to edit hundreds of cells individually. Fortunately, I found a very simple and quick way to make the change all at once and here it is:

  1. Enter -1 into a blank cellFind a blank cell anywhere and enter into it the value of -1
  2. Copy that cell to the clipboard
  3. Select the range of cells having values that need to be reversed
  4. Choose Edit | Paste Special. In the Paste Special dialog box, select Paste Values and Operation Multiply before clicking OK.
  5. Delete the cell containing the -1.

Paste special with Multiply selectedThat does the trick! A nice thing about the Multiply operation of Paste Special is that it is non-destructive on formulae: a target cell containing a formula is not replaced by a value, instead the formula is extended with the required factor. So, a cell originally containing “=SUM(C2:C16)” results in “=(SUM(C2:C16))*-1” after the Paste Special – Multiply.

The Data Menu Test

Unstructured data in ExcelHaving 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’.

Structured data in ExcelForunately 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

Excel Sort dialog boxPlace 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.