10 Tips to Make Better and Boss-proof Excel Spreadsheets

Share

Facebook
Twitter
LinkedIn

Tips to make better excel spreadsheets

We all have atleast one story of how that one time the boss / co-worker / classmate / cat ruined the carefully crafted excel spreadsheet by mucking up the formulas or disturbing the formatting. There are 3 very easy solutions to prevent this problem,

  1. Write an unleash_a_pack_of_wild_cats_when_someone_messes_with_the_file () macro: It is not an elegant solution, and cats are not very consistent, but it can work.
  2. Move to marketing department, you dont need to send excel files any more, just ppts. 😛
  3. Or, read this post and learn 10 awesome tips on how to boss proof your excel files.

So here is the list of 10 tips to make better excel spreadsheets. I suggest using all these tips for a perfect boss proof workbook.

Restrict The Work Area Few Columns and Rows

Not all spreadsheets have 256 columns and 65000 rows of data. So why show the entire grid when you can, say, just show the 44 rows and 23 columns in which the sales report is presented.

Restrict The Work Area to few columns and rows in an excel workbook

To restrict the work area,

  • Select the first column you dont want to see (24th column) and press CTRL+SHIFT+RIGHT ARROW. Now Right click and select “Hide” option.
  • Select the first row you dont want to see (45th row) and press CTRL+SHIFT+DOWN ARROW. Now right click and select “Hide” option.

Lock Formula Cells And Protect The Worksheet

Formulas are the most vulnerable part of an excel sheet. You accidentally edit something, say in payroll sparesheet, and you just gave 3200% bonus to someone in the organization. That is alright if that someone is a CEO of a bailed-out bank, but in all other cases, you end up spending a sweet afternoon trying to figure out what went wrong.

Lock Formula Cells And Protect The Worksheet

So, it is better to lock the workbook formulas and protect the worksheet so that no one accidentally erase the formulas or mess with them. To do this follow the steps in the illustration above.

You can use the same trick to lock the charts and other worksheet objects.

Freeze Panes So that Your boss Knows what she is Reading

Freeze Panes And Splits

Freeze panes is a very useful feature. It locks the important items on the top so even when you scroll down you still see them. (You can do the same for columns, thus seeing the first few column even when scrolling left).

Bonus tip: Use excel tables (new feature in Excel 2007) so that you dont need to freeze panes. Learn more.

Hide Un-necessary / Calculation Sheets

It is fairly common for excel workbooks to have tens worksheets, some with data, some with calculations, some with intermediate stuff and only one or two sheets with actual outcome (like a dashboard or a report).

Hide Un-Necessary / Calculation Sheets

There is no reason to think that all these worksheets should be visible all the time to the boss. While it makes sense to have the data and calculations visible so that someone can audit the worksheet, I am sure you dont want your boss to waster her time doing that. So here is a handy tip:

  • Select all the worksheets other than the output sheets and hide them.

Hide Rows / Columns

If for some reason, hiding worksheets is not possible, you can still try hiding rows and columns. This is a very good way to prevent someone from accidentally messing a with a row of “really big and complicated formulas”.

Hide Rows / Columns

Just select the rows / columns you want to hide and right click and select the “hide” option.

Include Cell – Comments / Help Messages

We all know bosses have a busy mind. They dont have time to remember (or know) every little thing. Heck, sometimes they dont even know what somethings are.

Include Cell - Comments / Help Messages

I suggest using cell comments and help messages to give right information / guidelines to the spreadsheet end user, like “enter your age in this cell”. They are easy to implement and totally non-intrusive.

  • To include a cell comment, select the cell and press SHIFT+F2 and write the comment.
    To include a cell message, select the cell, go to data validation, go to “input message” tab and type what you want.

Data Validations, Error Messages

Spreadsheets are complicated things that are carefully crafted with umpteen pre-conditions and assumptions. I am sure there is at least one excel file out there that will only work if a cat enters the input. But we are not talking about cats, the point is, it is important that right data is fed to the worksheet before the formulas (or charts or payroll macro etc.) can work. That is where data validation can help.

