spreadsheets relative & absolute addresses

24
Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall

Upload: derek-mckinney

Post on 03-Jan-2016

40 views

Category:

Documents


1 download

DESCRIPTION

Spreadsheets Relative & Absolute Addresses. CIL 102 ‘08 Fall. Relative & Absolute Addresses. The concept of relative and absolute addresses becomes relevant when a spreadsheet user builds spreadsheets and copies formulas - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Spreadsheets Relative & Absolute Addresses

SpreadsheetsRelative & Absolute Addresses

CIL 102‘08 Fall

Page 2: Spreadsheets Relative & Absolute Addresses

Relative & Absolute Addresses

• The concept of relative and absolute addresses becomes relevant when a spreadsheet user builds spreadsheets and copies formulas

• Copying formulas is frequently performed as a part of fundamental process

Page 3: Spreadsheets Relative & Absolute Addresses

Simple Relative Address Example

Compute perimeter and area of rectangles

• Formulas– P = 2*(L+W)– A = L*W

• Use labels to set up your table

Page 4: Spreadsheets Relative & Absolute Addresses

Simple Relative Address Example

Compute perimeter and area of rectangles

• Place perimeter formula in the first row

• Place area formula in the first row

Page 5: Spreadsheets Relative & Absolute Addresses

Simple Relative Address Example

Compute perimeter and area of rectangles

• Highlight the two formulas and select Copy

• Copy them to the remaining slots in the two columns by highlighting the area and select Paste

Page 6: Spreadsheets Relative & Absolute Addresses

Simple Relative Address ExampleCompute perimeter and area of rectangles• As you move the cursor

from formula to formula, not how the references to the length and width are adjusted, relative to the formula.

• The formulas in row 4 reference the length and width in row 4, the formulas in rows 5, reference the values in row 5, and so forth.

Page 7: Spreadsheets Relative & Absolute Addresses

Simple Relative Address Example

• As long as the addresses associated to a formula change as the formula location changes, then relative addressing is fine

• RULE OF THUMBNormally, formula

references within a table are relative addressed as long as data and formulas are in rows or columns.

• Use a color highlight for each table to guide you.

Page 8: Spreadsheets Relative & Absolute Addresses

Simple Absolute Address Example

• To illustrate absolute addressing, consider this variation of the perimeter/area table where the length is fixed.

• Perimeter and area change with length.

Page 9: Spreadsheets Relative & Absolute Addresses

Simple Absolute Address Example

• Note that the length is outside of the table, it stays fixed.

• The width varies from row to row.

Page 10: Spreadsheets Relative & Absolute Addresses

Simple Absolute Address Example

The F4 Key.• When you point to the

length, press the F4 key. Note the $ symbols – this indicates an absolute address

• The width is a relative address

Page 11: Spreadsheets Relative & Absolute Addresses

Simple Absolute Address Example

The F4 Key.• When the formula is

duplicated down the column, the length reference says fixed (absolute), the width reference is relative

Page 12: Spreadsheets Relative & Absolute Addresses

Simple Absolute Address Example

The F4 Key.• Complete the area

computation in the same manner

Page 13: Spreadsheets Relative & Absolute Addresses

Simple Absolute Address Example

The F4 Key.• Complete the Area

computation with one absolute and one relative address.

• Copy the formula• Note the absolute and

relative references.

Page 14: Spreadsheets Relative & Absolute Addresses

GPA Calculator

Page 15: Spreadsheets Relative & Absolute Addresses

GPA Calculator

• List your courses• List your grades• List the number of credits

Page 16: Spreadsheets Relative & Absolute Addresses

GPA Calculator

• Lookup the grade in the table and record the points• Compute the total points• Sum the points• Sum the credits• Compute the GPA

Page 17: Spreadsheets Relative & Absolute Addresses

Look up the grade• Vertical look up table• The look up table is outside of the GPA table, hence

ABS address.• The grade being looked up is in the GPA table, hence

REL address

Page 18: Spreadsheets Relative & Absolute Addresses

Vlookup

• Lookup_value: The grade (relative address)• Table_Array: The table (Absolute address)• Col_index_num: Number in column 2

Page 19: Spreadsheets Relative & Absolute Addresses

Vlookup

• Col_index_num: Number in column 2• Table_Array: The table (Absolute address)• Lookup_value: The grade (relative address)

Page 20: Spreadsheets Relative & Absolute Addresses

VLookup

Page 21: Spreadsheets Relative & Absolute Addresses

Multiply points * credits

Page 22: Spreadsheets Relative & Absolute Addresses

Copy formulas down columns

Page 23: Spreadsheets Relative & Absolute Addresses

Auto Sum

• Credit column• Total points column

Page 24: Spreadsheets Relative & Absolute Addresses

GPA

• Divide total points by total credits