Inheriting a spreadsheet from someone else

There will be times when you have to work with a spreadsheet which someone else created. It might have various issues – it might not work properly, it might be appalling to use, the formulae might be wrong – all sorts of reasons why you might end up just thinking it’s better to redesign it.

If this is the case for you, please read on.

First steps:

  • Do a Save As, or otherwise create a copy. Do NOT run the risk of overwriting the original in case you need to refer back to it!
  • Use Ctrl + Home, Ctrl + End and Ctrl + arrow keys to look across the whole data, so you get a sense of what it is you’re looking at.
  • Unhide all columns and rows in case any are hidden.
  • Widen all columns and rows, to see everything clearly.
  • Check for blank rows and columns. Don’t delete too readily; they may be there for a reason. Only delete them if you are genuinely sure they should not be there.
  • Run a spell check.
  • Use Find & Replace to correct any repeated errors (such as . instead of / in dates).
  • Consider removing formatting if it is hindering you inspecting the spreadsheet. You can do this easily via Home, Clear (on the far right of the Home tab), Clear Formats – but please be careful not to choose Clear All, which literally deletes everything. Remember, though, that dates will resort back to ‘serial numbers’, which can be very disconcerting.
  • Go to Home, Find & Select (on the far right of the Home tab), Formulas. Now, apply colour to all cells which have been highlighted. Go through all the formulae to ensure that not only are they consistent, but that you understand what they do. Repeat Home, Find & Select, Formulas and remove the colouring afterwards, if you need.

Redesigning

  • If it’s just too unwieldy to work with in its current state, feel free to start from scratch, taking care to consider time wasted in redesigning offset against time saved in an improved version (your manager will thank you).
  • Build back into the spreadsheet any aspects of functionality which will improve use, such as Freeze Panes, formulae at the top, a Notes column at the end, colour coding, and everything else covered in Spreadsheet Design and Data Integrity.

Good spreadsheets…

  • always have column headings
  • never have completely blank rows or columns
  • have appropriately formatted data
  • are designed with the user in mind.

Even better spreadsheets…

  • include a key or notes to explain aspects if needed
  • have some kind of unique reference for each line, if appropriate, to aid data checking or looking things up
  • use features like Freeze Panes if it helps
  • have the formula(e) placed at the top if the data is going to keep growing
  • NEVER have a value in a formula.

Happy spreadsheeting!

As this was an additional post with nothing to do with the exam, you might want to just click your Back button & carry on with your learning. Or, you can return to the Data Integrity or Spreadsheet Design pages.

All about Charts

I think charts are one of the nicer things about Excel, because you have have an awful lot of fun presenting your data in a graphic way. Just like anything in maths, there are some basic rules that all charts should obey; and as well as various tricks to getting Excel to do what we’d like it to, we also have to bear in mind that in the exam you’ll be following very specific rules about what your charts should have, do and look like – so I’ll try to balance all three of these aspects.

What should charts actually do?

This seems like a silly thing to ask, but in fact a lot of people don’t actually consider why they are including a chart in the first place and almost use them as a space-filler. In fact, they can be an incredibly powerful tool to show the patterns in the data. So I think it’s worth going over the basics:

The different chart types:

If you need a reminder, there are plenty of online guides to help you choose the right type. There’s a brilliant one here, for example, which graphically divides charts into four basic types (distribution, comparison, relationship and composition) – well worth a look.

Don’t get stuck in a ‘my favourite chart’ kind of rut. Every time you have to create one, think critically about who it’s for, what you need to display and why. Be prepared to try out a few different versions – you might surprise yourself by detecting a pattern you’d no idea about, and if you can translate that into real business insights your managers will be sorely impressed.

All charts should have:
  1. A title. This should explain what the chart is telling you.
  2. A means of identifying the bars/slices/dots/lines. Don’t assume it’s obvious.
  3. What the different axes represent. Are we talking how many chickens crossed the road here, or something a little more useful?
  4. An idea of scale. Are your numbers tonnes or milligrams? Percentages? Are we looking at pounds or thousands of pounds? Is this data over a week or over a decade?
  5. A source for the data. This is only really applicable if the chart is being used in a report outside of its originating spreadsheet but people should still be able to inspect the raw data should they wish.

Setting up Excel to make your chart

All these features and instructions are covered in this PowerPoint file – please remember to download it to view, otherwise it won’t animate.

Firstly, and most fundamentally, ensure that all your data is contiguous: that is, all in a block with no gaps or rows/columns missing.

Aside from the gross insult to data integrity by having blank rows and columns willy-nilly, you’ll make Excel get ever so confused and you’ll have to work harder to get it to do what you want it to. So just save yourself the faff and get into the habit of never having blank rows and columns.

What data is going into your chart?

You have a choice: all of your data, or some of it. In the above example, I could include both years if I were making a bar/column; but I would not be able to use a pie chart unless I decided to show just the 2016 data or just the 2017 data.

  • To select all: click somewhere in the data. That’s it, no selecting, no dragging – just click somewhere in your data.
  • To select a portion: click and drag over the first range, then hold the Ctrl key down and click/drag over the other range(s). DO NOT ‘CLICK OUT’.

It’s worth noting that if you need to select only a portion of the data, the ‘height’ and ‘width’ have to be the same for each section you pick. Examine these examples below:

Can you see that in the top image, A1 hasn’t been selected? That means that the ‘height’ of the two ranges isn’t the same. In column A, it’s only four rows, but in Column B it’s five rows. Make sure they’re the same, even if A1 is completely blank.

In these two images below, much the same thing applies. Because A1 hasn’t been selected, the first range (B1:C1) is only two columns wide whereas the second range (A3:C4) is three columns wide.

In the second image, A1 has been selected, which means the two ranges are now the same width.

If you ever forget and you end up with a weird chart, it’s probably because of this! But don’t worry, you can change the data once you’ve created the chart – we’ll look at how shortly.

Inserting the actual chart

The next decision you have to make is what type of chart you want. There are a few different ways you can actually insert a chart:

Via mouse:

  • click the Insert tab, then click either Recommended Charts to see suggestions Excel is making OR click directly on the type of chart you’d like. Move your mouse over the suggestions to see a version of your chart.

Via keyboard shortcut:

  • press F11 – this will insert a column style chart on a completely separate tab
  • press Alt+F1 – this will insert a column style chart in the same tab.

If you accidentally insert the wrong type OR you have it in the wrong location, don’t worry – you can change this.

Changing the type and/or location

