3 Formulas, Ranges, Functions.ppt

MS Excel Basics
Formulas
 Formulas perform operations such as
addition, multiplication, and comparison on
worksheet values.
 Formulas can refer to other cells on the same
worksheet, cells on other worksheets in the
same workbook, or even cells on worksheets
in other workbooks.
 Formulas may make use of built-in functions.
 Excel knows you are entering a formula in a
cell because every formula starts with an =
sign.
 If you forget the = sign, what you enter will
be treated as text (unless it can be
interpreted as a number in some format).
 The following example adds the value of
cell B4 to 25 and then divides the result by
the sum of cells D5, E5, and F5.
= (B4+25)/SUM(D5:F5)
 This example illustrates the use of
– The cell reference B4
– The numerical constant 25
– Arithmetic operators + and /
– The use of parentheses to specify order of
calculation
– The built-in SUM function
– A range reference D5:F5
About formula syntax
 Formulas calculate values in an order based
on usual mathematical conventions.
 You can always add parentheses to control
the order of calculation.
 For example, 4+3*2 is interpreted as
4+(3*2), which is 10.
 If you want the addition done first, use
(4+3)*2, which is 14.
Calculation operators in formulas
 Operators specify the type of calculation
that you want to perform on the elements of
a formula.
 Microsoft Excel includes four different
types of calculation operators: arithmetic,
comparison, text, and reference.
 Reference operators are used in range
references, and we examine them later.
 Arithmetic operators perform basic
mathematical operations such as addition,
subtraction, or multiplication; combine
numbers; and produce numeric results.
 Arithmetic operator
 + (plus sign)
 – (minus sign)
 * (asterisk)
 / (forward slash)
 % (percent sign)
 ^ (caret)
 Meaning and
Example
 Addition 3+3
 Subtraction 3-1 or
Negation -1
 Multiplication 3*3
 Division 3/3
 Percent 20%
 Exponentiation 3^2
Comparison operators compare two values
and then produce the logical value TRUE or
FALSE.
 Comparison operator
 = (equal sign)
 > (greater than sign)
 < (less than sign)
 >= (greater than or equal
to sign)
 <= (less than or equal to
sign)
 <> (not equal to sign)
 Meaning & Example
 Equal to A1=B1
 Greater than A1>B1
 Less than A1<B1
 Greater than or equal to
A1>=B1
 Less than or equal to
A1<=B1
 Not equal to A1<>B1
 The comparison operators are often used
with certain built-in functions like IF to
produce a numeric result.
 For example,
IF(A1>B1,5,0)
would yield 5 if the value in cell A1 is
greater than the value in cell B1 and 0
otherwise.
Range References
 Formulas can refer to individual cells or
ranges of cells, or to names or labels that
represent cells or ranges.
 Ranges of cells are most often used as
arguments to functions that can be applied
to a variable number of cells, and they are
also used when specifying what values are
to be plotted in a chart.
Some range reference examples
 SUM(B5:E10) adds up the values in all the
cells in the rectangular area of the chart
from column B through column E and from
row 5 through row 10.
 B5:B10 is the range reference, referring to a
total of 24 cells:
3 Formulas, Ranges, Functions.ppt
 This is what is called a contiguous range,
which represents a rectangular set of cells
within the worksheet.
 Other examples of contiguous ranges are
D7:H7 (all within one row) and C14:C25
(all within one column).
 Consider SUM(B5:E10,G1:G7)
 Here, a total of 24+7=31 numbers are to be
summed.
 B5:E10,G1:G7 is considered a range
reference as well, but this is called a non-
contiguous range:
3 Formulas, Ranges, Functions.ppt
 The main reference operators are then
– : (colon) – used to specify a contiguous range
of cells
– , (comma) – used to represent the union of two
or more contiguous ranges
 Another reference operator is the single
space, used to represent the intersection of
two ranges.
 This is most often used when rows and
columns are given names.
 E.g., in our earlier grade book example,
Adams Final would specify the cell at the
intersection of the Adams row and the Final
column.
Tip on entering cell and range
references in formulas
 When you’re entering a formula, instead of