Data Validations, Error Messages

It is very easy to set up data validation in excel. Just select the cell and go to data validation (in Data ribbon / menu). There are several ways in which you can set up data validations,

  • You can show an incell drop down box and ask users to pick from a list
  • You can specify the type of data allowed (dates, times, numbers, text)
  • You can specify the length of data
  • You can specify the conditions on data (like between 2 numbers, less than a given date etc.)
  • You can even use formulas to make your own data validations [example]

There are several examples of using data validation in this site. Go check.

Use Consistent Colors And Schemes

Anything looks better when it is consistent, even when it is internally screwed up. That same rule applies to excel workbooks as well. It will make your boss feel comfortable and relaxed to see an excel workbook with consistent colors and (simple) schemes.

Use Consistent Colors And Schemes

I suggest using excel cell styles to define the styles for your workbooks. This ensures consistency and you dont have to spend after hours formatting the worksheets. Read more about cell styles.

Name and Color Worksheet Tabs Appropriately

It doesnt matter if you have designed an awesome excel dashboard, your boss can be still pissed because the sheet name is “Sheet 69”. That brings us to the last and final point.

Name And Color Worksheet Tabs Appropriately

Use appropriate names (and may be tab colors) for the worksheet tabs. This makes the navigation easy and boss proof.

Learn how to color excel worksheet tabs.

Before Closing The Workbook, Select Cell A1 On The Correct Sheet

Just before you finally save the workbook and e-mail it to the boss, make sure you are on the right worksheet (ie the dashboard or the report) and selected cell A1. The ensures that when the boss opens the workbook, she sees the right tab with right information, not some calculations or formulas.

That is all, you have just learned a handful of trick to impress your boss.

Share your boss proofing tricks for excel

Got an awesome idea that has been working on your boss? Share it with us in comments. I love to hear your stories and how you are using excel to further your career.

Be awesome, Learn few more excel tricks:

We at PHD have a simple goal – “to make you awesome in excel and charting”. Here is a list of articles I recommend reading if you are new here or just wanted to be more.

Dilbert cartoon from Dilbert.com

Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