If you realise you actually prefer a different type or location, make sure you’re actually ‘in’ your chart, that is, you’ve clicked in it. You get an additional pair of tabs become available when you’re in the chart which disappear when you’re not in it, so if you can’t see them, double-check!

Click on the Design tab if that doesn’t show, and inspect the final four options:

  • Switch Row/Column means Excel will change from, say, presenting each year as a separate bar to each country as a separate bar. This can often throw up surprising outcomes, so don’t forget to have a peep at this option and see what you get.
  • Select Data obviously allows you to go back to your raw data and reselect it if you need to add or exclude anything.
  • Change Chart Type is self-explanatory. Again, you get a preview of what your data would look like rendered as that chart, so it’s a really useful feature.
  • Finally, Move Chart allows you to switch from having your chart in its own worksheet (and you can even choose what name to give the worksheet – see where it says Chart1 in the dialog box below?) or as an ‘object’ (moveable chart) in the same tab as your source data.

All happy with the location and type? Let’s dive into making it look better!

Formatting your chart

Firstly, you will need to add a chart title, and, if you have a bar/column/line chart, axis titles as well.

Remember to click somewhere in your chart if you haven’t already. From the Design tab, click on the very first option in the ribbon: Add Chart Element. Here you can see the options for Chart Title and Axis Titles (Primary Horizontal / Primary Vertical).

Choose whichever option, type away, and press Enter when done to confirm your typing.

Help! Is the x-axis vertical or horizontal?

Should the exam ask for an x or a y axis title and you can’t remember which is which, use a bit of Mark 1 Brain. In our example here, which of the two axes is going to have a title of ‘Sales in £000s’? It’s not going to be the horizontal one, is it?! So don’t worry so much if you can’t remember. Use the text to guide you.

If you’re curious, though, the horizontal axis is always the x axis.

Editing the titles

Click once, then once again. This is not the same as a double-click! Use your backspace/delete as required and correct your title. This time, do NOT press Enter to confirm, or you’ll put in a line break! Just press the Esc key. Editing the vertical axis can be a bit funny as you’re working sideways.

Changing the colours

Essentially, it’s as simple as pointing to whatever you want to change, right-clicking, then choosing a colour from the little pop-up with Fill and Outline. However, you might come a cropper if you do this in all circumstances!

Have a look at the two images below. They both show charts formed from the same data; the column chart is from all of the data, whereas the pie is from the first column only (Year 1).

As you can see, I clicked on the very first bar of my column chart. Can you see that every UK bar has a blob around it? This is called a Data Series, and refers to an entire row in the originating data. A single cell within that data series is called a Data Point, as you can see from the panel that appears when I point to one of the UK bars.

Now, let’s have a look at a pie equivalent. Obviously I can only do one column or row at a time in a pie, so here I’m looking at Year 1. When I click on it, can you see that every single slice has a blob on its corner?

In just the same way as the column chart, an entire column of data is known as a Data Series, and an individual cell is a Data Point.

When you first click on an element of your chart like this, you get the whole Data Series. If I were to right-click at this point and change the colour, every bar would change colour. This is great for the column chart… but not for the pie chart, because every slice would change to the same colour! Uh-oh!

So here is A Really Important Thing To Know!

  • IN A COLUMN CHART, SELECT THE DATA SERIES before changing the colour. You need to make sure EVERY COLUMN has blobs on it! Click once, then right-click to access the Fill and Outline pop-up.
  • IN A PIE CHART, SELECT A DATA POINT before changing the colour. You need to make sure JUST THAT SLICE has blobs on it! Click once, then ONCE AGAIN to select the individual slice (this is NOT the same as a double-click!). Now you can right-click and change the colour!
Changing an individual bar in a bar/column chart

Essentially, what you need to do is to select the Data Point, rather than the Data Series. Just as you would for a pie, click once then once again. You will see first that every single bar has a blob on its corners, then when you click again you will see only your one bar has blobs on it. Now you’re good to go with the right-clicking.

Extra chart features

Pretty much everything aside from the above is controlled via right-click, Format. As you can see from the images here, the Format option changes depending on what you right-click on, but is always at the very bottom of the menu.

Whichever you pick will open a Task Pane down the right hand side of the screen with various options you can access from it. You’ll find three or four symbols at the top of each Pane which give you options relating to the appearance (Fill/Line, Effects, Alignment) and an option specifically relating to aspects of the chart you’ve chosen, such as how to change the numbers on the axes, how far apart the bars are and so on.

Having numbers next to the slices/bars

You may want to show the actual numbers relating to each slice or bar – or even, in the case of a pie chart, show percentages instead of numbers. These are called Data Labels.

In order to add them, right click and select Data Labels. Once you have them on your chart, right click on any one of them and select Format Data Labels, whereupon you will have the following Task Pane which allows you to include things like the Category Name (in this case, the country names) or percentages – or several at once. Obviously if I chose to show the Category Name, I could dispense with having a Legend (key) altogether.

Bear in mind that the percentage option isn’t available in bar/column charts, and sometimes the numbers are so tight up against each other it’s hard to read them. But does your chart really need to go into that much detail anyway?

Changing the values on the y-axis

Looking at our countries data above, you can see that the lowest value is 425 and the highest is 720. That means all the bars end at more or less the same level, and therefore there’s not much detail to be had. However, you can reset the lower limit so instead of starting at zero it starts at, say, 400. Compare these two charts where you can see the difference starting at 400 has made. The charts are the same height (i.e. the same actual dimensions).

To access this, right-click on the vertical axis and choose Format axis, then from the Axis options in the Task Pane, reset the Minimum and Maximum bounds.

Exploding a pie chart

What? Is this really a thing? Oh yes indeed, and what a fun thing it sounds! Before you go getting visions of yourself indulging in your favourite food in pie form, I’m sorry to inform you that it’s actually just a pie chart where one or several of the slices have been pulled out from the centre.

There’s no secret to it. All you need to do is click and drag from the centre outwards, and the same in reverse to bring all the slices back together again.

Setting a trend line

I noticed that one of the previous mocks which don’t seem to be available any longer asked for a trend line across a bar chart.

In order to add one, think quite carefully about exactly which Data Series you would like your trend line to apply to – if you have one for every single Data Series it could get a bit cluttered and hard to read.

Having decided, right-click on any one of the points in the series and choose Add trend line. Simple!

Remember, all the examples above are animated in the PowerPoint file you can download here.

Practising

