Pages

Wednesday 24 October 2012

Don't waste time on "what if's"....

Have you ever sat in your cosy little office, or claustrophobic little cubicle, and daydreamed? I'm certain you have, and no doubt it was about your holiday, your children, your boss being challenged to a duel at dawn....but have you ever dreamt of finding a way to cut down on your mundane, boredom inducing, life wasting Excel tasks? Like data entry?

Well, daydream no more, because here is a quick and easy little tip that might just make your workload that tiny bit lighter, leaving more time for daydreaming of important things. What's that? You would naturally spend that time doing more value added tasks?....ofcourse you would!!

Anyway, the reader's question was, "When inputting invoice data into a spreadsheet, and each invoice contains a number of items, is there a way I can set up my spreadsheet so that I don't have to re-enter the invoice number and date for each line item?"

There is, and this can be used for any type of data entry that requires repetition of certain cells within a group of lines.

So imagine your data spreadsheet looks like this:


If you are going to add different lines to the same invoice number 1012, then simply use the following formulas in columns A and B (I have them in different colours to make it easy to read here):


You can drag these formulas down for as many rows as you like. They will remain blank until you add in detail into column C. To make sense of the formula, you need to read each formula as saying, "If cell C5 (or whatever line you're on) is empty, then make this cell blank, otherwise copy the data from the cell above."

So if you now add detail into cell C6, the date and invoice will immediately be copied from above. Obviously, a major point to remember is to change your invoice numbers and dates for each new invoice. You can simply type over the formulas in the next line down, and start entering your product details.

Easy as pie and a time saver of note if you have to add a huge number of invoices.

To take this one step further, and make this type of invoice entry even quicker, I would create a standing table of product data, which has all your product details per product code. So it may look something like this:

If you saved it into the same workbook, it would save space. I would then create a dropdown list in your invoice entry sheet in column C, to look up the product codes. To do this, you would use Data Validation (click here for my prior blog for guidelines). You could then use VLOOKUPs to bring back all the relevant information for each product code. (read here for a comprehensive guide to VLOOKUPs).

Using all these tools, you could set up your worksheet so that you only enter your invoice number and date once, you select each product code as required, and enter the quantity. Everything else will fall into place automatically. You could almost go on that holiday, not just daydream about it.

One IMPORTANT point....if you update your product data table with price changes etc, first copy and paste value all the invoice lines you have already entered, otherwise all the previous invoice lines will pick up your new changes!

If you would like to get a friendly reminder of each new blog post, please sign up here.

Happy Halloween, and hope your spreadsheets don't break out in gremlins!

Thursday 11 October 2012

Did you hear that one about the accountant...?

Why is it that poor old accountants are the butt of so many bad jokes? They get so much flack for doing such a thankless task. My personal favourite accountant joke....What does an accountant use for contraception? His personality.

Now, now, before I get loads of complaints, I'm an accountant too...and if we can't laugh at ourselves, 'tis a sad life. And why I am bringing out the  bad accountant jokes? Because I am about to head into serious accounting territory, so wanted to get you all loosened up first!

Ok, this is not as serious as having to re-do your tax returns, but I have been asked a specific accounting type question, so will answer it with an accounting based solution. However, please note that while I have recreated a P&L and Trial Balance, you will note that they are a "little" basic and only cover sales and cost of sales. This is because it still conveys the answer required, and doesn't take up heaps of space.

So, the question I was asked was....how do you create a rolling P&L, with each months' figures next to each other, without having to manually key in the figures from separate spreadsheets? I'll show you my solution, and there lots of ways of doing this, but this is the one I like for simplicity:

Lets assume you download a Trial Balance each month and save it somewhere. Lets also assume that your Trial Balance is governed by account numbers. So it looks something like this:



(Before all the accountants start yelling that a Trial Balance should net to zero, like I said, this is fictional and incomplete!)

You also want to have a P&L that looks something like this:


Please note the column headings - they jump from D to O because I have hidden the other columns, which contain March to December, until needed.

So, instead of having to type in each month's figures, or set up a fresh lookup formula and copy it all the way down, you can set this all up using an INDIRECT formula embedded in a VLOOKUP. I briefly touched on this in a prior blog, but I will take you through it step by step now.