12 Responses to “Speeding up & Optimizing Excel – Tips for Charting & Formatting [Speedy Spreadsheet Week]”

  1. Greg says:

    Usually when I dump data into my files to update values, the formatting sometimes go to all rows or columns. So what I typically will do is go to the last row and then the last column and use Ctrl + Shift + end and then delete the cells highlighted. this will remove all unknown formats in the worksheet. Also, after you have done this, you won't see the benefit until you save the document. Sometimes I even have to close and reopen. The direct sign that this has improved is the size of the scroll bar and range.

  2. I have some comments on a couple of the points.

    1. Camera objects

    Tip: I use defined names in conjunction with camera tool objects.
    Each camera object gets a name like so:
    CameraItem01
    Referring to: =IF(PicsOn=1,Sheet1!$C$2:$S$5,"")
    By setting the PicsOn name to 1, the camera objects become "live", by setting the PicsOn name to 0, they become static. That improves performance enormously.

    4: Conditional formatting

    Lots of CF rules can slow down your workbook a lot. And it does not show the calc progress a "normal" recalc does on slow workbooks.

    5. Format whole columns/rows

    as far as I know, there is no problem with formatting entire columns/rows performance-wise, on the contrary, Excel is more efficient when you format an entire column than when you format a couple of 100 rows of a column.

    6. Styles.

    Here I wholeheartedly disagree. I say: Use styles. And use them religously.

    I mean: if you have applied a (custom) style and you need to change a small piece of formatting to make that one cell look right, force yourself to create a new style just for that cell. It forces you to really think about your spreadsheet design and try and streamline it. It also makes it much, much easier to change your sheet's appearance later on. See http://www.jkp-ads.com/articles/styles00.asp

    • Chandoo says:

      Very good insights Jan..

      Camera objects: I often use similar technique to turn off images in my dashboards.

      Formats: Thanks for clearing this. Do you think formatting larger ranges has any impact on macro speeds or it does not matter?

      Styles: Thanks for telling us about this. As I mentioned, I am not sure about the styles, but I am under the impressions that excessive use of styles can bloat the file size.

      • @Chandoo:
        If you stick to formatting entire rows/columns I don't expect macro speed is affected. Better: try it!

        If you use styles properly AND as a replacement of ad-hoc cell formatting, I expect you'll see that the file actually is smaller in size.

        This is because the cells now only have a reference to a single style instead of a reference to a custom cell formatting style.

        Many cell formatting combinations get created if you format your cells in an ad-hoc manner, which was responsible for the dreaded "Too many different cell formats" error in Excel 2003 and older. Excel 2007 and 2010 have a higher limit there, but it does slow down your file with many of them.

        Style bloat in my point of view is what you get by copying and pasting a lot from various other files and thus get Normal 1, Normal 1 1, Normal 1 1 1, ... I have seen workbooks with as many as 6000 styles, all caused by copying and pasting from various differently formatted workbooks.

        Excel 2007 and 2010 have fixed a number of issues regarding copying of styles, but for workbooks with a long editing history, the trouble is already in the workbooks.

  3. PremSivakanthan says:

    Cant emphasise the importance of reducing the amount of formatting in a workbook - this has a suprising impact on workbook size. I've always kept to one font, and no more than three colours - this has worked well for me. Keeping things clean and simple should be the motto when designing any type of report/dashboard that is going to be distributed around the organisation.

    You can also save a few MB's by saving as an xlsb file.

  4. Ron says:

    Has anyone else mentioned that only the first item in the "more ..." section is hyperlinked.

    Prem, have you confirmed by trial that XLSB file size is smaller than same XLSX file? Sorry, I just tried it with a small, simple XLSM file. I was surprised to see you are correct. File went from 40kb to 37kb. I thought that the compression of the new file would make the new file smaller.

    • Hui... says:

      @Ron
      All Excel files have a minimum overhead that they have to include which is around 8KB, just to store a simple number or letter.
      So with a small file of 40KB you will not see a huge improvement in file size
      With files greater than 10MB you will see large improvements in size.
      The compression gained also depends on what the contents of the file include. That is straight numbers, text and formulas can be greatly compressed whereas files that contain a lot of objects especially pictures gain very little from using *.xlsb files.

    • Chandoo says:

      @Ron.. the other articles are yet to be published. All the links will be updated by Tuesday (27th March).

  5. Mil says:

    Hi,

    I have a need for x,y scatter chart to have arround 30 data series.
    like this:
    http://i65.tinypic.com/jra8lc.jpg
    Also I have multiple of such charts in one excel file.

    Is there any way to make excel faster, because it is irritatingly slow?
    (though my PC config. is quite on the level)

    Thanks in advance!!!

    • Hui... says:

      @Mil
      30 series won't be the issue
      It is the number of points in the series
      Also remove all fancy modifications, like shadows, fancy fills etc

      I'd suggest asking the question in the Chandoo.org Forums http://forum.chandoo.org/
      Attach a sample file with an example of what you are after

      • Mil says:

        @Hui

        I've already removed all fancy mod. The problem is there are also a lot of data points in one series.
        Thanks for the advice!

        • Hui... says:

          @Mil

          Do you really need every data point ?

          Where is the chart being presented Screen or Report

          On a screen you are unlikely to use more than 800 pixels for the chart area
          So using any more than about 250 points is not adding values

          On an A4 chart in landscape lets say the chart area is 6" long and at 300dpi that is 2000 pixels
          Once again using more than 800-1000 points will not add any value

          I have seen charts with 30,000+ points and when this is explained and a work around shown people appreciate the speed up

          For a work around try setting up an area where you select say every x'th point using an Offset or Index Function
          Then plot that data

          I'd suggest asking the question in the Chandoo.org Forums http://forum.chandoo.org/
          Attach a sample file with an example of what you are after

Leave a Reply