To be honest, you can play around with pretty much any data and learn about charts from there, but if you would like to use the example shown here, click here to download it. Try out the different ways to insert a chart, then just simply right-click here and there on what you’ve created and see what you can work out just from seeing where the whim takes you! Have fun!

If you’re following the suggested Learning Plan, please click here to go to the next post.

Pivot tables and charts

Let’s just get things straight here: I love PivotTables. I do! Call me a geek, but I don’t care! They’re just the best thing for playing around with data, and if you like to make sense out of your data they’re just the ticket. I find it amazing how people seem to be of the opinion that ‘doing pivot tables’ is some kind of woo and if you can ‘do’ them you’re an advanced Excel user… once you know how they work you’ll be gobsmacked at how easy they are!

What is a PivotTable?

If you have a load of raw data – say, a table with information below in list format – it can be hard to get any kind of meaning out of it. A PivotTable will group and collate the data for you in an instant, with different ways of summarising the data. The combinations are almost limitless and can be changed in a flash, too.

It works off your column headings: these feed into the PivotTable. Any column can be used as the data within your table – even text, because what Excel will do is count it up. Any column with numerical data can be counted, summed, averaged, maxed etc, of course.

When you first lay out your PivotTable, you will get a task pane down the right hand side of your screen. This enables you to create and then control the contents of the table, so it’s worth keeping it there – some people see something extra pop up on their screen and automatically close it.

You’ll also get two additional ribbons appear at the top of your screen – like many features (such as charts or headers & footers) these only appear when you’re within your PivotTable – if you click outside, the extra ribbons and the task pane down the right hand side will automatically disappear.

Creating a basic PivotTable

I’ve recorded the steps in an animation which you can download here. To follow along with the same spreadsheet I’m using, download it here.

Firstly, make sure your data is in one single range – no completely blank rows or columns. Now, click anywhere within the data – don’t waste your time by highlighting it all – then click the Insert tab. PivotTables are so important it’s the very first choice on the left.

Now you have your PivotTable dialog box, which allows you to double-check that the correct data is being pulled into it (your entire data should have a dotted line around it) and to decide where to place it.

Tip: ALWAYS have the table placed onto a new worksheet. As you play around with your PivotTable, it grows and shrinks – and if it grows onto data that’s already on your spreadsheet, it can overwrite it.

Having inserted it, you end up on a new sheet with a couple of things going on. Firstly, on the left, you see a funny area – this is where your PivotTable will appear when you tell Excel what to put in it. Turn your immediate attention to the panel on the right…

… a long thin panel called PivotTable Fields. At the top are all your column headings – these are called Fields. Below are four areas which correspond with the PivotTable’s functionality. Click and drag from the top part into one of the bottom four parts. Once you release the mouse, you’ll see your PivotTable on the left spring into action.

A note about the Values panel: this is where your data goes, like how many sales or the maximum number of transactions per month. In this example, Region is text – no problem, Excel will just use Count to summarise!

Amending the PivotTable

So, you try something and it kind of doesn’t really do anything for you. No worries – you can amend it in a snap!

Move to the lower four panels and click and drag your field into a new location. For instance, you may realise that your table would work better if the columns and rows were switched. Just drag and drop from one place to another.

Removing a field from the PivotTable

Simply move to the lower four panels and click and drag your field off to the left. You don’t have to go far, just enough that your cursor has an X on it. That’s it! Done!

Changing how data is summarised

If you have numerical data feeding into your Pivot, you may want to change it from SUM to COUNT or MAX or what-have-you.

Move to the field in the Values section of the panel on the right. Click once on it; you’ll get a small menu appear.

Click on Value Field Settings. You will now get a dialog box which allows you to do various things:

  • Firstly you can change the way the data is summarised in the central area.
  • Secondly, you can have a custom name for your column heading – here, I’ve changed it to say Average Sold, which makes a bit more sense. Unfortunately each time you amend your PivotTable, this setting gets lost – so do it at the final step.
  • Finally, you can click on Number Format at the bottom which will give you the Format Cells dialog box, so you can choose a certain number of decimal places (certainly, with the Average I chose, I got a crazy amount of decimal places to start with, which can be quite alarming!).

Layering fields

You may find a situation where your fields just don’t look right as rows and columns, as shown here:

Really not useful! So, instead of having the Label field in my Columns panel, I’ve actually placed it below the Sales Rep field in Rows – as shown here…

…which ends up presenting data in a completely different way! You can ‘fold up’ (called ‘collapsing’) each set of detail by clicking on the small next to each bold line. Suddenly your data analysis is becoming really powerful!

If you think that it would be better summarised the other way, click and hold on the lower of your two fields and drag up gently – when you get just above the upper field, you’ll see a solid horizontal bar appear. Release your mouse when you see this, and you’ll have swapped the fields over.

Just as a note – if you have a field which contains dates, have a play with putting this in the Row area – you can summarise by year, quarter and/or month and each of these appears as a separate field in the panel on the right, so you can remove it if need be!

Filters

The Filters panel is not commonly used. If you add a field to the Filter panel, you’ll see why rows 1 and 2 were left blank – you’ll get a drop-down which allows you to select just one, or several, of your items. This can be handy, but I rarely see it in use.

Extra summary options

You can find all sorts of ways to present your data – layering rows and/or columns, having a filter, changing the Value field setting… One thing that many people don’t realise is just how many parts of the PivotTable are double-clickable and right-clickable.

For instance, if you have Sales Rep in Rows and Quantity Sold as your Value field setting, double-click on one of the names – you get the option to add a summary detail – this is the same as adding a field in the Rows section. Double-click on one of the numbers, and you get a new worksheet with a Table summarising just that salesperson’s sales!

Now try right-clicking on various parts of the table. One thing I love is right-clicking on a number, and selecting Show Values As – here, you can choose to have percentages and all sorts! You can also find PivotTable Options, which give a whole wealth of things you can do with the table as a whole, including controlling printed output.

Changing the raw data of a PivotTable

There are two things that you might have happen:

  1. Your raw data changes. Any time your original data changes, you may need to ‘push’ the changes through to your PivotTable. You can do this by clicking the Analyze tab, then clicking on the option called Refresh.
  2. You need to add extra rows. You might have noted in the Create PivotTable dialog box that the data is set by absolutes. This means that when you need to add extra rows to your source data, they won’t be brought in. How to fix this?