typing a cell reference like B4 in the
formula, click in cell B4 and the reference
will be created for you automatically.
 To get a contiguous range reference, click
and drag from one corner of the range to the
opposite corner.
 To get a non-contiguous range reference,
click and drag to select the first contiguous
sub-range, then hold the shift key down
while clicking and dragging to select all the
remaining contiguous sub-ranges.
Functions
 Microsoft Excel contains many predefined
functions that can be used in formulas.
 Functions can be used to perform simple or
complex calculations.
 To enter a function, you can either type it in
directly, or select it from the dialog box that
appears when you click the Paste Function
button on the standard toolbar:
3 Formulas, Ranges, Functions.ppt
 The most common function in worksheets is
the SUM function, which is used to add
ranges of cells.
 In fact, it is so commonly used that it has its
own button, the AutoSum button, on the
standard toolbar.
 Although SUM(B3:B5) yields the same
value as B3+B4+B5, it is generally much
better to use the SUM function because the
range reference B3:B5 adapts automatically
to changes like inserting additional rows
within the range.
Using functions to calculate
values
 Functions are predefined formulas that perform
calculations by using specific values, called
arguments, in a particular order, called the syntax.
 For example, the SUM function adds values or
ranges of cells, and the PMT function calculates
the loan payments based on an interest rate, the
length of the loan, and the principal amount of the
loan.
Syntax of a function
 The syntax of a function begins with the
function name, followed by an opening
parenthesis, the arguments for the function
separated by commas, and a closing
parenthesis.
 If the function starts a formula, don’t forget
to type an equal sign (=) before the function
name.
 As you create a formula that contains a
function, the Formula Palette can help you.
 This is a dialog box that comes up after you
select a function from the Paste Function
dialog box and click OK.
 Arguments to
functions can be
– numbers,
– text,
– logical values such as
TRUE or FALSE,
– arrays,
– error values such as
#N/A,
– cell references,
– constants,
– formulas, or
– other functions
Functions within functions, or
nesting
 Functions can be used as arguments for
other functions.
 When a function is used as an argument, or
nested, it must return the same type of value
that the argument uses.
 If a nested function does not return the
correct type of value, Microsoft Excel will
display a #VALUE! error value.
 A formula can contain up to seven levels of
nested functions.
 When Function B is used as an argument in
Function A, Function B is a second-level
function.
 If Function B contains Function C as an
argument, Function C would be a third-level
function.
 There are over 400 built-in functions in
Excel
Categories of functions
 Financial
 Date and time
 Math and trig
 Statistical
 Lookup and reference
 Database
 Text
 Logical
 Information
Examples of financial functions
 IPMT--returns the interest payment for a
given period for an investment based on
periodic, constant payments and a constant
interest rate.
 PMT--calculates the payment on a loan
based on constant payments and a constant
interest rate.
Some Date and Time Functions
 NOW--returns the serial number of the current
date and time.
 TODAY--returns a number that represents the
current date in MS Excel date-time code.
 Neither one takes an argument; so they look like
NOW() and TODAY().
 The result of NOW() might be 10/9/00 10:30.
 The result of TODAY() could be 10/9/00.
 These will always be updated each time the
workbook is opened or closed.
Sample Math and Trig functions
 COS(num)--returns the cosine of an angle.
 FLOOR(number, significance)--rounds a
number down, toward zero, to the nearest
multiple of significance.
 SUM(num 1, num 2,…)--adds all the
numbers in a range of cells.
Some Statistical Functions
 AVERAGE(num1, num2,…)--returns the
average (arithmetic mean) of its arguments.
 COUNT(value1, value2,…)--counts how
many cell contain numbers among all the
cells in the list of arguments.
 MAX(num1, num2,…)--returns the largest
value in a set of values.
Some Lookup and Reference
Functions
 LOOKUP(…)--returns a value either from a
one-row or a one-column range.
 TRANSPOSE(array)--returns a vertical
range of cells as a horizontal range, or vice
versa.
Sample Database Functions
 DCOUNT(database,field,criteria)--counts