First thing is in the set up. Obviously you want to set up your P&L to look just right the first time round. So do it, but only do all the formulas etc for the first month. Once you have it perfected, drag all the formulas across the rest of the columns.

Second thing is, it is better if you paste each month's trial balance into a new sheet within the workbook. This is because an INDIRECT formula will bring back an #REF! error if the workbook it is looking up to is closed.

Right, I have pasted my Trial Balances into my workbook for January and February, and my tabs look like so:



To keep this as simple as possible, I have just shown one formula (for Sales for Widget A) and some of the other more basic formulae:


Now, the step by step walk through (its not nearly as scary as it looks):

IFERROR - this formula is saying "if the results of the following formula comeback as an error, then return 0 instead". That is what the 0 at the end of each line is for. This will also make sure your YTD total doesn't show errors when you drag the formula across for future months.

VLOOKUP - this is your basic VLOOKUP formula as discussed in prior blogs (click here for a refresher). The first brings back your Debit totals, and the second brings back your Credit totals, and these are added together for a total for each account number. This example is based on account numbers, but you can use anything as long as each line is unique. So descriptions are fine too, just make sure the spelling is identical in both sheets.

INDIRECT - instead of  having to set up the formulas each month once you have your TB file, you simply point your lookup to the month name in row 3, and if your sheet is named the same, it will perform the lookup in that month's sheet. So when you add in your February figures to the sheet named Feb, it will automatically lookup the numbers. Just be sure to check the TB data is always in the same columns.

Once you have this setup, it really is as simple as pasting a TB into a sheet in your workbook to update your YTD P&L - obviously unhide each month as you need it.

One word of warning - it is always a good idea to have some kind of automatic sum check to compare your P&L totals to the sum of the P&L accounts in your TB. I haven't put a solution in here as everyone's TB will look different, but just bear it in mind. Sometimes automating things too much can make you miss some crucial points (or new TB accounts!).

If you would like a friendly reminder of all new blogposts, please sign up here.

Happy Spreadsheeting!




Thursday 20 September 2012

Now we're smokin'.....

So, last week's blog on branding your work seemed to hit a couple of spots...and a big thanks to all who have written in or commented. I am delighted that so many of you found this useful, and I am positively ecstatic that you wrote in with further questions on the subject matter.

(Side note - please feel free to email me or comment with questions or suggested topics for this blog...it makes me have to think less, which is always welcome!)

Right, lets get to it. Last week we looked at how to create a standard template which opens every time you open Excel. Why would you do this? To save time and create a fabulous, unique brand for your Excel output.

If I can summarise the emails/comments I received into 3 main questions:

1) Once you are already in Excel, how do you get Excel to give you your lovely, newly formatted workbook every time you press Ctrl N, instead of giving you the boring old default workbook?

2) How do you get your new formatting to apply to new sheets you add to your current workbook?

and

3) Can you have more than one specially formatted workbook?

The solutions to these points are very similar (use an Excel template), but have very specific differences in implementation, so take heed of the answers:

Question 1:
Once you have followed the steps in last week's blog, you will have succeeded in saving an Excel Workbook into your XLStart folder, which ensures you get your new template every time you start Excel.

If you want every new workbook you create to look like this, without having to re-open Excel, then save your Workbook into the same XLStart folder, BUT save it as an Excel Template (*.xltx), and VERY IMPORTANT - name it as book.xltx. Don't accept any names your helpful pc might suggest, as this will only work as book.xltx.

So, just to be sure to be sure (as us Irish would say):



a) Make sure it is in the XLStart folder (as soon as you select Excel Template, your PC might helpfully direct you to a Template folder...push the back button to get back to the XLStart folder)

b) Make sure it is named book.xltx (unless you have Macros in your workbook, then save it as an Excel Macro-Enabled Template (*.xltm))

Once you have done that, if you are in Excel and press Ctrl + N, your newly formatted Workbook will appear, as opposed to the standard default option.

If you are ever feeling nostalgic and want to get the standard Microsoft default workbook back, go to File - New - Blank Workbook.

Question 2:

To apply your formatting to new sheets you add to your workbook, you follow the same steps as above, with two small differences:

a) Make sure your formatted workbook contains only one sheet, and make sure that sheet is formatted as you want all new sheets to be, and