Make sure you’re somewhere in your PivotTable, and click on the Analyze tab at the top. Almost immediately below where you clicked is an option called Change Data Source – this allows you to extend the range. However, there is an easier way: before you set your PivotTable up, you can format the data as a Tablesee here for a reminder. That way, as soon as any data is added, it’ll get sucked up into the Table automatically.

PivotCharts

These behave very similarly to ordinary charts, but you have the data manipulation options of a PivotTable. Be warned, though – once you set it up, changes to one will automatically be reflected by changes in the other!

Click somewhere in your PivotTable and on the Analyze tab, look for PivotChart, off to the right. Select the type of chart you prefer and click OK. You may need to resize it as sometimes the chart is a bit tiny.

You can see that it has the same summary options (‘Field Buttons’) as a PivotTable, which can be clicked on to change what goes into the chart. If you right-click on one of the Field Buttons you can choose to hide them, which is useful if you want to print it out or include it in a Word document.

Overall, the best way to get to understand a PivotTable’s functionality is just to play. Drag, drop, click, double-click, right-click… just go right ahead and explore! I guarantee that spending half an hour just dabbling will give you plenty of ideas for future use. And, now it’s in your skill list, people will think you’re some kind of demigod!

As I mentioned above, I’ve recorded the steps in an animation which you can download here, and you can play around with the same spreadsheet I’m using, which you can download here.

If you’re following the suggested Learning Plan, please click here to go to the next post.

Automatic subtotals

Subtotals are mini-totals placed within a spreadsheet, say totalling every Region 1, every Region 2 and so on. We can do them manually, or automatically. You might be asked to do them manually in the exam, but please do follow this through as it’ll explain a lot about how it works.

We’ve already looked at one way we can do them automatically – via Formatting as a Table – but that only does them at the end, in the final row. Here’s another way, which is really useful.

Applying Automatic Subtotals – step 1

Before you even get going, there’s something very important to understand about how it works. I have a little spreadsheet here in which I’ve entered everything for a VAT return, so I’d like to have a subtotal for each Box so I can just copy and paste it in. Take a look at this image here, which shows the Subtotals dialog box:

Can you see the first step is saying At each change in: ? It’s picked up our first column heading, Net or VAT. BEFORE WE EVEN GO ANY FURTHER, let’s think about what’s going to happen. Each time what’s in the Net or VAT column changes, Excel will pop a Subtotal in!

So that would mean one appearing at every red line, here:

That’s crazy, right! Loads of Subtotals, and the data wouldn’t even work properly because it’s not grouped! We MUST MUST MUST Sort before we do anything else!

Similarly if we wanted to Subtotal on the second column, UK/EU/World, we’d get loads of subtotals…

And unless we Sort, it’ll be a bit doolally!

So – now we can actually get going!

Applying Automatic Subtotals – step 2

1. Firstly, have you made sure your data is all in one block, no blank rows or columns, as per your data integrity principles? Great! All you have to do is plonk your active cell somewhere in the data. Doesn’t matter where – just save yourself the bother and don’t highlight everything first. Sort as per the above. In this example, that means sorting Column D: Box.

2. Now click on Data, then Subtotal (quite a way over on the right of the ribbon). You’ll get the Subtotal dialog box.

We want a subtotal each time the data in the Box column changes, so that’s the first instruction to give it:

3. Next we need to decide how we want our data Subtotalled:

You can see from the Use function: drop-down, we have all our favourite friends, SUM, COUNT, AVERAGE, MAX and so on. There are 11 ways you can choose to subtotal your data – even a COUNTA, if your column contains nothing but text.

4. Next we have to tell it which column actually contains the data we want to subtotal. In my example, I can’t SUM the Box column, because there aren’t any numbers in it! So – you guessed it – I want the SUM subtotal to apply to the Amount column.

Incidentally, there’s nothing to stop me having more than one column subtotalled – at this stage, they would each be totalled with SUM, though. All I’d have to do is tick more than one option.

5. Looks like we’re good to go! Let’s click OK, and we can see our subtotals applied!

Oooh, fancy, hey?

Firstly you’ll notice that each time the information in column D, Box, changed, Excel has given us a Subtotal.

But you’ll also have noticed these bar thingies going on down the side. They allow you to view your data in different ways – so you can ‘drill down’ very quickly to a specific region and just display that.

Either click on a and it will fold your data up, displaying only the row with the Subtotal on (and it’ll turn into a ), or click one of the numbers at the top to fold up everything at once.

This is called collapsing (with the ) or expanding (with the ). Therefore the numbers allow you to expand or collapse all in one hit.

Have a go yourself

The spreadsheet I used for this is available here, so please feel free to download it and experiment with applying Automatic Subtotals to different columns.

More advanced Subtotal tasks

There are a few fancy tricks you can apply to your Auto Subs, which never fail to get lesser users thinking you’re the absolute biz 😀 I’ve shown you how in the PowerPoint file you can access here, which also demonstrates the above. (Remember to download, etc etc!)

One is applying formatting only to the Subtotalled rows. Another is copying the data elsewhere, but only the Subtotalled rows. To do these, you need the same feature to get off the starting blocks:

  1. Select your data first. For formatting, you can include your header row or not; you can include your Grand Total row or not. For copying, you’ll need to include the header row.
  2. Use the keyboard shortcut Ctrl+G. This brings up the Go To dialog box. Then click on the Special button at the bottom. (This is the method I use in the gif; alternatively, from the Home tab you can click on Find and Replace > Go To Special).
  3. Choose Visible cells only, then click OK.

Now you can apply the formatting or do the Copy/Paste as required.

Awesome, hey!

Incidentally, in the demonstration gif you can see when you have selected Visible Cells only and then copied, you get a giddy little border round every single part, which makes your eyes go funny! Here’s a tip: once you’ve pasted and you’re certain you’re not going to need to paste anywhere else, press the Esc key on the keyboard and it’ll stop the ants marching round the borders right in their tracks.

Understanding the Subtotal feature – and the SUBTOTAL function

If you look in each of your automatic subtotals, you’ll see a function – SUBTOTAL. Although I discuss it in the PowerPoint file, let’s have a dig into it here. It’s pretty straightforward. The syntax is SUBTOTAL(function_num,ref1,[ref2],…) and the arguments are as follows:

  • function_num: this refers to exactly which function you want to apply to your subtotal. This was done for you at the second step of your Subtotal dialog box. Each specific number refers to a function. 1 = AVERAGE, 2 = COUNT, 3 = COUNTA and so on. They’re in alphabetical order, usefully!
  • ref1: this refers to the range or cell you’re applying the subtotal to. This was done for you at the third step of your Subtotal dialog box.
  • [ref2]: remember, anything in square brackets [ ] is an optional argument. So if you have any other cells or ranges to add in, do so here.