the cells containing numbers in the field
(column) of records in the database that
match the specified criteria.
Some Logical Functions
 AND(logical1,logical2,...)--returns TRUE if
all its arguments are TRUE; returns FALSE
if any argument is FALSE.
 NOT(logical)--reverses the logic of its
argument; returns TRUE for a FALSE
argument and FALSE for a TRUE
argument.
1 de 40

Recomendados

Excel Overview.pptx por
Excel Overview.pptxExcel Overview.pptx
Excel Overview.pptxNewmanLeke
14 visualizações57 slides
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample) por
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)Patrice Dowtin, MS, MBA
399 visualizações8 slides
Top 20 microsoft excel formulas you must know por
Top 20 microsoft excel formulas you must knowTop 20 microsoft excel formulas you must know
Top 20 microsoft excel formulas you must knowAlexHenderson59
111 visualizações20 slides
Excel Chapter 2 - Inserting Formulas in a Worksheet por
Excel Chapter 2 - Inserting Formulas in a WorksheetExcel Chapter 2 - Inserting Formulas in a Worksheet
Excel Chapter 2 - Inserting Formulas in a Worksheetdpd
4.1K visualizações32 slides
03 Excel formulas and functions por
03 Excel formulas and functions03 Excel formulas and functions
03 Excel formulas and functionsBuffalo Seminary
11.5K visualizações9 slides
Functions and formulas of ms excel por
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excelmadhuparna bhowmik
135K visualizações32 slides

Mais conteúdo relacionado

Similar a 3 Formulas, Ranges, Functions.ppt

Ms excel commands por
Ms excel commandsMs excel commands
Ms excel commandsDiyaVerma14
11 visualizações31 slides
MIS 226: Chapter 2 por
MIS 226: Chapter 2MIS 226: Chapter 2
MIS 226: Chapter 2macrob14
863 visualizações39 slides
Excel for research por
Excel  for researchExcel  for research
Excel for researchJamalBhai
2.1K visualizações52 slides
Basic Formulas - Excel 2013 Tutorial por
Basic Formulas - Excel 2013 TutorialBasic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 TutorialSpreadsheetTrainer
7.4K visualizações20 slides
AAG_Excel_2010_Formulas_and_Functions por
AAG_Excel_2010_Formulas_and_FunctionsAAG_Excel_2010_Formulas_and_Functions
AAG_Excel_2010_Formulas_and_FunctionsPatrice Dowtin, MS, MBA
310 visualizações3 slides
Grade 5 Computer por
Grade 5 ComputerGrade 5 Computer
Grade 5 ComputerJoel Linquico
167 visualizações35 slides

Similar a 3 Formulas, Ranges, Functions.ppt(20)