b) Save your sheet into the XLStart folder as an Excel Template BUT name it sheet.xltx.

Simple as... Now, when you're in Excel and add a new sheet, it should be formatted with your new brand!

Question 3:

What if you need to have a range of different templates? Handy if you prepare analysis for different companies with different colour schemes, for example.

To do this, create your first workbook in the design and layout you need. Now you are going to save this as a Template too, but you save it into the Template folder which Microsoft suggests. So click Save As, and select Excel Template (or Excel Macro-Enabled Template) from the dropdown list:



Make sure the Template folder comes up (as above) and save your Template with an appropriate name. You can repeat this for as many different templates as you need.

When you need to use a specific template, you just need to be in Excel. Go to File - New - My Templates:



The following little box will pop up with your selection of Templates:


Pick your template and you're sorted.

One word of warning - remember to save your newly opened workbook as something else immediately, or as soon as autosave kicks in, your template will be changed!

If you would like a friendly reminder to read this blog whenever there is a new post, please subscribe here.

Thanks for reading, and happy spreadsheeting!

Thursday 13 September 2012

Brand it like Beckham...

Brand Beckham. Known worldwide. He is handsome but rugged, a man's kind of man on the field, a woman's kind of man with children and fashion. She is forever pouty, perfectly groomed, and her fashion label is growing beyond anyone's expectations...besides maybe her own.
 
So how do they do it? I'm no marketing guru, but what strikes me most about the couple is that there is almost a uniform look about them. Their looks never change too drastically, they have a style and they stick to it. Victoria's fashion lines are instantly identifiable as hers with their clean cut lines and simple, yet always smart, designs. I mean, who doesn't immediately recognise these two?
 


 
 
So well done them...branding done right. But do you know that you can brand your own Excel work? You can, I've done it. Most of my colleagues could open one of my workbooks and instantly say, "Oh Vicky, this is one of yours, isn't it?" How did I do it? I certainly didn't have "Vicky's workbook" emblazoned across the top. I try be a bit more subtle than that....
 
You may have noticed through my blogs that I like the colour blue. Well, most of my worksheets have dark blue headings, with white bold text. Any other lines that need highlighting underneath will be highlighted in lighter shades of blue. Borders will be done in blue. And there will be NO GRIDLINES!! (I hate gridlines, truly I do).
 
These simple things managed to somehow "brand" my workbooks so that they became easily identifiable as mine. Now, this may not seem important to you, but having workbooks always look the same will a) let your bosses know that the brilliant analysis floating around the company is yours, and b) make your spreadsheets easy to read.
 
You're probably thinking though that you couldn't be bothered re-doing all that formatting for all your new spreadsheets. The good news is, you don't have to. To have all your favourite settings lined up each time you open Excel is easy. Here is how:

Open a new, blank workbook and choose the way you would always prefer your workbooks to look by:
1) Selecting a theme. This decides the colours, fonts etc for your entire workbook. For more on this, read my earlier blog on formatting here.
2) Using your Styles toolkit. On your Home menu tab, you will find Styles midway across, with maybe 4 coloured boxes. Click on the downward arrow and you'll get a full choice like this:


Now, depending on the theme you have chosen, your Titles and Headings colours will be different.
If you prefer to always have any text in your workbook aligned to the middle of the cell and wrapped, or in Italics, or Bold, I would recommend making these changes to your "Normal" cell choice.

To adjust your "Normal" cell choice, just right click on the box, and select modify:

Click on the Format button that comes up, and adjust as you please. Click OK, and any cell in your workbook which is classified as Normal (which is all of them at this point), will be adjusted to your new settings.

You can adjust any of these cell types, so you could choose a heading type that you will always use, and make the font Bold. To then apply that formatting to your workbook, click on a cell you want to use as a heading, and click on that Heading button in the style box.

If you want to change it back to normal, click on the cell, and click on the Normal button again. (Note - you will need to change the alignment etc on your Heading buttons too).

3) Decide whether you want a header or footer on all your workbooks. If so, go to Insert - Text - Header & Footer. So for example, if you wanted the date and the file directory as a footer on each of your workbooks, click on Go to Footer in the Header & Footer toolbox, and you will get something that looks like this:


Click in the box where you want your footer to go (left, right or centre) and then click on your options above - so for our example you would click on Current Date and File Path.

