Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.
-
Upload
reilly-cahill -
Category
Documents
-
view
213 -
download
0
Transcript of Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.
![Page 1: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/1.jpg)
SpreadsheetsRelative & Absolute Addresses
CIL 102‘08 Fall
![Page 2: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/2.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/3.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/4.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/5.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/6.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/7.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/8.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/9.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/10.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/11.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/12.jpg)
Simple Absolute Address Example
The F4 Key.• Complete the area
computation in the same manner
![Page 13: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/13.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/14.jpg)
GPA Calculator
![Page 15: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/15.jpg)
GPA Calculator
• List your courses• List your grades• List the number of credits
![Page 16: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/16.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/17.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/18.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/19.jpg)
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 CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/20.jpg)
VLookup
![Page 21: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/21.jpg)
Multiply points * credits
![Page 22: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/22.jpg)
Copy formulas down columns
![Page 23: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/23.jpg)
Auto Sum
• Credit column• Total points column
![Page 24: Spreadsheets Relative & Absolute Addresses CIL 102 ‘08 Fall.](https://reader035.fdocuments.in/reader035/viewer/2022070323/56649d835503460f94a69142/html5/thumbnails/24.jpg)
GPA
• Divide total points by total credits