Ms excel commands por DiyaVerma14
Ms excel commandsMs excel commands
Ms excel commands
DiyaVerma1411 visualizações
MIS 226: Chapter 2 por macrob14
MIS 226: Chapter 2MIS 226: Chapter 2
MIS 226: Chapter 2
macrob14863 visualizações
Excel for research por JamalBhai
Excel  for researchExcel  for research
Excel for research
JamalBhai2.1K visualizações
Basic Formulas - Excel 2013 Tutorial por SpreadsheetTrainer
Basic Formulas - Excel 2013 TutorialBasic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 Tutorial
SpreadsheetTrainer7.4K visualizações
AAG_Excel_2010_Formulas_and_Functions por Patrice Dowtin, MS, MBA
AAG_Excel_2010_Formulas_and_FunctionsAAG_Excel_2010_Formulas_and_Functions
AAG_Excel_2010_Formulas_and_Functions
Patrice Dowtin, MS, MBA310 visualizações
Grade 5 Computer por Joel Linquico
Grade 5 ComputerGrade 5 Computer
Grade 5 Computer
Joel Linquico167 visualizações
Grade 6 Computer por Joel Linquico
Grade 6 Computer Grade 6 Computer
Grade 6 Computer
Joel Linquico53 visualizações
Microsoft Excel.pptx por SIMNchannel
Microsoft Excel.pptxMicrosoft Excel.pptx
Microsoft Excel.pptx
SIMNchannel10 visualizações
2. mathematical functions in excel por Dr. Prashant Vats
2. mathematical functions in excel2. mathematical functions in excel
2. mathematical functions in excel
Dr. Prashant Vats1.6K visualizações
22 Excel Basics por Buffalo Seminary
22 Excel Basics22 Excel Basics
22 Excel Basics
Buffalo Seminary22.2K visualizações
Excel11 por acharyaa
Excel11Excel11
Excel11
acharyaa569 visualizações
Libre Office Calc Lesson 4: Understanding Functions por Smart Chicago Collaborative
Libre Office Calc Lesson 4: Understanding FunctionsLibre Office Calc Lesson 4: Understanding Functions
Libre Office Calc Lesson 4: Understanding Functions
Smart Chicago Collaborative16.7K visualizações
MicrosoftExcel por Vincent Nguyen
MicrosoftExcelMicrosoftExcel
MicrosoftExcel
Vincent Nguyen123 visualizações
Introduction_Excel.ppt por elsagalgao
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
elsagalgao6 visualizações
Introduction_Excel.ppt por Ektasingh152981
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
Ektasingh1529814 visualizações
Introduction_Excel.ppt por Ektasingh152981
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
Ektasingh1529816 visualizações
Introduction_Excel.ppt por SumitBhargavGhadge
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
SumitBhargavGhadge3 visualizações
Ms excel 2016_function por Paktia University
Ms excel 2016_functionMs excel 2016_function
Ms excel 2016_function
Paktia University374 visualizações
GPP Spreadsheets por mrcarty
GPP SpreadsheetsGPP Spreadsheets
GPP Spreadsheets
mrcarty479 visualizações

Mais de JosephIThomas

Establishing A Centre of Excellence in IPR at Rajagiri College.ppsx por
Establishing A Centre of Excellence in IPR at Rajagiri College.ppsxEstablishing A Centre of Excellence in IPR at Rajagiri College.ppsx
Establishing A Centre of Excellence in IPR at Rajagiri College.ppsxJosephIThomas
4 visualizações13 slides
University Library Services during covid 19.pptx por
University Library Services during covid 19.pptxUniversity Library Services during covid 19.pptx
University Library Services during covid 19.pptxJosephIThomas
7 visualizações40 slides
national social science documentation centren.pptx por
national social science documentation centren.pptxnational social science documentation centren.pptx
national social science documentation centren.pptxJosephIThomas
9 visualizações10 slides
Wiki Tutorial.ppt por
Wiki Tutorial.pptWiki Tutorial.ppt
Wiki Tutorial.pptJosephIThomas
3 visualizações36 slides
national social science documentation centre nassdoc.pdf por
national social science documentation centre nassdoc.pdfnational social science documentation centre nassdoc.pdf
national social science documentation centre nassdoc.pdfJosephIThomas
6 visualizações10 slides
4 Clearing houses, Translation centres and Reprographic centres.pptx por
4 Clearing houses, Translation centres and Reprographic centres.pptx4 Clearing houses, Translation centres and Reprographic centres.pptx
4 Clearing houses, Translation centres and Reprographic centres.pptxJosephIThomas
133 visualizações16 slides

Mais de JosephIThomas(13)

