SlideShare a Scribd company logo
CS 105
Spreadsheet Computations

What is a cell? What is a range?
What is a formula?

What is a circular reference?
What’s the difference between copying text
and copying a formula?

CS 105 Spring 2011

#1
Manipulating Data
• A calculator can store two numbers and do
simple manipulations
current

M
memory clear
memory recall
memory set
memory plus

Mem clear

Set M to zero

M=0

Mem recall

Set current to M

current = M

Mem set

Set M to current

M = current

Mem plus

Set M to M + current M = M + current

CS 105 Spring 2011

#2
Manipulating Spreadsheet Data
• A workbook contains worksheets(spreadsheets).
A spreadsheet stores data organized in cells,
and can do complex data manipulation.
Name box

active cell

formula bar

fill handle
The cell location is referred to as its cell reference.
CS 105 Spring 2011

#3
Cell Ranges
An adjacent range is a rectangular block of cells and can
be as small as a single cell.

G2 : G8
Single
Column
Range

column letters
A1
Single cell
A3 : E3
Single Row Range
B6:E13

Read as
“B6 to
E13”

Row numbers

CS 105 Spring 2011

#4
Cell contents can be either
Data or Formulas
• Data can be either Numeric or Strings:
– numbers (e.g. 25.32, -56, $78, 1.02E-3, 5%, 1/1/2011)
– strings (e.g., Total, Angelina Jolie, 1-217-244-0000)
• Formulas always begin with an equals = and can contain
operators, data, cell references, ranges and functions,
e.g.
= 1+ A1
• Cells also have formatting attributes

CS 105 Spring 2011

#5
Numbers as strings
• Some “numbers” are
entered as text
(strings):
– zip codes
– phone numbers
– social security
numbers
– Such numbers do not
get involved in
computation.

By default Excel left-justifies strings and right-justifies numbers.
CS 105 Spring 2011

#6
Date Entries
• Dates are a special kind of number – Try
01/01/1900
• Two-digit year values 00 through 29 are
interpreted as the years 2000 through 2029
• Year values 30 through 99 are interpreted
as the years 1930 through 1999.

CS 105 Spring 2011

#7
Formatting a two-digit date

CS 105 Spring 2011

#8
Date Calculations

Format cell as a
number, not a date

Formula view:

CS 105 Spring 2011

#9
Operators in Formulas
• Arithmetic operations (in order of precedence)
– parentheses
( )
– negation (as in -1)
– exponentiation
^
– multiplication, division
*
/
– addition, subtraction
+
-

CS 105 Spring 2011

# 10
Hierarchy of Arithmetic Operations in
Excel
– Scan the formula from left to right

– Evaluate what is in parentheses first
– Operations of highest priority are done first

– Evaluate from left to right operations of equal priority.
= B1 + B2 * C3

= -C1 ^ A1
= (B3-A1)*A1^2/B2

CS 105 Spring 2011

# 11
Functions in Formulas
• =TODAY()
• =MONTH( March 7, 2006)
• =MONTH(A1)

CS 105 Spring 2011

# 12
Bad Formulas!!! Circular References
• When a formula references itself
(either directly or indirectly) there is
a Circular Reference
• When this happens, Excel warns you
several times!!
• BAD:

CS 105 Spring 2011

# 13
Copying formulas
• Example: In a Sudoku board, every row must sum to 45
– more conditions, but we’ll stick to this for now

• Copy formula to the remaining rows (formula changes)

CS 105 Spring 2011

# 14
When you cut and paste a
cell that is referenced in a formula,
then again the formula changes

CS 105 Spring 2011

# 15
Copying/Pasting Formulas
Relative Cell Reference
• A cell reference that adjusts automatically
when it is copied.
• By default, formulas that you enter use
relative cell references.
• For example:

B to D = moved 2 Columns
2 to 5 = moved 3 Rows
CS 105 Spring 2011

# 16
Mixed Cell References
• A cell reference that refers to an exact
location on the worksheet and does not
adjust when copied.
• Cell reference is preceded by a dollar sign.
• For example:

=($B$5 + $C7) * D$9
Absolutely column b
and absolutely row 5

Absolutely
column c
CS 105 Spring 2011

Absolutely
row 9

# 17
Copying/Pasting Formulas
Mixed Cell References

What happened when these
formulas were copied?
CS 105 Spring 2011

# 18
To Summarize:
• What is a cell? What is a range?

• What is a formula?
• What is a circular reference?
• What’s the difference between copying text
and copying a formula?

CS 105 Spring 2011

# 19

More Related Content

PPTX
Spreadsheet formulas ppt (1)
PPT
Spreadhsheets 1
PDF
Introduction to spreadsheets
PPT
Spreadsheet fundamentals
PPT
spreadsheet program
PPTX
Ms excel ppt
PPT
Spread sheet tools presentation
PPTX
Functions in MS Excel
Spreadsheet formulas ppt (1)
Spreadhsheets 1
Introduction to spreadsheets
Spreadsheet fundamentals
spreadsheet program
Ms excel ppt
Spread sheet tools presentation
Functions in MS Excel

