repetitive calculations › frequency › complexity › different views analysis of data ›...

22
Spreadsheets

Upload: doris-jacobs

Post on 18-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Spreadsheets

Page 2: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Why Use Spreadsheets?

Repetitive calculations› Frequency› Complexity› Different views

Analysis of data› Explorative› Manipulation

Page 3: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Basic StructureSpreadsheet (Worksheet)

cell (letter-number)

Column (letters)

Row (numbers)

workbook = collection of worksheets

Page 4: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Cells

Page 5: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

What Can Be In a Cell

Label – identification for people Constant – any format

› Text, number, picture, hyperlink, …› Value for computer› Format for people

Formula – uses cells & constants› Always begins with =› “takes the value of”

Page 6: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Formulas

Page 7: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Simplest Formula

=cell Why do you use it? Fundamental Principle:

› Never have to change anything in two places

› Variant of DRY (Don’t Repeat Yourself)

Copy-paste› Fine if you really want a snapshot› Does not work if data will change

Page 8: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Formulas Referencing Cells

Once you define the formula› Can change the values as often as you like› Automatically re-computes

Treats cells as variables› Defined by location, not value› Each cell constant or another formula

Example› Pay = hourly rate * hours worked

Values can change Formula remains the same

Page 9: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Copying formulas Want the same information for different data

› Example: min, max, avg grades for each assignment

Can use copy or fill Copying a formula moves it relatively

Page 10: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Dragging (Fill)

Bottom right corner› One cell copies

Value exact Formula changes cells

› Multiple cells extrapolate

Page 11: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

What if Want SAME Place

Absolute positioning› Can lock the cell, column or row

Cell: $A$1 Column: $A1 Row: A$1

› To change a reference to absolute Insert $ PC: Use F4 Mac: Cmd-T

Page 12: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Referencing Cells Across Spreadsheets

Can simply click on a cell on another sheet› Check the results; easy to get the wrong

cell as you navigate between sheets. Reference it using

SheetName!cell

Page 13: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Constants

Page 14: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Formulas Using Constants

Use constants when they will not change

Values that won’t change:› Computing the area of a circle

Π r2

› Computing the area of a triangle ½ base*height

What about…› Minutes in an hour?› Days in the year?

Page 15: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Constants

Use directly in formulasOr

Place in cells› Used frequently› Precision: make sure it’s right!

Page 16: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Names

Page 17: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

To Name Cells or Ranges

Name Box

Named elements are fixed locations

Page 18: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Name Manager

Can use to name or manage names

Accessing:› PC

Formulas -> Define Name› Mac

Insert -> Name -> Define

Page 19: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Tips

Page 20: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Finding functions

Page 21: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Useful Keys and Practices

Paste specials› Values› Transpose› With and without formatting

ESC: This key is your friend Changing cell sizes Deletions and additions

Page 22: Repetitive calculations › Frequency › Complexity › Different views  Analysis of data › Explorative › Manipulation

Best Practice

Name spreadsheets (rename) Delete unused spreadsheets Separate input, computation, and

output› Input: only page that you change› Output: readability› Computation: everything else