Establishing A Centre of Excellence in IPR at Rajagiri College.ppsx por JosephIThomas
Establishing A Centre of Excellence in IPR at Rajagiri College.ppsxEstablishing A Centre of Excellence in IPR at Rajagiri College.ppsx
Establishing A Centre of Excellence in IPR at Rajagiri College.ppsx
JosephIThomas4 visualizações
University Library Services during covid 19.pptx por JosephIThomas
University Library Services during covid 19.pptxUniversity Library Services during covid 19.pptx
University Library Services during covid 19.pptx
JosephIThomas7 visualizações
national social science documentation centren.pptx por JosephIThomas
national social science documentation centren.pptxnational social science documentation centren.pptx
national social science documentation centren.pptx
JosephIThomas9 visualizações
Wiki Tutorial.ppt por JosephIThomas
Wiki Tutorial.pptWiki Tutorial.ppt
Wiki Tutorial.ppt
JosephIThomas3 visualizações
national social science documentation centre nassdoc.pdf por JosephIThomas
national social science documentation centre nassdoc.pdfnational social science documentation centre nassdoc.pdf
national social science documentation centre nassdoc.pdf
JosephIThomas6 visualizações
4 Clearing houses, Translation centres and Reprographic centres.pptx por JosephIThomas
4 Clearing houses, Translation centres and Reprographic centres.pptx4 Clearing houses, Translation centres and Reprographic centres.pptx
4 Clearing houses, Translation centres and Reprographic centres.pptx
JosephIThomas133 visualizações
Whats IEEE por JosephIThomas
Whats IEEEWhats IEEE
Whats IEEE
JosephIThomas16 visualizações
History and Development of Libraries.pptx por JosephIThomas
History and Development of Libraries.pptxHistory and Development of Libraries.pptx
History and Development of Libraries.pptx
JosephIThomas58 visualizações
Types of Cyber Harassment and Legal Provisions.pptx por JosephIThomas
Types of Cyber Harassment and Legal Provisions.pptxTypes of Cyber Harassment and Legal Provisions.pptx
Types of Cyber Harassment and Legal Provisions.pptx
JosephIThomas4 visualizações
Open Access Resources in Law - Alagappa conference 2023.pptx por JosephIThomas
Open Access Resources in Law - Alagappa conference 2023.pptxOpen Access Resources in Law - Alagappa conference 2023.pptx
Open Access Resources in Law - Alagappa conference 2023.pptx
JosephIThomas12 visualizações
M.LIB_.-_Paper_VIII-_Data_Centre_and_Referral_Centre-lecture_2-Dr_Sonal_Singh... por JosephIThomas
M.LIB_.-_Paper_VIII-_Data_Centre_and_Referral_Centre-lecture_2-Dr_Sonal_Singh...M.LIB_.-_Paper_VIII-_Data_Centre_and_Referral_Centre-lecture_2-Dr_Sonal_Singh...
M.LIB_.-_Paper_VIII-_Data_Centre_and_Referral_Centre-lecture_2-Dr_Sonal_Singh...
JosephIThomas7 visualizações
Areas of application.pptx por JosephIThomas
Areas of application.pptxAreas of application.pptx
Areas of application.pptx
JosephIThomas4 visualizações
Career Option for Library and Information Science.pptx por JosephIThomas
Career Option for Library and Information Science.pptxCareer Option for Library and Information Science.pptx
Career Option for Library and Information Science.pptx
JosephIThomas11 visualizações

Último

Sudden Deafness Design Document por
Sudden Deafness Design DocumentSudden Deafness Design Document
Sudden Deafness Design Documentwyfangherman
51 visualizações19 slides
FIESTAS DE QUITO.pdf por
FIESTAS DE QUITO.pdfFIESTAS DE QUITO.pdf
FIESTAS DE QUITO.pdfeluniversocom
23 visualizações8 slides
Essay 29.docx por
Essay 29.docxEssay 29.docx
Essay 29.docxOrlySiquihua
5 visualizações1 slide
Antimalarial agents-Medicinal Chemistry por
Antimalarial agents-Medicinal ChemistryAntimalarial agents-Medicinal Chemistry
Antimalarial agents-Medicinal ChemistryNarminHamaaminHussen
7 visualizações27 slides
Free World aids day Template from Best presentation design agency por
Free World aids day Template from Best presentation design agencyFree World aids day Template from Best presentation design agency
Free World aids day Template from Best presentation design agencyslideceotemplates
9 visualizações10 slides
Oregon Ducks 4 Spencer Webb Hoodie por
Oregon Ducks 4 Spencer Webb HoodieOregon Ducks 4 Spencer Webb Hoodie
Oregon Ducks 4 Spencer Webb Hoodiebrandshop1
13 visualizações1 slide

Último(20)