There are various notes about the type of function_num and the sort of input it requires, but I’ll cover that in the actual SUBTOTAL function post, which you can go to here. It’s also the next topic on the suggested Learning Plan.

Do have a play with the sample spreadsheet. AutoSubs are so handy!

If you’re following the suggested Learning Plan, please click here to go to the next post.

 

Removing duplicates

There’s a very handy tool in Excel which allows you to check a large amount of data, and if any duplicates are found, to have them automatically deleted. Needless to say it’s called Remove Duplicates.

You can follow along with the PowerPoint file here – just remember to download it otherwise it won’t animate properly.

Setting it up

Remember that if your data has been laid out with good data integrity principles, you won’t need to do any highlighting beforehand – just place your active cell anywhere within the data.

Click on the Data tab, then in the middle is the option Remove Duplicates.

This brings up a dialog box which checks various things – the presence of a Header Row (i.e. a row with titles in, at the top of your data), and which columns you might wish to remove the duplicates from. Tip: leave everything ticked!

Click OK and Excel will tell you how many duplicates it found and removed; and how many unique values remain. That’s it!

Note: if you have to do this in an exam – you certainly have to in one of the mocks – it will ask you how many duplicates were removed. If you forget to make a mental note of it, don’t worry – you can use Undo on this particular feature (with some things, you can’t) so you can bring the duplicates back and run the Remove Duplicates again.

What not to do

If you have many columns, you may be tempted to think, oh, I’m only interested in seeing if there are duplicates in one of the columns. So when you get your dialog box, you merrily remove the ticks from all the other columns that are listed.

Um, no – not a good idea! What will happen is that it will remove all the duplicates from that column only – meaning that if there was any important data in the other columns you’ve just lost it! Eek! Remember, luckily with this feature you can use Undo. Phew!

Extracting unique values

Sometimes you might hear this phrase ‘extract unique values’. It’s basically removing duplicates, but what you’d be wise to do is to copy the column concerned and paste it elsewhere, away from your range of data. So if you’re asked to produce a list of all the different store locations in your chain of shops and you have a spreadsheet listing transactions or orders – just copy the column which has all the stores in, and use remove duplicates to extract the unique values.

This is actually quite a handy thing to do, because you could then use the unique values to act as ‘feeder cells’ in a SUMIF or COUNTIF. (For a reminder of this, look under Variations on a theme / 1 – the second argument, criteria in this post here.)

Over to you

Here are a few exercises for you to practise, including a couple of other features we’ve already looked at. I’ve tried to keep the tasks vague, like a non-Excel-user would ask you, to keep you on your toes – so see if you can decide which tools you need to throw at the spreadsheet!

If you’re following the suggested Learning Plan, please click here to go to the next post.

Filtering data

Filtering is a means of automatically hiding rows which you don’t want to see. Say you have a spreadsheet showing information about different regional sales and you only want to see those of Region 1 – Filter is your friend.

You can download a demo gif PowerPoint file here – if you’ve come here just to learn about top 10/bottom 5 as per the mocks, it’s worth scrolling down and reading that section below, too.

Using Autofilter

Just as with any data tool, make sure you click a single cell somewhere within your data (bearing in mind no blank columns or rows, as per your Data Integrity principles!) before applying it. Don’t waste your time highlighting the whole data!

Filtering is related to Sorting, so, it’s no surprise that it’s found under the same button on the Home tab – way over on the right hand side:

Of course, because it’s a Data tool, you can also find it on the Data tab:

Once you click the Filter tool, you get little triangles on all your column headings. These may obscure your titles, so you may find you need to widen the columns a snidge so the titles show fully.

Applying a filter

Click on any of these small triangles (filter buttons) and you will see you have a panel which allows you to choose to display only certain items. Click Select All, then click in the individual items you want to display. Here, I’m filtering Type to show Excel and Word only.

Click OK, and Bob’s your uncle. (In fact, I do have an Uncle Bob!) Note that there are three different ways you can see that a filter has been applied to your data – can you spot them all?

More filtering options

As well as using the Sort options at the very top of your Filter drop-down, you also have specialised filtering options available either under Text Filters (if your column of data contains text) or Number Filters (if your column of data contains numbers). This is a useful tool if you are looking for someone but you’re not quite sure how to spell their name – are they Jenny, Jennie, Jenni or Jennifer? You could choose Begins With… and type Jenn or Contains and type enni.

Displaying only the Top 10, Bottom 5, Bottom 25% etc

Understandably, this is only available via Number Filters. Click on your filter button and hover over Number Filters until you have an additional fly-out panel:

Click on Top 10… and you will see the following dinky little dialog box.

The first panel is a drop-down which allows you to choose Top or Bottom. The next panel allows you to choose what number you want to show: top 10, top 50, bottom 3 etc. The final panel is a drop-down which allows you to choose Items or Percent, Items being numbers.

An important observation about Top 10/Bottom 5 etc

In the image below, I’ve chosen to filter Sales for Bottom 5 Items.

In this example, you can see I’ve actually got 8 items, not 5. Que pasa? Well, the first one is £300, I’m good with that (item 1, of course). The next one is £400, but there’s two of them (items 2 and 3, obviously). The next one is £500. Which one of the five £500s should it show? Should it arbitrarily decide to pick two random ones (for items 4 and 5)? I doubt that would be good for anyone – so of course it’s going to show all five of them. Now we’re over the 5 items limit, so it’s not going to show any more.

So if you get more than your chosen number of items, don’t panic! It’s supposed to be like that!

Removing Filters

To display all the data again:

From the Home tab, go to Sort & Filter, and click on the little funnel with the red x on it. Alternatively, go to the Data tab and click directly on the button with the same picture of the little funnel with the red x on it.

This will instantly display all your data in every column but your filter buttons remain.

To get rid of the Filter full stop:

From the Home tab, go to Sort & Filter, and click back on the Filter button (the one with the funnel on it). Alternatively, go to the Data tab and click directly on the Filter button.

All hidden data will be displayed again and your column headings no longer have their filter buttons.

Click here to download a PowerPoint file which demonstrates all of the above. Remember to download it, otherwise it won’t display properly.

If you’re following the suggested Learning Plan, please click here to go to the next post.

Errors and Formula Auditing