What's hot (20)

PPTX
Week2 excel
PPTX
Excel spreadsheet
PPTX
Intro to Excel Basics: Part II
PDF
Formulas and functions - By Amresh Tiwari
PPTX
Excel Top 10 formula For The Beginners
PDF
Quick Checks Computer
PDF
Basic Formulas - Excel 2013 Tutorial
PPTX
Ms excel 2013 data management
PPT
Matrix and Matrices
PPTX
Errors in ms excel
PPT
Intro To Spreadsheets Y34
PPTX
Excel Function Training
PDF
2. mathematical functions in excel
DOCX
Excel text function
PPTX
Excel functions and formulas
PPTX
Formulas and functions
PDF
Spreadsheet text functions
PDF
3 inner plumbing Excel tips
PPTX
MS-Excel Formulas and Functions
PDF
Advance database system(part 8)
Week2 excel
Excel spreadsheet
Intro to Excel Basics: Part II
Formulas and functions - By Amresh Tiwari
Excel Top 10 formula For The Beginners
Quick Checks Computer
Basic Formulas - Excel 2013 Tutorial
Ms excel 2013 data management
Matrix and Matrices
Errors in ms excel
Intro To Spreadsheets Y34
Excel Function Training
2. mathematical functions in excel
Excel text function
Excel functions and formulas
Formulas and functions
Spreadsheet text functions
3 inner plumbing Excel tips
MS-Excel Formulas and Functions
Advance database system(part 8)
Ad

Viewers also liked (18)

PPTX
06 excel4
 
PPTX
Forecasting the future
PPTX
Primeros pasos de power point
PPTX
Research Peptides Website Reviews & Where to Buy Peptides
PPT
English whale
PPTX
Cрби у Pумунији
PDF
Math120 20122
PPTX
Serbian football in 1930
TXT
Arial9
PPTX
01
 
PDF
Digital Gravity
PPTX
PPTX
excel ppt
 
PPTX
PPTX
IMAGING OF INTRACRANIAL PRIMARY NON-NEOPLASTIC CYSTS
PPTX
Testicular Torsion
PPTX
CYSTIC FIBROSIS
PPTX
Applicationofstack by Ali F.RAshid
06 excel4
 
Forecasting the future
Primeros pasos de power point
Research Peptides Website Reviews & Where to Buy Peptides
English whale
Cрби у Pумунији
Math120 20122
Serbian football in 1930
Arial9
01
 
Digital Gravity
excel ppt
 
IMAGING OF INTRACRANIAL PRIMARY NON-NEOPLASTIC CYSTS
Testicular Torsion
CYSTIC FIBROSIS
Applicationofstack by Ali F.RAshid
Ad

Similar to 03 excel1 (20)

PPTX
Lecture 1 Intro to Excel.pptx
PPTX
Power Point Presentation for Introduction to Excel for understanding
PPTX
Lecture 1 Introduction to MS Excel.pptx
PPTX
Excel 2013 illustrated unit b
PPTX
Excel 2013 Unit B
PPTX
Lesson 27 - Excel Lesson 13.pptx
PDF
Excel 2010 Unit B PPT
PPTX
Intermediate ms excel for business elective course for dlsu-d hs
PPTX
Excel module 2 ppt presentation
PDF
Excel note.pdf
PPTX
Training presentation get to know excel 2010 - create formulas
PPT
Lesson 4 excel formula
PPTX
Lesson
PPTX
QMMS Lesson 2 - Using Excel Formula.pptx
PDF
Excel2007formulas
PDF
Excel2007formulas
PPTX
Formula
PPTX
Basic course of MS Excel 2010 basics Chapter -02
PDF
NCompass Live: Excel for Librarians
Lecture 1 Intro to Excel.pptx
Power Point Presentation for Introduction to Excel for understanding
Lecture 1 Introduction to MS Excel.pptx
Excel 2013 illustrated unit b
Excel 2013 Unit B
Lesson 27 - Excel Lesson 13.pptx
Excel 2010 Unit B PPT
Intermediate ms excel for business elective course for dlsu-d hs
Excel module 2 ppt presentation
Excel note.pdf
Training presentation get to know excel 2010 - create formulas
Lesson 4 excel formula
Lesson
QMMS Lesson 2 - Using Excel Formula.pptx
Excel2007formulas
Excel2007formulas
Formula
Basic course of MS Excel 2010 basics Chapter -02
NCompass Live: Excel for Librarians

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Trump Administration's workforce development strategy
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
Updated Idioms and Phrasal Verbs in English subject
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Classroom Observation Tools for Teachers
PPTX
master seminar digital applications in india
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Final Presentation General Medicine 03-08-2024.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Trump Administration's workforce development strategy
2.FourierTransform-ShortQuestionswithAnswers.pdf
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Orientation - ARALprogram of Deped to the Parents.pptx
What if we spent less time fighting change, and more time building what’s rig...
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
A systematic review of self-coping strategies used by university students to ...
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Yogi Goddess Pres Conference Studio Updates
Updated Idioms and Phrasal Verbs in English subject
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Supply Chain Operations Speaking Notes -ICLT Program
STATICS OF THE RIGID BODIES Hibbelers.pdf
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Classroom Observation Tools for Teachers
master seminar digital applications in india
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape

03 excel1

  • 1. CS 105 Spreadsheet Computations What is a cell? What is a range? What is a formula? What is a circular reference? What’s the difference between copying text and copying a formula? CS 105 Spring 2011 #1
  • 2. Manipulating Data • A calculator can store two numbers and do simple manipulations current M memory clear memory recall memory set memory plus Mem clear Set M to zero M=0 Mem recall Set current to M current = M Mem set Set M to current M = current Mem plus Set M to M + current M = M + current CS 105 Spring 2011 #2
  • 3. Manipulating Spreadsheet Data • A workbook contains worksheets(spreadsheets). A spreadsheet stores data organized in cells, and can do complex data manipulation. Name box active cell formula bar fill handle The cell location is referred to as its cell reference. CS 105 Spring 2011 #3
  • 4. Cell Ranges An adjacent range is a rectangular block of cells and can be as small as a single cell. G2 : G8 Single Column Range column letters A1 Single cell A3 : E3 Single Row Range B6:E13 Read as “B6 to E13” Row numbers CS 105 Spring 2011 #4
  • 5. Cell contents can be either Data or Formulas • Data can be either Numeric or Strings: – numbers (e.g. 25.32, -56, $78, 1.02E-3, 5%, 1/1/2011) – strings (e.g., Total, Angelina Jolie, 1-217-244-0000) • Formulas always begin with an equals = and can contain operators, data, cell references, ranges and functions, e.g. = 1+ A1 • Cells also have formatting attributes CS 105 Spring 2011 #5
  • 6. Numbers as strings • Some “numbers” are entered as text (strings): – zip codes – phone numbers – social security numbers – Such numbers do not get involved in computation. By default Excel left-justifies strings and right-justifies numbers. CS 105 Spring 2011 #6
  • 7. Date Entries • Dates are a special kind of number – Try 01/01/1900 • Two-digit year values 00 through 29 are interpreted as the years 2000 through 2029 • Year values 30 through 99 are interpreted as the years 1930 through 1999. CS 105 Spring 2011 #7
  • 8. Formatting a two-digit date CS 105 Spring 2011 #8
  • 9. Date Calculations Format cell as a number, not a date Formula view: CS 105 Spring 2011 #9
  • 10. Operators in Formulas • Arithmetic operations (in order of precedence) – parentheses ( ) – negation (as in -1) – exponentiation ^ – multiplication, division * / – addition, subtraction + - CS 105 Spring 2011 # 10
  • 11. Hierarchy of Arithmetic Operations in Excel – Scan the formula from left to right – Evaluate what is in parentheses first – Operations of highest priority are done first – Evaluate from left to right operations of equal priority. = B1 + B2 * C3 = -C1 ^ A1 = (B3-A1)*A1^2/B2 CS 105 Spring 2011 # 11
  • 12. Functions in Formulas • =TODAY() • =MONTH( March 7, 2006) • =MONTH(A1) CS 105 Spring 2011 # 12
  • 13. Bad Formulas!!! Circular References • When a formula references itself (either directly or indirectly) there is a Circular Reference • When this happens, Excel warns you several times!! • BAD: CS 105 Spring 2011 # 13
  • 14. Copying formulas • Example: In a Sudoku board, every row must sum to 45 – more conditions, but we’ll stick to this for now • Copy formula to the remaining rows (formula changes) CS 105 Spring 2011 # 14
  • 15. When you cut and paste a cell that is referenced in a formula, then again the formula changes CS 105 Spring 2011 # 15
  • 16. Copying/Pasting Formulas Relative Cell Reference • A cell reference that adjusts automatically when it is copied. • By default, formulas that you enter use relative cell references. • For example: B to D = moved 2 Columns 2 to 5 = moved 3 Rows CS 105 Spring 2011 # 16
  • 17. Mixed Cell References • A cell reference that refers to an exact location on the worksheet and does not adjust when copied. • Cell reference is preceded by a dollar sign. • For example: =($B$5 + $C7) * D$9 Absolutely column b and absolutely row 5 Absolutely column c CS 105 Spring 2011 Absolutely row 9 # 17
  • 18. Copying/Pasting Formulas Mixed Cell References What happened when these formulas were copied? CS 105 Spring 2011 # 18
  • 19. To Summarize: • What is a cell? What is a range? • What is a formula? • What is a circular reference? • What’s the difference between copying text and copying a formula? CS 105 Spring 2011 # 19