Sudden Deafness Design Document por wyfangherman
Sudden Deafness Design DocumentSudden Deafness Design Document
Sudden Deafness Design Document
wyfangherman51 visualizações
FIESTAS DE QUITO.pdf por eluniversocom
FIESTAS DE QUITO.pdfFIESTAS DE QUITO.pdf
FIESTAS DE QUITO.pdf
eluniversocom23 visualizações
Essay 29.docx por OrlySiquihua
Essay 29.docxEssay 29.docx
Essay 29.docx
OrlySiquihua5 visualizações
Antimalarial agents-Medicinal Chemistry por NarminHamaaminHussen
Antimalarial agents-Medicinal ChemistryAntimalarial agents-Medicinal Chemistry
Antimalarial agents-Medicinal Chemistry
NarminHamaaminHussen7 visualizações
Free World aids day Template from Best presentation design agency por slideceotemplates
Free World aids day Template from Best presentation design agencyFree World aids day Template from Best presentation design agency
Free World aids day Template from Best presentation design agency
slideceotemplates9 visualizações
Oregon Ducks 4 Spencer Webb Hoodie por brandshop1
Oregon Ducks 4 Spencer Webb HoodieOregon Ducks 4 Spencer Webb Hoodie
Oregon Ducks 4 Spencer Webb Hoodie
brandshop113 visualizações
Using Experiential Design to Understand the Future of AI & Immersive Storytel... por Kent Bye
Using Experiential Design to Understand the Future of AI & Immersive Storytel...Using Experiential Design to Understand the Future of AI & Immersive Storytel...
Using Experiential Design to Understand the Future of AI & Immersive Storytel...
Kent Bye13 visualizações
Anti -Parkinsonian Drugs-Medicinal Chemistry por NarminHamaaminHussen
Anti -Parkinsonian Drugs-Medicinal ChemistryAnti -Parkinsonian Drugs-Medicinal Chemistry
Anti -Parkinsonian Drugs-Medicinal Chemistry
NarminHamaaminHussen20 visualizações
The Report is Dead, Long Live the Report ! Communicating Usability Research F... por Centralis
The Report is Dead, Long Live the Report ! Communicating Usability Research F...The Report is Dead, Long Live the Report ! Communicating Usability Research F...
The Report is Dead, Long Live the Report ! Communicating Usability Research F...
Centralis6 visualizações
The-Craft Menu por nyhapedraza
The-Craft MenuThe-Craft Menu
The-Craft Menu
nyhapedraza16 visualizações
Menu.pdf por nyhapedraza
Menu.pdfMenu.pdf
Menu.pdf
nyhapedraza13 visualizações
217 Drive - All on upper.pptx por vidstor282
217 Drive - All on upper.pptx217 Drive - All on upper.pptx
217 Drive - All on upper.pptx
vidstor28217 visualizações
Cocktail Merchandise por nyhapedraza
Cocktail MerchandiseCocktail Merchandise
Cocktail Merchandise
nyhapedraza7 visualizações
New Icon Presentation.pdf por sydneyjrichardson
New Icon Presentation.pdfNew Icon Presentation.pdf
New Icon Presentation.pdf
sydneyjrichardson23 visualizações
StratPlanning Manual 220713.pdf por Lakewalk Media
StratPlanning Manual 220713.pdfStratPlanning Manual 220713.pdf
StratPlanning Manual 220713.pdf
Lakewalk Media19 visualizações
DR Portfolio.pptx por robertsd2
DR Portfolio.pptxDR Portfolio.pptx
DR Portfolio.pptx
robertsd214 visualizações
JAWARK Inside Company Profile 2024 por mostafareda1994
JAWARK Inside Company Profile 2024JAWARK Inside Company Profile 2024
JAWARK Inside Company Profile 2024
mostafareda19947 visualizações
Antifungal agents-Medicinal Chemistry por NarminHamaaminHussen
Antifungal agents-Medicinal Chemistry Antifungal agents-Medicinal Chemistry
Antifungal agents-Medicinal Chemistry
NarminHamaaminHussen13 visualizações
EL FODA.pdf por estefanimilenca
EL FODA.pdfEL FODA.pdf
EL FODA.pdf
estefanimilenca7 visualizações
Anthelmintic Drugs-Medicinal Chemistry por NarminHamaaminHussen
Anthelmintic Drugs-Medicinal ChemistryAnthelmintic Drugs-Medicinal Chemistry
Anthelmintic Drugs-Medicinal Chemistry
NarminHamaaminHussen8 visualizações