Once you are done, click anywhere else on the sheet, and got to View - Normal to take your sheet out of the Page Layout mode.

4) Make any other changes you would like and make sure you are happy with the way your workbook now looks.

All these changes you have made now apply to the workbook you have open. To make all your new workbooks look like this, save your workbook as an Excel Workbook into your XLStart folder.

To find the address for this folder, go to File - Options - Trust Center - Trust Center Settings - Trusted Locations. The address will be the file path with XLStart in the file name. Click on the path, and the full address will appear below the box.



Once you have saved your workbook into that folder, everytime you open Excel, your new, branded Workbook will appear. And you can start spreading your own unique brand across the office!


A big thank you to the reader who sent in this week's request. Hope you found it useful. If you have specific query you would like covered, please leave a comment below.

If you would like to sign up to receive our weekly reminder of the blog, click here.


Happy spreadsheeting!

Thursday 6 September 2012

Saving you time, saving you money....

There is a company in South Africa that has been around since I was a just a sprog. It is called Nashua and provides business solutions in terms of printing equipment. And it's tagline has always been "saving you time.saving you money.putting you first".

This has to be, in my mind, a better tagline than "Just do it" or "I'm loving it". Because it has stuck in my mind since I was a small child, and every time I think the words "Saving you time", the rest of the tagline immediately pops into my head.

So yes, its a brainworm. But its also a tagline that makes sense, because saving time in business almost always equates to saving money. So here is my way to "put you first". I am going to share my top 5 time-saving tips for Excel.

Yes, some of these are basic, but its normally the basics we do everyday...so save time on those and you'll have more time for the fun stuff.

Tip 1 - Learn your shortcut keys for the tasks you do most often.

Shortcut keys are basically a specific keyboard sequence you press, normally whilst pressing Ctrl or Alt, to perform a specific task. So for instance, the shortcut key for Print is simply Ctrl P.
To add filters to a page, you would hold down Alt and push D then F then F.

Now, instead of giving you a ridiculously long list of shortcuts, you can find out your favourites on your own. The best way to do this is to work your way through the menu ribbon as you normally would, but push Alt before you start.

Here is an example...my all time pet hate of gridlines, and how to get rid of them. So first off, click on your sheet, in the right cell if your task is cell specific, and then click Alt, and you'll get all these little letters in boxes all over the menu bar, like so:



Click on W for View, and more letters will pop up, as below:



As you can see, you need to press VG to either untick or tick the gridlines box. Now, you can follow the letters each time you do it, but if it is something you do regularly you will soon learn the sequence, and will type in ALT W,V,G automatically. Practice forms habits, and this is a good one to learn!

Two side points:
1) If you have a dropdown list in your menu, look at the underlined letters in each selection - those are your shortcut keys.
2) As you can see from my first image, the quick access toolbar at the top has numbers assigned to each icon. Again press Alt, then the number, and the specific item on the quick access toolbar is activated.

Which leads me beautifully to my next tip:

Tip 2 - Add your favourite menu items to the Quick Access toolbar.

If you're not strong enough just yet to break the bond with your mouse for a full time relationship with your keyboard, then use the Quick Access toolbar. That is the thin strip across the top of your menu ribbon, and you can add whatever menu items you like to it. To do this, simply click on the little black downward arrow icon to the right of the bar, and you'll get a dropdown menu like this:


The most basic are provided for you to pick, but if you want more choices, click on "More Commands..." and you'll get pretty much every menu item you can think of. Click on the one you want and press add, and you'll see the menu icon up on your Quick Access Toolbar. Again, easy stuff, but will save you scrolling through menus.

Tip 3 - Use your autofill to create lists

If you are creating a list of, say, months, instead of typing in each month in a new cell, just type in January in the first cell, February in the next, and then highlight both, and drop your mouse to the bottom right hand corner. A little black cross will appear. Drag this down and your list will appear automatically.

The little black cross also works effectively for filling in lists. You don't even need to drag it down. So imagine you had a formula next to your newly formed list of months. If you type your formula into the next column on the first cell, you can again go to the right hand corner, and double click the little black cross. This will copy down your formula to the bottom of your list.

A big time saver!!

Tip 4 - Always use formulas where possible

