Nick's Excel Tip Of The Day - Part 1

Nick's picture
Nick's picture

38. Excel Tip Of The Day - Copy Down

Today's tip is about saving you precious time.

Suppose you have the following data, and you're trying to fill all cells with the correct formula:
copy down

In this example we have numbers 1 to 13, and we want the other 2 columns to be populated with the squares and cubes of the numbers. We have entered formulae in the first row, and want a quick way to populate the rest of the formulae without typing them in one by one.

Step1:
With the setup as above, double click on the square at the bottom right of the cells selected
HERE:
copy down

This will populate all relevant cells with the formulae!

It's as easy as that.

copy down

Download Practise sheet

Video Training - Copy Down

Nick's picture

37. Worried about security ? - open Excel in SAFE MODE


There is a way to open Excel safely which prevents macros from running. - Excel sheet calculations will still run.


Here's how to do it:


Step1: If downloading a file from the internet, click on a link to download the file - save it... if not, skip to step 2.


Step2: Hold down the CTRL key, then open Excel. You will see the following messagebox:


open Excel safely


Click YES You'll know if you have done it right as Excel will have the words: "Safe Mode" at the top. open Excel safely


Now open the file and use it safely. Training Video on How to Open Excel Safely:


Nick's picture

34. Introduction to Pivot tables

Pivot tables are a truly amazing invention. They allow you to summarise, slice and dice data in many different ways without the need to write fiddly formulae.

Let's take the simplest of examples:
Data
In this data, you will see that you have several entries for the various items that you spend your hard earned money on.

Lets say you want a summary of that.

Step1:
Select the data (that's Range B2 to C9) and go:
Insert => Pivot Table (XL 2007), then click OK
You'll now get a new worksheet:
Data

Step2:
On the right, click on both "Expense" and "Cost", and there you have it, a summary of the data !
Data

Training Video - Introduction to Pivot tables

Nick's picture

33. Moving Averages

This example shows you how to calculate moving averages.
They can be useful when you have a share price for example that changes every day, and you want to calculate the average of the last X days.

Here's the data we'll work with:
Data

In cell F3, we enter the number of days we want to calculate the average for.

Cell F4 contains the formula:
=AVERAGE(OFFSET(C4,COUNT(C:C)-F3,0,F3))

Let's break it down to see what it's doing.

First of all, the OFFSET function returns a range.
- How do we make sure this range is the right one ?
- We want this range to be the last 3 populated cells in the table.

OFFSET takes the following arguments:
reference,rows,cols,height,width

So, we tell the OFFSET function to create a new range with the starting cell being 10 cells below C4 (the first share price), and continuing for 3 cells down.

How does it know to start 10 cells down ?
- we enter COUNT(C:C)-F3 as the reference
COUNT(C:C) returns the amount of populated cells in the column C.. in this case 13. Subtract 3 cos we want the last 3.

... then we wrap this with the AVERAGE function.

Download Example Sheet to play with

Training Video on Moving Averages:

Calculate moving SUM

Hey,
I have a worksheet with complaints and rejected quantity that are logged in each day. So, is there any way that I can calculate the sum of the quantities that were rejected for a particular day/date?

use the sumif formula

use the sumif formula

Moving Sum for a range of dates

With Sumif I am able to get the sum of rejects for a particular date by keeping that date in the IF condition, but I want to sum the rejects for a particular range of dates which is from every Monday thru Sunday, so I want the formula to show total rejects so far on any given week, like:
On Monday, i want it from Mon to Mon
On Tuesday, Mon to tues
On Wednesday, Mon to Wed... and so on for the current calendar week.

Appreciate it!!

Nick's picture

start a new forum question,

start a new forum question, then you can add your file with an example of the data you have and what you want
http://excelexperts.com/forum/25

you're the man

Nick,

Just wanted to say a quick thanks for giving a thorough breakdown and explantion of how this formula works. I've spent a few hours on the internet today looking for this info and I was left unfullfilled until I got here.

Thanks!

Rory

Nick's picture

32. Using Go To

This is a follow-on from Tip 31

So, you've entered all your range names and now you would like to go to one of them and you can't remember where it is.

Step1:
Press CTRL + g
This brings up the Go To menu:
Data
- note all the range names are listed and you can select any of them to go to that range.
- you can either click on a name or type in a range reference like B2:C30

Step2:
There is also another very useful menu available if you choose "Special"
Data

Video Training on how to use GO TO: