You are on page 1of 11

Four Skills That Will Turn You Into a Spreadsheet Ninja

1 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

Four Skills That Will Turn You Into a Spreadsheet Ninja


Eric Ravenscraft

Spreadsheets are one of the most mystifying pieces of software you'll encounter in your adult life. As scary
as they can be, though, you can do an awful lot with just four simple skills.

For the purposes of this article, we'll be focusing on Microsoft Excel, since this is the most widely used
spreadsheet software. However, nearly all of these skills and features are useful in LibreOffice and Google
Drive. We'll make notes when necessary to highlight the differences between the suites.
Input Data Easily with Forms

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

2 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

Entering data into a spreadsheet is the starting point for any analysis. While you can type the data you
need in manually, forms allow you (or in some cases, others) to quickly enter information line-by-line
without much of a fuss.

The Form button has been somewhat coyly hidden in Excel 2013, but you can get it back like so:

1. Right-click anywhere on the ribbon interface, and select "Customize the Ribbon."

2. In the right-hand pane, choose a section of the Ribbon to add the Forms button to.

3. On the left-hand side, choose "Commands Not in the Ribbon" from the drop down.

4. In the box below, select "Form" from the list and click "Add" to place it in the ribbon.

Now that you have the Form button in your ribbon, you can create a data entry form. Start by creating the
headers and first row of entries. Once you have your initial set of data in, you can enter in additional rows
with the form command. Simply place your cursor in the top-left corner of your data set and click the form
button.

The dialog that will appear allows you to enter information on a per-line basis. Fill out the form, press
enter, and a new line will be created with all the new information.

Create Public-Facing Forms with Google Drive

Google Drive doesn't have quite the same functionality, but it does have its own forms worth noting. You

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

3 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

can create a form either directly in Drive or from within a spreadsheet. You'll create questions for users to
answer and their responses will populate a sheet. To create a form:

1. From within a spreadsheet, click Insert > Form.

2. Enter a description at the top of the form.

3. Enter and modify each question:

4. Enter a title in the "Question title" box.

5. Choose the Question Type.

6. Optional: Choose a form of data validation. You can use this to confirm that data entered adheres to a
specific type, such as a number within a set range, or text in the form of an email address.

7. Optional: Select "Required question."

Once the form is completed, you can share it publicly or email it to a select group of respondents. All
entries will be automatically placed into columns alongside a timestamp indicating when the data was
submitted.
Perform Calculations with Functions and Formulas
So you've entered a bunch of data, but now you need to do something with it. Functions and formulas allow
you to manipulate data in a spreadsheet. You can perform simple math, like add up the numbers in a
column, get an average, or even work with real-world things like dates or financial calculations.

The various spreadsheet programs all have their own set of functions, and while many of them are shared
between the different suites, there are some differences, so be sure to check out the full list for Excel,
LibreOffice, and Google Drive.

With that in mind, here are a few examples of what you can do.

Perform Basic Math

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

4 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

At their simplest, functions can perform basic math using any data you've entered. For example, say you
need to add the numbers in two cells together. For that, you'd use the SUM function:

=SUM(A1,B1)

This will add the contents of cells A1 and B1 together. For simple math, you can also use typical shorthand
math operators like +, -, * and /. For instance, the following will perform the exact same math as the
example above:

=A1+B1

You can add up the values in as many cells as you want. You can do this with a colon, like so:

=SUM(A1:A10)

The above function will add together all of the numbers in column A between rows 1 and 10, accounting for
negative values. You can find a list of all the math functions Excel can perform here.

Make Statistical Calculations

You can also perform statistical calculations on a set of data, including calculating averages medians. As an

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

5 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

example:

=AVERAGE(A1:A10)

The above function will return the average of all cells between A1 and A10. The various functions include
both basic and advanced statistics functions. While not all of them will be useful for the casual spreadsheet
enthusiast (yes, we exist), simple functions like AVERAGE and MEDIAN can be really helpful in everyday
work.

Format and Calculate Dates and Times

You can also use formulas to manipulate date and time formatted entries. As an example, you can calculate
the number of days between two dates with the following function:

=DAYS([End_date],[Start_date])

Excel also includes a function to return the current date:

=TODAY()

This function will put today's date in a cell. You can combine these two functions to create a formula to find
out how many days are left until a certain date in the future like so:

=DAYS(TODAY(),[Target_date])

There are a number of other date and time functions you can look over here.

Combine Multiple Functions to Create Formulas

As you might have noticed in the last example, you can combine multiple functions to create what's known
as a formula. Formulas are, essentially, multiple functions put together in one cell. So, for example, if you
wanted to add up the numbers in column A and round them to the nearest whole number, you would use
the following formula:

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

6 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

=ROUND((SUM(A1:A10)),0)

The above formula is made up of two functions: SUM which is being used as an argument for ROUND. In
this statement, cells A1 through A10 will be added together first and then the resulting number will be
given to the ROUND function to be rounded to the nearest whole number. Formulas can be as simple or as
complex as you'd like, though the more elaborate they get, the more intricate their syntax gets. You can
read more about how formula syntax works here.

Functions can also be combined with logical functions to create conditional formulas. Building useful
formulas is a topic so broad that it could generate its own entire set of articles. Fortunately, our friends at
the How-To Geek has an in-depth set of articles on that very subject. You can find the first lesson here.
Sort Data with Filters and Pivot Tables
So you've entered your raw data, made any calculations you need to make, and now it's time to actually
interpret it. You have a few options for visualizing your data, depending on how you need to use it.

Sort by Column

Sometimes, you may need to sort your data by one of the categories you've entered. Just like your iTunes
music library, you can re-order your data by column. To do so:

1. Press Ctrl-A to select everything in the sheet.

2. Select the Data tab in the Ribbon.

3. Click "Sort"

4. Choose the Column you want to sort by and what criteria you want to sort with.

5. Click OK.

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

7 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

See the above screenshot for examplewe've reordered the entire data set by order number, from least to
greatest.

Filter Out Duplicate Items

Other times, you may have some duplicate items within a category. In the example above, we have 8
entries, but only 5 names. To filter out those duplicates and see all the names we have (as opposed to all the
orders), we can use the filtering options under the Data tab in the ribbon. To do so:

1. Under Data, click "Advanced" in the Sort & Filter section.

2. Select "Copy to another location" for a non-destructive way to pull out specific data (if you want to
delete any rows in your spreadsheet that do not have unique data in this column, leave "filter the list,
in place" selected.)

3. Click the "List range" box and select the column you want to filter.

4. Click the "Copy to" box and select the empty cell you want to copy your list of unique data to.

5. Ensure "Unique data only" is selected.

6. Click OK

This will create a new column that only contains unique data from that range, which is useful for
separating out repeated entries.

Create Pivot Tables

When you have hundreds of lines of data, it's nearly impossible to glean any information from ityou need
a summary. Pivot tables let you take certain portions of your data and summarize it, so you only see what
you want to see.

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

8 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

Take the example below. Say we wanted to see the total amount of money we got from Bob Boberson.

This data is easy enough to look at now, but with dozens or hundreds of transactions, it wouldn't be. So, to
see that summary, create a pivot table:

1. Create a new sheet, named Sheet 2.

2. Under the Insert tab, click Pivot Table.

3. Click Sheet 1 and select all populated cells in the sheet.

4. Click OK.

5. In the right-hand pane, you will be able to drag columns into filtered, column, or rows. For this
example, drag "Name" to the Filters section, "Order number" to the Rows section, and "Payments" to
the Values section.

6. This will create a table of all the payments made on each order number. At the top of the pivot table,
in the dropdown box, you can select a specific customer to view only their orders.

When we do so, we get this:

With a pivot table, we can easily see all the orders made by Bob Boberson as well as a sum of all the
payments he made.

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

9 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

This is just one simple example of how you could use pivot tablestheir usage is very broad, and you can
use it to summarize just about anything. To create a pivot table in LibreOffice or Google Drive, Head to
Data > Pivot Table.
Perform Repetitive Tasks with Macros and Scripts

Working with spreadsheets can get repetitive really quickly. To make some of those repetitive tasks
simpler, you can use Excel to record things you do over and over into a macro. Then, any time you need to
repeat those tasks, you can use a keyboard shortcut to "play back" the macro and it'll do all the busywork
for you. For example, say we wanted to change the font of a large group of cells to something very specific,
like Arial 12 italicized:

1. Under the View tab, click the Macros drop down and select Record Macro.

2. Give the macro a name.

3. Optional: Assign the macro a keyboard shortcut.

4. Click OK

5. Click the Home tab.

6. Select "Arial" from the font drop down.

7. Select 12 from the size drop down.

8. Click the italics button.

9. Click the Stop button in the bottom-left corner of Excel.

From then on, you will be able to apply the Arial font in a 12pt size with italics by pressing one single
keyboard shortcut (the one you assigned in step 3), or by selecting the macro from the View > Macro

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

10 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

Library. Obviously, this is a rudimentary example, but you can use the macro feature to record any
repetitious tasks. You can similarly record macros in LibreOffice.

In Excel, LibreOffice, and Google Drive, you can create more complex macros and scripts with a little bit of
programming savvy (and in fact scripts are the only way to automate tasks in Google Drive using a
proprietary scripting format). To get started learning about these, check out the resources below:

Excel: Work with macros

LibreOffice: Getting started with macros

Google Drive: Overview of Google Apps Script


Further Resources
All of these skills are just the tip of the iceberg. Using spreadsheets is a discipline in itself and you can dive
much, much deeper into each of these categories if you want. For convenience, here are some resources
you can use to learn more about all of these skills and hone your craft:

Forms and Data Entry

Create an Order Form in Excel

Create forms with LibreOffice

Create a Google Form

Functions and Formulas

How-To Geek School:

Why Do You Need Formulas and Functions?

Defining and Creating a Formula

Relative and Absolute Cell Reference, and Formatting

Useful Functions You Should Get to Know

Lookups, Charts, Statistics and Pivot Tables

25-Nov-16 4:33 PM

Four Skills That Will Turn You Into a Spreadsheet Ninja

11 of 11

about:reader?url=http://lifehacker.com/four-skills-that-will-turn-you-in...

Filtering and Pivot Tables

Filtering data in Excel

Filter data in a range or table (Excel)

PivotTable reports 101 (Excel)

Pivot Table (LibreOffice)

Overview of pivot table reports (Google Drive)

Macros and Scripts

Work with Macros in Excel

Getting Started with Macros in LibreOffice

Introduction to OpenOffice Macros

Overview of Google Apps Script

Extend Google Docs, Sheets, and Forms with Apps Script

25-Nov-16 4:33 PM

You might also like