Imagine you had a complicated spreadsheet calculating various cost and sales prices based on specific VAT rates and exchange rates. While you were creating your spreadsheet you happily typed in your formula, for example = (B4 x C4) x 0.14, because you assumed your VAT rate would stay at 14% forever. But the taxman is nothing if not fickle, so when, not if, he changes the VAT rate, you would need to change each formula manually (or at least use a FIND and REPLACE function).

If you set up your spreadsheet from the start to have your VAT rate in one cell, and you referenced all your formulas to that cell instead, you would only need to change one cell and all your formulas will automatically be updated.

I know it sounds simple, but it is such an easy mistake to make because when you are creating a spreadsheet you are normally focusing on the output and not too much on the design. Try get into the habit of stopping at each new formula you write and say "Have I made this as easy as possible to adjust in the future?".

Tip 5 - Get to know your Paste Special options

Most people know about Paste Special to paste something as values. But this lowly little box of options has so much more to offer, so take the time to get to know it.



These are fairly self explanatory, but I'll go over my favourite ones:

Formats - does what it says on the tin - another way of copying formats of cells from one spot to another.

Multiply - this may sound strange, but I use this as a nifty trick to change data from text to numbers. What you do is type a 1 somewhere else in your spreadsheet, copy it, and then highlight your list of text and Paste Special -Multiply. This will multiply the text numbers by 1, turning them into numbers you can actually use.

If you ever need to take your numbers into thousands, you can do the same thing, just type in 1000 into a cell and Multiply it across your range. You can also Divide by 1000 to bring your figures into more reportable size numbers.

And what if you create a lovely long list of items going down your sheet and then realise that you actually want them going across your sheet as headers? Easy, just highlight them, Cut them, click on the cell where you want them to start going across, and then Paste Special - Transpose.

That's a massive time-saver all on its own.

So there you have it. My 5 top tips on saving yourself time, and hopefully money, whilst using Excel.

Why not share one of your favourites on the comments below? I'd love to hear them.

Don't want to miss out on the blogs? Why not sign up and we'll send you a friendly email to remind you!

Happy Spreadsheeting!


Thursday 30 August 2012

Struggling to get a date? It's all in the set up....


So, hands up - who has been set up on a blind date by mutual "friends"? And how did that go for you? Disastrous? Embarrassing? Live happily ever after?

Going on the film versions, blind dates never work out that well. Because everyone has a different idea of what an 'ideal date' is. And two people, although they may seem to want the same thing, will have different preset ideas of what that 'thing' is. I think it is safe to say that in general, blind dates should be approached with as much care as you would use when trying to tackle a rabid tiger. Who has a sore tooth.

The same goes for Excel (not the tackling the tiger bit). Two people will have a different approach to a problem in Excel, because they have different preset ideas, or ways of working. As I keep on repeating, there is always more than one way to find a solution in Excel. A perfect example landed in my email box this week. In my newsletter last week, I pointed out that I was kinda running out of ideas for this blog.

(Side note - please note this point and feel free to comment below with topics you would like covered or problems you would like solved....)

Anyway, I got a lovely email from Mr B, who provided me with a variety of solutions on how to calculate the difference, in hours, between two dates and times. Now, working with dates and times in Excel is tricky. I have already done a basic blog on this (click here for a reminder), but Mr B reminded me of a brilliantly handy formula - the DATEDIF function. What this formula does is calculate the difference between two dates, but for specific criteria. The best way to explain this is to show you. Take note of the letters in inverted commas in the formulae, that is what defines the result you get:



The last 3 need a bit of explanation. Days only simply looks at the 'day' part of the date and subtracts one from the other (so 16 - 2). It ignores the months and years. The same goes for month only (so 8-5 in our example). Dates, ignoring years, assumes both dates fall into the same year and just calculates the difference in days.

Note when using DATEDIF that your Start Date comes first in the formula, and must always be earlier than the End Date.

So, after that whirlwind tour of the DATEDIF function, lets look at what Mr B sent me. Solution 1:



Here Mr B uses the DATEDIF, HOUR and MINUTE functions to break down the difference into days, then minutes, and then takes the answer back up to hours. Go through it at leisure...

Solution 2:


Again, go through this at your leisure, but he has shortened the equation by using the IFERROR and  MOD functions, which in this case basically say, if the answer is negative, then subtract the answer from 1 to get a positive.

These are both good solutions, and my thanks again to Mr B for sending them on. Clearly though, I have a female brain, so immediately thought of a different solution. I would use formatting to get this right. Under custom formats for numbers, you can select the format dd/mm/yyyy  hh:mm. So go to Home, Format, Number, Custom and scroll down till you find this beauty.

Then, to get the date and time into one cell, you would add the 2 together. So in the example above, to get the first start date and start time combined into one cell, it is as simple as =B4+A4. Doing this, you can get the table below:



To get the difference in hours, simply use =C3-C2, and keep the result cells formatted as numbers.

So, like I said, different strokes for different folks, but it all comes to the same answer.

Job done, another dating issue solved....

If you're new to this blog, and would like a reminder every time a new blog is posted, why not sign up here?

Happy spreadsheeting, and remember to send on any queries!





Thursday 23 August 2012

Failing to plan is planning to fail....

Who hasn't had that old nugget thrown at them by a parent or teacher or any other busy body? And who hasn't inwardly (and maybe outwardly - depending on bravery levels) rolled their eyes heavenwards in exasperation? Why are we exasperated to hear that? Because we are normally hearing it too late. When to go back and re-plan and re-do and make it right would take just as long as fixing the problem would.

I am on the fence on planning, personally. I tend to go to extremes...either going with the flow and dealing with whatever comes my way, or following that other well-loved bit of advice - "hope for the best, plan for the worst", and getting myself into knots with too many plans.

However, I am fairly adamant on planning in Excel. Proper planning can make your spreadsheets, and work, so much more efficient. Also being able to see the woods for the trees, and selecting the right approach to a problem, helps immensely.

Take this example. My sister is in IT and was recently battling through a  merger of a couple of systems. She emailed me asking for some help on a VLOOKUP formula. Basically, they were running tests on various areas. Lets say that one test result would look like this:



She was getting each set of test results back and saving them as a new sheet into one summary workbook. Each sheet would have a name of Test1, Test 2 etc... She now wanted to create a summary that would look up all the results on one page. However, if she used a normal VLOOKUP, she would need to change each new column's formula to a different sheet name (Test1, Test 2 etc). Not the end of the world, but time consuming. So I suggested she use this instead:


As you can see, I have inserted an INDIRECT formula into the VLOOKUP. By doing this, when she drags the formula across the columns, the VLOOKUP will automatically pick up the new sheet name, which is also in the header row 2, saving her having to replace the sheet name for each column of results.

Side note on INDIRECT formulas - these are very handy little formulas, but pretty tricky to explain. Basically, an INDIRECT formula inserts the results of the cell that you reference in your INDIRECT formula. This is very useful if you are going to be changing things, like in the example above. So we reference the cell C2, to bring back 'Test1' into our VLOOKUP formula.

Anyway, back to the problem. Well, it was no longer a problem, it was solved. And I did exactly what she asked, I adjusted her VLOOKUP formula to change the sheet names.

However, with hindsight, a possibly better solution would have been to use a consolidation. It would have required more work at the set up, and I suspect she was beyond that stage, so I wasn't brave enough to throw the quote at her!

How I would have used a consolidation for this testing is as follows:
1) I would have created all the test sheets before hand.
2) Instead of Pass or Fail, I would assign a number to each status. So 100 for a Pass, 50 for a fail and 0 for not tested. This will make consolidating easier at a later stage.
3) I would then have created my consolidation summary sheet, using the Excel consolidation tool.

How?
Here goes...
1) Go to a blank sheet.
2) Go to Data - Data Tools - Consolidate
3) A pop up box will appear. I have already filled this one in, and will talk you through it below:

 


Function: - You can choose a function like Sum, Count etc. I have chosen Average for this example...you'll see why later.

Reference: - Click into this box and then go the sheet you want to include in your consolidation. It is better to include the entire column or row if you are going to be adding in more data.

Click Add and it it will add the referenced cells into the box below, which contains all the references you want consolidated.

Use labels in - I have ticked the Left Column, as this is what Excel will use to consolidate the data. This is very handy because you don't have to have all your sheets identically laid out, and you don't need to have an identical list of items. Excel just matches what it can.
It works the same for labels in the top row.