There may be a time when you need to check over your data to ensure it behaves properly – or for that matter, if you inherit a spreadsheet from someone else and they’ve left it in a bit of a mess.

There are various tools you can deploy to help you straighten things out. Bear in mind there are three main directions to take: checking the formulae are correct (which includes understanding error messages); checking the way formulae ‘flow’ around your spreadsheet; and checking the actual data in the spreadsheet. Re the last – we’ve covered much of this in previous posts, but there’s a massively useful function I’d like to introduce you to, so do check it out if you have data to tidy up.

All of these are animated in a PowerPoint file which you can download here.

Checking the formulae are correct

Excel tries to be as helpful as possible with this, with a variety of useful tools.

The small green triangle

Firstly, you might have noticed a small green triangle in the corner of one of your cells. This simple spreadsheet has three.

What these could be is a variety of different things. Click into the cell and a small yellow diamond will appear. Click on that diamond, and you’ll see a variety of options.

The commonest error it will detect is an inconsistent formula. In this case, you’d expect every total to be from B to D – so there’s likely to be something up with the range referred to in our SUM. In this case, that’s exactly what’s happened: the first error was because the SUM was only adding C4:D4, and the second error was because the SUM was only adding B8:C8. The last error was because there was a random AVERAGE in there, instead of a SUM.

Before you boldly click Ignore Error, do take the time and trouble to actually look at why it’s coming up with the suggestion – it might be a critical problem! Don’t also just happily click Copy Formula from Above without checking that the one above is correct.

Showing/hiding formulae

Rather than showing the results to your formulae, it might be handy to show the actual formulae instead. This does weird-looking things to your spreadsheet – but panic not, once you show the results again, it all corrects itself.

To do this, hold the Ctrl key down and press the key to the left of your 1 key (no-one seems to know its actual name!):

As you can see, the columns have been widened and the formulae are displayed – also, any number formatting is removed, so dates display as serial numbers, currency symbols are removed and so on. In this image, you can scan down column E and see very quickly why the green triangles appeared.

Press the same combination again and it will resort to a normal spreadsheet, displaying the results of your formulae, resetting column widths properly and reapplying any number formatting.

Errors, how they occur and what they mean

All errors in Excel begin with the # symbol, and they’re not random – they each have a meaning. And, despite what I might feel sometimes, they’re definitely not spiteful – often when I spend ages constructing a tangled formula and I get an error message it can feel like Excel is laughing maliciously at me!

The commonest one you might see isn’t actually an error at all: it just means that your cell isn’t wide enough to display all the numbers correctly (and remember, by ‘numbers’ I also mean dates and times). Just widen the column.

Other errors occur as a result of a bad formula.

For instance, you may find you get all the hashes no matter how wide the cell is. That’s often the result of a critical issue in a formula, such as having negative time – the result of subtracting 17:00:00 from 08:00:00.

Here’s a list of the commonest errors and how they’ve been created:

  • #VALUE! a result of trying to perform a mathematical calculation (using +, -, * or /) on something which isn’t a number. You can see that I was trying to add A2 (the number 50) to B1 (some text) – how can I add a number and a word together?! Check your cell references and/or data entry.
  • #DIV/0! occurs because it’s a mathematical impossibility to divide something by zero. Nothing is in cell B2, so my formula fails.
  • #NAME? is given when Excel doesn’t recognise the name of a cell, named range, or function. Check your syntax and references carefully.
  • #NULL! is the result of not putting in a range correctly. You have to use : to separate the start and end cells – in this example, a space was used instead.
  • #REF! is what you get when you delete a cell or range which is referred to in a formula. It can be so awful when you do a spot of tidying up only to realise you’ve mauled a formula somewhere else on your spreadsheet – and you tend only to spot it after you’ve saved, so you’ve no means of reconstructing without a lot of hassle.
  • #N/A is the classic error from a VLOOKUP when the input for the first argument (in this example, cell A11) is empty. Of course, nothing can be looked up if you don’t know what you’re looking for to start off with!
Circular references

This is an interesting type of error. Supposing you say that A1 equals F1. Then you say that F1 equals K1, and then you say that K1 equals A1. Can you see how they all point in a circle, one to the next? How can Excel ever work out where to begin?

A typical example of this is when you try and use Excel for a balance c/d in a T account. You make a SUM for your period total on the debit and credit sides, then obviously the bal c/d is the result of your Dr total minus your Cr total (or vice versa, as appropriate). Here you can see I’ve done that: C6 and F6 both contain SUM functions, so in C5 it’s just a case of saying F6-C6, right?

Umm, no – this will generate a circular reference, because the answer to C5 depends on the value in C6 and the answer to C6 depends on the values in C3:C5. C5 needs C6 which needs C5 which needs C6 which needs….

Here are some solutions:

  1. Get your calculator out and enter the balancing amount in C5 directly
  2. Do a quick calculation elsewhere on the worksheet, then copy and paste values into C5
  3. Create the following formula in C5: =F6-SUM(C3:C4) This is the Cr balancing figure (106) minus the sum of the Dr entries (48 + 6). This is a stand-alone formula and won’t be caught up in the circular reference mularkey. (Kudos to Frances for contacting me and suggesting this!)

Showing how formulae connect across a spreadsheet

This handy feature is called Trace Precedents and Trace Dependents, and it draws arrows on your spreadsheet showing which cells feed into your formula. It’s available from the Formulas tab. Click in a cell which contains a formula, and click Trace Precedents. An arrow will point in the direction of the data flow.

The example below calculates abnormal losses in Process Costing. Direct labour is calculated by multiplying B5 and C5 and the answer is in E5. E7, the total of E4:E6, feeds in turn into B13 in the calculation for the Cost per unit. And so on, across the data.

If you click on the Trace Precedents button more than once, it will keep tracking the precedents backwards until there are no more.

If your Precedent is on another worksheet or workbook, you’ll see a small grid symbol with a purple arrow:

Trace Dependents is much the same, but instead of showing you what feeds into your formula, it shows you where your formula (or value) feeds forward to – or, in other words, which cells are dependent on the one you’re in.

Once you’re done inspecting the flow of data around your worksheet, you can remove the arrows from the button on the Formulas ribbon.

Evaluating a formula

If, like me, you don’t always recognise what’s going on when you’re looking at the cell references, you may find this a godsend as it allows you to see the actual numbers which make up the calculation.

Click in a cell with a formula in, and click Evaluate Formula on the Formulas ribbon. It will show your formula in a small panel, and when you click Evaluate it will step through the calculation, substituting each cell reference in turn with the actual value (number). That means something like =E4/B3 will be rendered firstly as =2800/B3, then when you click Evaluate again, as =2800/70, then upon a final click, as 40 (the answer).

Supposing E4 contains a calculation itself, such as =E1*E2. Clicking on Step In allows you to evaluate this contribution to your 2800; then, once you’re done inspecting it, you can go back by clicking on Step Out.

External links

As we discussed at the end of this post about creating linking formulae between workbooks, the usefulness of being able to do this is offset by the fact that others could delete the source file. If you think that linking workbooks together would ever be anything you might do, I’d strongly suggest you have a quick peep at the post to read about it – it’s towards the end of the page.

Checking data entry

Hopefully, your spreadsheet was built with data integrity principles in mind. If not, or you need a refresher, click here and have a quick read.

These are the things I would do to check that the data is behaving itself:

  1. Remove blank rows/columns
  2. Remove Duplicates
  3. Remove extra spaces within data

Of these, we haven’t yet covered removing extra spaces, so I’ll run through that below.

I might also consider applying these features to minimise future potential errors in data entry:

  1. Restricting data entry
  2. Password protection
Removing excess spaces

One of the commonest errors you can have is when someone puts in more than one space between words, or presses the Space key at the end of some text without realising it. And how can you even see that it’s been done? However, any kind of task involving data, such as sorting, Pivot tables, charts or what-have-you, will treat these as different things.

In summary, this is what we do:

  1. Use a helper column. Insert a TRIM function and Autofill down.
  2. Copy the helper column data.
  3. Paste Special > Paste Values over the top of the old/bad data.
  4. Delete your helper column.

So, what that means is: we create a ‘helper column’ (an additional column we can have at the end of our data that we can remove afterwards if we need) which will contain the function TRIM. Excel’s official description of this function is “TRIM removes all spaces from text except for single spaces between words. Use TRIM on text that you have received from another application that may have irregular spacing.” You can see how handy this one is!

Once you’ve done this, you need to replace the original column with the corrected data. Select all of your Trim column data and Copy. Now, you need to click on the first cell of your original data, and click the split button under Paste.

Now you need to look for Paste Values. Each version of Excel has a slightly different Paste Special layout, so the image here is a guide only – pause over each option and you’ll see a small panel appear which tells you what type of special pasting option it is, browse around until you find the button with a clipboard with 123 on it then click it. This will then transfer the results of your TRIM without the underlying function behind it.

(You can also use right-click, Paste Values. You may find your 123 clipboard button right there, or you may need to click on Paste Special before you can find your 123 clipboard button.)

Now you can delete your helper column!

Remember, you can view animations of all of these by downloading the associated PowerPoint file here.

If you’re following the suggested Learning Plan, please click here to go to the next post.

Data integrity

Before you do anything fun like charts, sorting, pivot tables or what-have-you, I’d like you to turn your attention to the gritty subject of data integrity.

What is data integrity? Basically, there are certain ways Excel expects data to be presented in order to harness certain tools, and if you get it right, you can save a barrel of time. Essentially, it boils down to two things:

  1. Elimination or minimisation of errors
  2. Quicker use of tools and features

I’ve tried to think of others, but they all come down to this in some way or another. And let’s face it – both of these are going to be pretty high on your agenda in the exam, right?

An example of bad data integrity

It’ll help you enormously if you can see it done incorrectly first. This is a real-life, genuine spreadsheet put together by someone doing their best but in desperate need of Excel training! Download the spreadsheet here.

I’d like you to pause for a couple of minutes and make a few notes about what’s wrong with it.

Had a chance to think about it? You probably noticed things like:

  • Random colour-coding – why?
  • Dates are not put in correctly (you should always put / instead of . in dates)
  • Gaps in the data – blank rows and columns
  • Column headings are missing – if we didn’t have the title VAT would we know we were looking at money in columns F, G and H?
  • Errors – did you notice the year .45 in cell M18? And the spelling mistake in N8? And is DEPt supposed to be Dept, or DEPT?
  • Is there any reason behind the split? Why not have all the data together?
  • Random border formatting

The problem with all of these is if you want to get any meaning out of it, or even to do any data verification, it’s really hard. Now we’ll look at how to fix these kinds of things.

An example of competent data integrity

Now download this spreadsheet, which is the same data as the previous one but the following year. You’ll notice an immediate difference:

  • The data is all in one block (range) of cells.
  • There’s a key at the top to tell you what you’re looking at.
  • Data has been correctly formatted – dates, currency, etc.
  • Filters have been applied, so you can quickly sort or burrow into your data to extract meaning.
  • The range has been formatted as a Table (this isn’t essential, but can help).
  • There’s a unique code to each line (this isn’t essential, but certainly helps!).

Why does this all matter?

For a start, the latter is a whole lot more workable. A spreadsheet is pointless if you can’t get any information out of it. Imagine a dictionary where all the words are in random order!

Secondly, data in a whole range with no blank rows or columns means you can use Autofill, Sort, Filter, Pivot tables, Charts, Subtotals… AND you can apply these tools in lightning quick time!

Try it: click anywhere in the range of cells. Anywhere, just a single cell. Now go to the Home tab, if you’re not already on it, and click Sort & Filter, Custom Sort. See how the entire range of cells has been automatically highlighted for you? Hey, neat! No more endless clicking-and-dragging down hundreds of rows!

So: the lessons to learn here…

  1. Always have column headings
  2. Never have completely blank rows or columns (Please also see note below.)
  3. Format your data appropriately
  4. Check for errors
  5. Include a key or notes to explain aspects if needed.

And additionally, but not essential,

  1. Widen all columns to fit all the data, if it’s not going to leave the columns stupidly wide (and use Wrap Text if it’s appropriate)
  2. Have some kind of unique reference for each line, if appropriate, to aid data checking or looking things up
  3. Use features like Freeze Panes if it helps
  4. Put the formula(e) at the top, to allow your spreadsheet to grow (and so that it’s on display all the time, instead of having to scroll for it). See Spreadsheet design for more info on this.

I hope these considerations help when it comes to designing a really useful spreadsheet!

Please note