3 Formulas, Ranges, Functions.ppt

  • 2. Formulas  Formulas perform operations such as addition, multiplication, and comparison on worksheet values.  Formulas can refer to other cells on the same worksheet, cells on other worksheets in the same workbook, or even cells on worksheets in other workbooks.  Formulas may make use of built-in functions.
  • 3.  Excel knows you are entering a formula in a cell because every formula starts with an = sign.  If you forget the = sign, what you enter will be treated as text (unless it can be interpreted as a number in some format).
  • 4.  The following example adds the value of cell B4 to 25 and then divides the result by the sum of cells D5, E5, and F5. = (B4+25)/SUM(D5:F5)
  • 5.  This example illustrates the use of – The cell reference B4 – The numerical constant 25 – Arithmetic operators + and / – The use of parentheses to specify order of calculation – The built-in SUM function – A range reference D5:F5
  • 6. About formula syntax  Formulas calculate values in an order based on usual mathematical conventions.  You can always add parentheses to control the order of calculation.  For example, 4+3*2 is interpreted as 4+(3*2), which is 10.  If you want the addition done first, use (4+3)*2, which is 14.
  • 7. Calculation operators in formulas  Operators specify the type of calculation that you want to perform on the elements of a formula.  Microsoft Excel includes four different types of calculation operators: arithmetic, comparison, text, and reference.  Reference operators are used in range references, and we examine them later.
  • 8.  Arithmetic operators perform basic mathematical operations such as addition, subtraction, or multiplication; combine numbers; and produce numeric results.
  • 9.  Arithmetic operator  + (plus sign)  – (minus sign)  * (asterisk)  / (forward slash)  % (percent sign)  ^ (caret)  Meaning and Example  Addition 3+3  Subtraction 3-1 or Negation -1  Multiplication 3*3  Division 3/3  Percent 20%  Exponentiation 3^2
  • 10. Comparison operators compare two values and then produce the logical value TRUE or FALSE.  Comparison operator  = (equal sign)  > (greater than sign)  < (less than sign)  >= (greater than or equal to sign)  <= (less than or equal to sign)  <> (not equal to sign)  Meaning & Example  Equal to A1=B1  Greater than A1>B1  Less than A1<B1  Greater than or equal to A1>=B1  Less than or equal to A1<=B1  Not equal to A1<>B1
  • 11.  The comparison operators are often used with certain built-in functions like IF to produce a numeric result.  For example, IF(A1>B1,5,0) would yield 5 if the value in cell A1 is greater than the value in cell B1 and 0 otherwise.
  • 12. Range References  Formulas can refer to individual cells or ranges of cells, or to names or labels that represent cells or ranges.  Ranges of cells are most often used as arguments to functions that can be applied to a variable number of cells, and they are also used when specifying what values are to be plotted in a chart.
  • 13. Some range reference examples  SUM(B5:E10) adds up the values in all the cells in the rectangular area of the chart from column B through column E and from row 5 through row 10.  B5:B10 is the range reference, referring to a total of 24 cells:
  • 15.  This is what is called a contiguous range, which represents a rectangular set of cells within the worksheet.  Other examples of contiguous ranges are D7:H7 (all within one row) and C14:C25 (all within one column).
  • 16.  Consider SUM(B5:E10,G1:G7)  Here, a total of 24+7=31 numbers are to be summed.  B5:E10,G1:G7 is considered a range reference as well, but this is called a non- contiguous range:
  • 18.  The main reference operators are then – : (colon) – used to specify a contiguous range of cells – , (comma) – used to represent the union of two or more contiguous ranges
  • 19.  Another reference operator is the single space, used to represent the intersection of two ranges.  This is most often used when rows and columns are given names.  E.g., in our earlier grade book example, Adams Final would specify the cell at the intersection of the Adams row and the Final column.
  • 20. Tip on entering cell and range references in formulas  When you’re entering a formula, instead of typing a cell reference like B4 in the formula, click in cell B4 and the reference will be created for you automatically.  To get a contiguous range reference, click and drag from one corner of the range to the opposite corner.
  • 21.  To get a non-contiguous range reference, click and drag to select the first contiguous sub-range, then hold the shift key down while clicking and dragging to select all the remaining contiguous sub-ranges.
  • 22. Functions  Microsoft Excel contains many predefined functions that can be used in formulas.  Functions can be used to perform simple or complex calculations.  To enter a function, you can either type it in directly, or select it from the dialog box that appears when you click the Paste Function button on the standard toolbar:
  • 24.  The most common function in worksheets is the SUM function, which is used to add ranges of cells.  In fact, it is so commonly used that it has its own button, the AutoSum button, on the standard toolbar.
  • 25.  Although SUM(B3:B5) yields the same value as B3+B4+B5, it is generally much better to use the SUM function because the range reference B3:B5 adapts automatically to changes like inserting additional rows within the range.
  • 26. Using functions to calculate values  Functions are predefined formulas that perform calculations by using specific values, called arguments, in a particular order, called the syntax.  For example, the SUM function adds values or ranges of cells, and the PMT function calculates the loan payments based on an interest rate, the length of the loan, and the principal amount of the loan.
  • 27. Syntax of a function  The syntax of a function begins with the function name, followed by an opening parenthesis, the arguments for the function separated by commas, and a closing parenthesis.  If the function starts a formula, don’t forget to type an equal sign (=) before the function name.
  • 28.  As you create a formula that contains a function, the Formula Palette can help you.  This is a dialog box that comes up after you select a function from the Paste Function dialog box and click OK.
  • 29.  Arguments to functions can be – numbers, – text, – logical values such as TRUE or FALSE, – arrays, – error values such as #N/A, – cell references, – constants, – formulas, or – other functions
  • 30. Functions within functions, or nesting  Functions can be used as arguments for other functions.  When a function is used as an argument, or nested, it must return the same type of value that the argument uses.  If a nested function does not return the correct type of value, Microsoft Excel will display a #VALUE! error value.
  • 31.  A formula can contain up to seven levels of nested functions.  When Function B is used as an argument in Function A, Function B is a second-level function.  If Function B contains Function C as an argument, Function C would be a third-level function.
  • 32.  There are over 400 built-in functions in Excel
  • 33. Categories of functions  Financial  Date and time  Math and trig  Statistical  Lookup and reference  Database  Text  Logical  Information
  • 34. Examples of financial functions  IPMT--returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.  PMT--calculates the payment on a loan based on constant payments and a constant interest rate.
  • 35. Some Date and Time Functions  NOW--returns the serial number of the current date and time.  TODAY--returns a number that represents the current date in MS Excel date-time code.  Neither one takes an argument; so they look like NOW() and TODAY().  The result of NOW() might be 10/9/00 10:30.  The result of TODAY() could be 10/9/00.  These will always be updated each time the workbook is opened or closed.
  • 36. Sample Math and Trig functions  COS(num)--returns the cosine of an angle.  FLOOR(number, significance)--rounds a number down, toward zero, to the nearest multiple of significance.  SUM(num 1, num 2,…)--adds all the numbers in a range of cells.
  • 37. Some Statistical Functions  AVERAGE(num1, num2,…)--returns the average (arithmetic mean) of its arguments.  COUNT(value1, value2,…)--counts how many cell contain numbers among all the cells in the list of arguments.  MAX(num1, num2,…)--returns the largest value in a set of values.
  • 38. Some Lookup and Reference Functions  LOOKUP(…)--returns a value either from a one-row or a one-column range.  TRANSPOSE(array)--returns a vertical range of cells as a horizontal range, or vice versa.
  • 39. Sample Database Functions  DCOUNT(database,field,criteria)--counts the cells containing numbers in the field (column) of records in the database that match the specified criteria.
  • 40. Some Logical Functions  AND(logical1,logical2,...)--returns TRUE if all its arguments are TRUE; returns FALSE if any argument is FALSE.  NOT(logical)--reverses the logic of its argument; returns TRUE for a FALSE argument and FALSE for a TRUE argument.