Create links to source data - this is very important as it brings back an actual formula showing all the sheets linked. It also ensures your data will be updated when the source sheets are changed.

Click OK, your pc will whirr for a second, and then hey presto, you get this:

 
These are the results of four different test sheets, averaged out. To see the full detail, click on the little 2 on the top left hand corner, and you get the works:


Now, if you did all this before you started testing, you could send out the links to the individual sheets to each tester. As they completed their own tests, you would get a running update on how your tests are looking. And you can keep on kicking butt until the averages are all 100!

So that is a quick overview on the consolidation tool. Some notes:

1) If your worksheets are all laid out identically, you don't need to use labels in the consolidation.
2) Try to get your consolidation perfect the first time. Making adjustments afterwards will probably require you to restart your consolidation.
3) Plan, plan, plan.

Don't want to miss out on the weekly tips? Why not sign up here? We'll remind you...in the nicest possible way!

Happy spreadsheeting!

Thursday 16 August 2012

More vocabulary lessons before school starts...(and this long non-summer holiday ends)

Man, is this 'summer' holiday dragging on forever? In the height of summer, the bridge outside our house has been flooded twice. The rainfall carries on, the children get more cranky and bored, and parents slowly, but surely, lose their minds.

In a rare moment, I found my sense of humour, and have tried to track the effect of long summer holidays on a parent's patience levels. In continuation of our series on improving your Excel vocabulary, we will look at 2 ways we could calculate this - the easy but long winded way, and the short but slightly more complicated way.

First up though, lets look at some made up figures, formulas and assumptions:



Let me explain my thinking on the figures above:

Variable Factors:
 - We have 8 weeks of summer holidays. Cell C3 shows us what week we are in out of those 8 weeks.
 - We assume the maximum number of outings/activities a child can attend a week is 14 (2 a day). Cell C4 shows us how many outings the child has actually attended.

Parameters:
 - The average assumed cost of an outing is €15.
 - The calculation of a child's boredom level is =(C3/C8)*(1-(C4/14)). This is saying the longer the holidays go on, the higher the boredom level will be, and can only be mitigated by more and more outings.
 - The weekly cost of outings is simply C7*C4
 - The % weekly cost of total possible is C10/210
 - The parent's patience levels is calculated as such =1-(((C3/C8)*0.45)+(C9*0.25)+(C11*0.3)). Before you lose your temper trying to figure this out, I have simply given different weightings to the current week in the holiday period, the child's boredom level and the cost of keeping them entertained. Added them all together and inverted.

Method 1: Manual What If Analysis

In this method, you could use the table above and change the variable factors (i.e. Cells C3 & C4) to obtain individual answers for various scenarios. So you could change the week to 6 and the number of outings to 4 and the parent's patience levels would be sliding down to 44%.This is great if you needed to get a once off answer every now and again, but what if you wanted to get the bigger picture? You would use:

Method 2: A What If Data Table

This is the simplest of the What If tools Excel provides. It is a data table that you can either use one or two variables on. We will go straight to using two variables. You need to start by setting up your table like so:

You will need to add in the variables in cells F4 to F17, and G3 to N3. The headings (Weeks in holiday and Weekly outings taken) are optional and should not be included in your range when creating your data table. The formula in F3 is = C12, which is our calculation of our parent's patience level.

Once you have done this, highlight the range F3 - N17 and go to Data - Data Tools - What If Analysis - Data Table. You will get a little pop up box that you need to complete as follows:


Press ok, and your results are displayed as below:


Add in a bit of conditional formatting, using the colour scales, and the problem becomes immediately apparent:

By week 8, a parent is ready to explode...which begs the question as to whose great idea it was to have a 8 week long holiday anyway?

Now, you may be wondering why this is at all helpful to add to your vocabulary. Well, you may not need this exact calculation (unless you belong to the Board of Education, and then please feel free to distribute to the powers that be!). But you may want to calculate the profits to be obtained if you sell a product that has reduced production costs per product the more units that are produced. Or calculate various payment options on mortgages with different interest rates.

 My newsletter this week will have some more examples....why not sign up here?

Happy spreadsheeting!

Thursday 9 August 2012

Don't underestimate the seductive power of a decent vocabulary