Over the years I’ve been training, I’ve seen all manner of learning materials, and a great many sample spreadsheets for you to work on have completely blank rows or columns. This does, it has to be said, make my teeth itch. The functionality of tools such as Sort, Charting, Pivot Tables can be hindered by the presence of blank rows and columns. It’s not that they won’t work, but that the functionality becomes cumbersome. The problem with this is it forces the user to select (highlight) all the data – this is fine if you only have a little spreadsheet, but I’ve dealt with some whopping huge spreadsheets over the years. In other words, by having blank rows and columns in learning materials, you are being taught to make your life harder.

Excel was designed with a seriously neat feature – rather than selecting all the data, all you need to do is have your active cell (the one with the thick black border around it) somewhere in your data, and when you use any of the Data tools Excel will work out how big your data is, automatically. How cool is that? So why, why on earth would you make your life harder by having blank rows or columns?

Visually, if you want to have the appearance of blank rows or columns, you can – just use your formatting/column width/row height tools.

Anyway – my pedantry and frustration aside – please note that if you set about deleting these naughty blanks in your example spreadsheets, your answer may look substantially different from the example answer, which I can imagine would be pretty confusing – so it would be really unfair of me to insist you have to do this in all cases. I guess, if it’s the real world, delete delete! But if it’s learning materials, grin and bear it. 😀

Adopting a spreadsheet from someone else

I’ve put together a little guide on what to do if you have to start working with a spreadsheet that someone else designed, which is cumbersome or irritating to use. Have a peep here if you’re so inclined – but it has nothing to do with the exam, so don’t worry about it if you’re here for studying only.

If you’re following the suggested Learning Plan, please click here to go to the next post.

Sorting

Sorting is one of those tools that everyone uses, so everyone thinks they know all there is to it. But I’ve seen even pretty competent users not know how to deal with problems in sorting or some of the more advanced features.

As before, however, I’ll take it from the ground up.

Important Sorting Dos and Don’ts

There’s only really two rules here:

  1. DON’T BOTHER to select ALL the cells. If your spreadsheet is designed with decent data integrity in mind, you won’t need to do this. Furthermore, there can be some monstrously large spreadsheets out there and you’ll get RSI if you try and select it all first. GET OUT OF THE HABIT! Sorry for shouting, but it’s really pointless and if I can save you some bother I will – but I’m always astonished at how people are really resistant to this and have even argued the point with me, even though I’ve demonstrated they don’t need to and it’s quicker!
  2. DO make sure your data has been planned with data integrity principles in mind.

How to Sort (part 1)

It’s simple. Place your Active Cell somewhere in the column you wish to sort, and click Sort & Filter on the Home tab. Click on either of the top two options depending on which order you want to sort.

Don’t faff around with all that highlighting the whole thing nonsense. No, really, don’t. It’s a waste of time. Furthermore, if you just do one column, Excel might assume you want to take just that data out, sort it separately, then slot it back in again – meaning you could lose important associations.

  • Ascending means A to Z or 0 to 9 or earlier dates first
  • Descending means Z to A or 9 to 0 or latest dates first.

How to Sort (part 2 – multi-level sorts)

If you have a spreadsheet listing, for instance, everyone in the company, it might be handy to sort firstly by Department, and then by Surname. In fact, you can have several ‘layers’ of sorting going on, depending on the complexity of your data.

  1. To do this, click anywhere in your data (only a single cell is necessary – don’t select all the data).
  2. Click Sort & Filter and choose Custom Sort.
  3. In the dialog box, check that My data has headers has a tick in it. Headers are your column headings, and whatever you’ve written as your column headings will actually feed into this dialog box.
  4. Click in the drop-down next to Column, Sort by and choose your first (main) column. Set whether you want it ascending or descending using the Order drop-down at the end.
  5. Click Add Level and repeat step 4, until you’re all finished.
  6. Click OK and your data will be sorted.

In the example here, we do a simple sort, then move onto something more complex. The first step shows how many rows are in this spreadsheet – 306. That’s a lot of rows! Note I don’t bother to select a single thing – I just make sure my Active Cell is somewhere in the data and away I go. Click here to view the gif. Remember, please download it – it won’t play in Google Drive as is.

Below is an excerpt from the multi-level sort performed in the gif. All the sales reps are grouped together first. Within that, the data is then grouped first by type Red, then by type White. Within Red, the data is then shown with the lower Quantity Sold first, then the higher. Within White, the data is also shown with the lowest Quantity Sold first, then the middle one, then the highest.

How to sort by a Custom List

A Custom List is a built-in list of names or words. Some are ready-supplied (the days of the week, for instance, or the months of the year) and others are created yourself, such as a list of all the departments in your company. In this ‘lesson’ here, we learnt how to create our own Custom List.

  1. To sort by a Custom List, click anywhere in the column you want to sort by (only a single cell is necessary – don’t select all the data).
  2. Click Sort & Filter and choose Custom Sort.
  3. In the dialog box, check that My data has headers has a tick in it. Headers are your column headings, and whatever you’ve written as your column headings will actually feed into this dialog box.
  4. Click in the drop-down next to Column, Sort by and choose your first column.
  5. Click in the Order drop-down at the end, and choose Custom List… Your lists are now displayed and you can choose which one you want.
  6. Add another level if needed; otherwise click OK.

Click here to view the gif. Remember, please download it – it won’t play in Google Drive as is.

Sorting Problem 1

Here’s a fun problem which can sometimes occur – your header ends up sorted within your data. If this ever happens, the first thing to do is to Undo otherwise it’s such a pain to sort it out later.

In the example, the problem is that there are too many header rows. Excel doesn’t know which one to choose from. Really, each header should have used wrapped text instead of having one word in row 3 and a related word in row 4 – click here for a refresher or if you’re not sure what ‘wrapped text’ means.

The solution? Fool it. Bearing in mind our rules of data integrity, if we put in a blank row just above row 4 then hide it so visually there’s no change, we can sort with impunity.

Click here to view the gif. Remember, please download it – it won’t play in Google Drive as is.

Sorting Problem 2

When sorting data where the Header row contains merged cells, Excel gives the cryptic error message that “all the merged cells need to be the same size”. In the example gif, all of the merged cells are indeed the same size – as each other. What Excel actually means is that any cells in the Header row need to be no wider than the cells below them – i.e., don’t have merging.

If you really do need to sort in this circumstance, you’ll have to enter a new row which contains no merged cells, then you can get around it. It’s not the most ideal, but then having merged cells directly above your data isn’t good data integrity anyway.

Click here to view this gif. Remember, please download it – it won’t play in Google Drive as is.

 

If you’re following the suggested Learning Plan, please click here to go to the next post.