Isn't that just brilliant? I saw that quote on Facebook this week, from LawsofModernWoman. It went straight into first place on my list of favourite quotes, kicking the long-standing favourite off it's perch - "Never use a big word when a diminutive alternative will suffice".

Both of these quotes segue nicely into what I would like to cover today... there are sometimes many different ways to do the same thing in Excel. To have a decent 'vocabulary' of Excel tricks will make your day easier, and will increase your seductive power (to your PC and Excel geeks, at least)! But to remember that the most complicated method is not always the best method, well, that might just take you into hero status.

So here is Part 1 of a series in how to increase your Excel 'vocab' and hopefully teach you a couple of  easy to use tricks or shortcuts. The data we will be using is from a list of the 'supposed' best selling books of all time in the UK. Just a detour here - this list is provided by Nielson Bookscan, via the Guardian (click on the link for the full list of the Top 100. I haven't included it here!) I am having serious trouble believing this is the best selling list of all time, so am hoping it applies to maybe the last 10 years. Anyhow, it had good data layout so I used it. Suspend your belief when you look at the results. If nothing else, it will give you ideas for your beach reads....

Tip 1 - Filters are sometimes better than pivot tables.

I know that just 2 weeks ago I was singing the praises of pivot tables in my blog post, but there are times when you just need to have a quick check on something or you don't want to create a completely new table of data. If so, use the filter.

To get the filter onto your data, click somewhere in your table, and go to Data - Sort & Filter - Filter. This will apply the arrows to your header row.

Important point 1 - You can't have blank rows or columns in your table. If you have blank rows, the filter will only apply down to the last row before the blank row. If you have blank columns, the filters won't always go the whole way across. So have a complete, space free table of data before you begin.

Then select which column you want to filter on. In our data below, you may want to check how many of the top 100 books are in the Children's and Young Adult Fiction categories. So you click on the little downward arrow in the Genre column, and get the filter dialog box. At the bottom, all the genres will be selected, so first click on the tick mark next to Select all, to deselect them, and then choose the topics you want to look at:

Press ok, and your table will look like this:


That is 17 out of the Top 100, excluding Annuals and Picture books. How do you know 17 without counting each line? Look at the bottom left hand corner, and it tells you:


Now, what if you wanted to know how many of these 17 books had volume sales of over 1.5 million? You click on the arrow on the Volume Sales column, and select Number Filters - Greater than, and type in 1500000 in the box that appears, like so:


The answer to that is 11, all the Harry Potter and Twilight books. So, you can apply filters to more than one column at a time. Note, too, from the box above, that you can apply more than one filter to the same column. Just select your choices from the drop down boxes.

Important Point 2 - Always be aware of when you have a filter applied. You can easily assess this by looking at the colour of the row numbers. If they are blue, you have a filter applied somewhere. The arrow icon on the column header changes if you have a filter applied so you can easily assess which column is filtered.

To clear a filter, go to Data - Sort & Filter - Clear.
You can also filter by colour. You may have noticed some of the book titles are blue. I have highlighted all the books I have read. To apply this filter, do as shown in the image below:


This is ridiculously handy if you are fond of using colour to highlight cells. Sadly, I appear to choose all my books from best seller lists. Happily, I still have 48 to get through before I exhaust the list.

Anyway, onto to shortcuts:

Shortcut number 1: To put on, or take off, filters in a hurry, press and hold ALT, whilst pressing D F F

Shortcut number 2: To clear all filters that are currently applied, press and hold ALT, whilst pressing D F S

Tip 2 - You don't always need a formula in a cell to calculate something

Don't worry, this is a quick tip. Using our example above, with all the books I have read filtered, how would you calculate the total number of books sold? Or the average sales volume? Without typing in a formula?

Easy - highlight all the values in the Sales Volume column, and look at the bottom right hand corner. You will see this:


That's your answer. Nice and simple, no need for a formula. If you right click on the toolbar next to these numbers, you can select some other options, like minimum and maximum.

Very useful if you're in a hurry and you need to shout an answer to a irate / impatient / cranky boss!

Our newsletter this week will cover how to remove duplicate data using 2 different methods....sign up here.

This was part 1 of 'Improving your Excel vocabulary.' Part 2 will follow next week. Have a good one!


Happy spreadsheeting!