SlideShare ist ein Scribd-Unternehmen logo
1 von 33
EXCEL FORMULAS AND
FUNCTIONSH T T P S : / / E X C E L J E T . N E T / E X C E L - F O R M U L A S - A N D - F U N C T I O N S
GRADE 6 COMPUTER
EXCEL FORMULAS AND FUNCTIONS
Formulas and functions are the bread and
butter of Excel.They drive almost
everything interesting and useful you will
ever do in a spreadsheet.This article
introduces the basic concepts you need
to know to be proficient with formulas in
Excel. More examples here.
WHAT IS A FORMULA?
A formula in Excel is an expression that returns a specific result. For example:
=1+2 // returns 3
=6/3 // returns 2
Note: all formulas in Excel must begin with an equals
sign (=).
CELL REFERENCES
In the examples above, values are
"hardcoded".That means results won't
change unless you edit the formula again and
change a value manually. Generally, this is
considered bad form, because it hides
information and makes it harder to maintain a
spreadsheet.
CELL REFERENCES
Instead, use cell references so values can be changed at any time. In the screen
below, C1 contains the following formula:
=A1+A2+A3 // returns 9
Notice because we are using cell references for A1, A2, and A3, these values can be
changed at any time and C1 will still show an accurate result.
ALL FORMULAS RETURN A RESULT
All formulas in Excel return a result, even when the result is an error. Below a
formula is used to calculate percent change.The formula returns a correct
result in D2 and D3, but returns a #DIV/0! error in D4, because B4 is empty:
There are different ways of handling errors. In this case, you could provide the
missing value in B4, or "catch" the error with the IFERROR function and display a
more friendly message (or nothing at all).
COPY AND PASTE FORMULAS
The beauty of cell references is that they automatically
update when a formula is copied to a new location.This means
you don't need to enter the same basic formula again and
again. In the screen below, the formula in E1 has been copied to
the clipboard with Control + C:
COPY AND PASTE FORMULAS
Below: formula pasted to cell E2 with Control
+V. Notice cell references have changed:
COPY AND PASTE FORMULAS
Same formula pasted to E3. Cell addresses are updated again:
RELATIVE AND ABSOLUTE REFERENCES
 The cell references above are called relative references. This means the reference
is relative to the cell it lives in. The formula in E1 above is:
 =B1+C1+D1 // formula in E1
 Literally, this means "cell 3 columns left "+ "cell 2 columns left" + "cell 1 column
left".That's why, when the formula is copied down to cell E2, it continues to work
in the same way.
RELATIVE AND ABSOLUTE REFERENCES
 Relative references are extremely useful, but there are times when you don't want
a cell reference to change. A cell reference that won't change when copied is
called an absolute reference.To make a reference absolute, use the dollar symbol
($):
 =A1 // relative reference
 =$A$1 // absolute reference
RELATIVE AND ABSOLUTE REFERENCES
For example, in the screen below, we want to multiply each value in column D by
10, which is entered in A1. By using an absolute reference for A1, we "lock" that
reference so it won't change when the formula is copied to E2 and E3:
RELATIVE AND ABSOLUTE REFERENCES
 Here are the final formulas in E1, E2, and E3:
 =D1*$A$1 // formula in E1
 =D2*$A$1 // formula in E2
 =D3*$A$1 // formula in E3
RELATIVE AND ABSOLUTE REFERENCES
Notice the reference to D1 updates when the formula is copied, but the reference toA1
never changes. Now we can easily change the value in A1, and all three formulas recalculate.
Below the value in A1 has changed from 10 to 12:
 This simple example also shows why it doesn't make sense to hardcode values into a
formula. By storing the value in A1 in one place, and referring to A1 with an absolute
reference, the value can be changed at any time and all associated formulas will update
instantly.
 Tip: you can toggle between relative and absolute syntax with the F4 key
HOWTO ENTER A FORMULA
1. Select a cell
2. Enter an equals sign (=)
3. Type the formula, and press enter.
4. Instead of typing cell references, you can point and click, as seen below. Note
references are color-coded:
HOWTO ENTER A FORMULA
 All formulas in Excel must begin with an equals sign (=). No equals sign, no
formula:
HOWTO CHANGE A FORMULA
 To edit a formula, you have 3 options:
 Select the cell, edit in the formula bar
 Double-click the cell, edit directly
 Select the cell, press F2, edit directly
 No matter which option you use, press Enter to confirm changes when done. If
you want to cancel, and leave the formula unchanged, click the Escape key.
WHAT IS A FUNCTION?
 Working in Excel, you will hear the words "formula" and "function" used
frequently, sometimes interchangeably.They are closely related, but not exactly
the same.Technically, a formula is any expression that begins with an equals sign
(=).
 A function, on the other hand, is a formula with a special name and purpose. In
most cases, functions have names that reflect their intended use. For example,
you probably know the SUM function already, which returns the sum of given
references:
WHAT IS A FUNCTION?
References:
 =SUM(1,2,3) // returns 6
 =SUM(A1:A3) // returns A1+A2+A3
 The AVERAGE function, as you would expect, returns the average of given references:
 =AVERAGE(1,2,3) // returns 2
 And the MIN and MAX functions return minimum and maximum values, respectively:
 =MIN(1,2,3) // returns 1
 =MAX(1,2,3) // returns 3
 Excel contains hundreds of specific functions.To get started, see 101 Key Excel functions.
FUNCTION ARGUMENTS
 Most functions require inputs to return a result.These inputs are called
"arguments". A function's arguments appear after the function name, inside
parentheses, separated by commas. All functions require a matching opening and
closing parentheses ().The pattern looks like this:
=FUNCTIONNAME(argument1,argument2,argument3)
FUNCTION ARGUMENTS
For example, the COUNTIF function counts cells that meet criteria, and takes
two arguments, range and criteria:
=COUNTIF(range,criteria) // two arguments
In the screen below, range is A1:A5 and criteria is "red".The formula in C1 is:
=COUNTIF(A1:A5,"red") // returns 2
FUNCTION ARGUMENTS
Not all arguments are required. Arguments shown square brackets are optional. For
example, theYEARFRAC function returns fractional number of years between a
start date and end date and takes 3 arguments:
 =YEARFRAC(start_date,end_date,[basis])
 Start date and end date are required arguments, basis is an optional argument.
See below for an example of how to useYEARFRAC to calculate current age based
on birthdate.
HOWTO ENTER A FUNCTION
If you know the name of the function, just start typing. Here are the steps:
1. Enter equals sign (=) and start typing. Excel will list of matching functions based
as you type:
When you see the function you want in the list, use the arrow keys to select (or just
keep typing).
HOWTO ENTER A FUNCTION
2.Type theTab key to accept a function. Excel will complete the function:
3. Fill in required arguments:
HOWTO ENTER A FUNCTION
4. Press Enter to confirm formula:
COMBINING FUNCTIONS (NESTING)
Many Excel formulas use more than one function, and functions can be "nested"
inside each other. For example, below we have a birthdate in B1 and we want to
calculate current age in B2:
TheYEARFRAC function will calculate years with a start date and end date:
We can use B1 for start date, then use theTODAY function to supply the end date:
When we press Enter to confirm, we get current age based on today's date:
=YEARFRAC(B1,TODAY())
Notice we are using theTODAY function to feed an end date to theYEARFRAC
function. In other words, theTODAY function can be nested inside theYEARFRAC
function to provide the end date argument.We can take the formula one step
further and use the INT function to chop off the decimal value:
Here, the originalYEARFRAC formula returns 20.4 to the INT function, and the INT
function returns a final result of 20.
Notes:
1. The current date in images above is February 22, 2019.
2. Nested IF functions are a classic example of nesting functions.
3. TheTODAY function is a rare Excel function with no required arguments.
Key takeaway:The output of any formula or function can be fed directly into another
formula or function.
MATH OPERATORS
The table below shows the standard math operators available in Excel:
Symbol Operation Example
+ Addition =2+3=5
- Subtraction =9-2=7
* Multiplication =6*7=42
/ Division =9/3=3
^ Exponentiation =4^2=16
() Parentheses =(2+4)/3=2
LOGICAL OPERATORS
Logical operators provide support for comparisons such as "greater than", "less
than", etc.The logical operators available in Excel are shown in the table below:
Operator Meaning Example
= Equal to =A1=10
<> Not equal to =A1<>10
> Greater than =A1>100
< Less than =A1<100
>= Greater than or equal to =A1>=75
<= Less than or equal to =A1<0
ORDER OF OPERATIONS
When solving a formula, Excel follows a sequence called "order of operations". First, any
expressions in parentheses are evaluated. Next Excel will solve for any exponents.After
exponents, Excel will perform multiplication and division, then addition and subtraction. If
the formula involves concatenation, this will happen after standard math operations.
Finally, Excel will evaluate logical operators, if present.
1. Parentheses
2. Exponents
3. Multiplication and Division
4. Addition and Subtraction
5. Concatenation
6. Logical operators
Tip: you can use the Evaluate feature to watch Excel solve formulas step-by-step.
CONVERT FORMULASTOVALUES
Sometimes you want to get rid of formulas, and leave only values in their place.The
easiest way to do this in Excel is to copy the formula, then paste, using Paste
Special >Values.This overwrites the formulas with the values they return.You can
use a keyboard shortcut for pasting values, or use the Paste menu on the Home tab
on the ribbon.

Weitere ähnliche Inhalte

Was ist angesagt?

Excel 2003 tutorial 3
Excel 2003 tutorial 3Excel 2003 tutorial 3
Excel 2003 tutorial 3
catacata1976
 
Using The Function In Excel 3
Using The Function In Excel 3Using The Function In Excel 3
Using The Function In Excel 3
norzaini
 
Using formula and function
Using formula and functionUsing formula and function
Using formula and function
Rachel Espino
 

Was ist angesagt? (20)

Excel Top 10 formula For The Beginners
Excel Top 10 formula For The BeginnersExcel Top 10 formula For The Beginners
Excel Top 10 formula For The Beginners
 
Understanding excel’s error values
Understanding excel’s error valuesUnderstanding excel’s error values
Understanding excel’s error values
 
Excel text function
Excel text functionExcel text function
Excel text function
 
Mastering Excel Formulas and Functions
Mastering Excel Formulas and FunctionsMastering Excel Formulas and Functions
Mastering Excel Formulas and Functions
 
Formulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh TiwariFormulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh Tiwari
 
Spreadsheet text functions
Spreadsheet text functionsSpreadsheet text functions
Spreadsheet text functions
 
Functions in MS Excel
Functions in MS ExcelFunctions in MS Excel
Functions in MS Excel
 
Creating Formulas in Excel
Creating Formulas in ExcelCreating Formulas in Excel
Creating Formulas in Excel
 
10 Excel Formulas that will help you in any Job
10 Excel Formulas that will help you in any Job10 Excel Formulas that will help you in any Job
10 Excel Formulas that will help you in any Job
 
Excel11
Excel11Excel11
Excel11
 
Row, Column, Index, Match, Offset Functions. Excel Tutorial
Row, Column, Index, Match, Offset Functions. Excel TutorialRow, Column, Index, Match, Offset Functions. Excel Tutorial
Row, Column, Index, Match, Offset Functions. Excel Tutorial
 
Excel functions and formulas
Excel functions and formulasExcel functions and formulas
Excel functions and formulas
 
Excel 2003 tutorial 3
Excel 2003 tutorial 3Excel 2003 tutorial 3
Excel 2003 tutorial 3
 
Using The Function In Excel 3
Using The Function In Excel 3Using The Function In Excel 3
Using The Function In Excel 3
 
2. mathematical functions in excel
2. mathematical functions in excel2. mathematical functions in excel
2. mathematical functions in excel
 
Basic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 TutorialBasic Formulas - Excel 2013 Tutorial
Basic Formulas - Excel 2013 Tutorial
 
Intermediate ms excel for business elective course for dlsu-d hs
Intermediate ms excel for business   elective course for dlsu-d hsIntermediate ms excel for business   elective course for dlsu-d hs
Intermediate ms excel for business elective course for dlsu-d hs
 
Using formula and function
Using formula and functionUsing formula and function
Using formula and function
 
Microsoft excel 2010 useful formula & functions
Microsoft excel 2010   useful formula & functionsMicrosoft excel 2010   useful formula & functions
Microsoft excel 2010 useful formula & functions
 
MS-Excel Formulas and Functions
MS-Excel Formulas and FunctionsMS-Excel Formulas and Functions
MS-Excel Formulas and Functions
 

Ähnlich wie Grade 6 computer

functionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdffunctionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdf
FranzLawrenzDeTorres1
 
Excel basics for everyday use part three
Excel basics for everyday use part threeExcel basics for everyday use part three
Excel basics for everyday use part three
Kevin McLogan
 
Lesson8 creating complex formulas
Lesson8 creating complex formulasLesson8 creating complex formulas
Lesson8 creating complex formulas
ricsanmae
 

Ähnlich wie Grade 6 computer (20)

Excel
ExcelExcel
Excel
 
Excel
ExcelExcel
Excel
 
functionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdffunctionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdf
 
Functions and formulas of ms excel
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excel
 
Lecture 1 Intro to Excel.pptx
Lecture 1 Intro to Excel.pptxLecture 1 Intro to Excel.pptx
Lecture 1 Intro to Excel.pptx
 
Lesson 27 - Excel Lesson 13.pptx
Lesson 27 - Excel Lesson 13.pptxLesson 27 - Excel Lesson 13.pptx
Lesson 27 - Excel Lesson 13.pptx
 
Excel basics for everyday use-the more advanced stuff
Excel basics for everyday use-the more advanced stuffExcel basics for everyday use-the more advanced stuff
Excel basics for everyday use-the more advanced stuff
 
Excel training
Excel trainingExcel training
Excel training
 
Excel (E-Module 2)
Excel (E-Module 2)Excel (E-Module 2)
Excel (E-Module 2)
 
CBN Advanced Excel Training Slide.pptx
CBN Advanced Excel Training Slide.pptxCBN Advanced Excel Training Slide.pptx
CBN Advanced Excel Training Slide.pptx
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Top 20 microsoft excel formulas you must know
Top 20 microsoft excel formulas you must knowTop 20 microsoft excel formulas you must know
Top 20 microsoft excel formulas you must know
 
Excel basics for everyday use part three
Excel basics for everyday use part threeExcel basics for everyday use part three
Excel basics for everyday use part three
 
Lesson8 creating complex formulas
Lesson8 creating complex formulasLesson8 creating complex formulas
Lesson8 creating complex formulas
 
AAG_Excel_2010_Formulas_and_Functions
AAG_Excel_2010_Formulas_and_FunctionsAAG_Excel_2010_Formulas_and_Functions
AAG_Excel_2010_Formulas_and_Functions
 
Irahm I
Irahm IIrahm I
Irahm I
 
Understanding excel’s error values
Understanding excel’s error valuesUnderstanding excel’s error values
Understanding excel’s error values
 

Mehr von Joel Linquico (20)

Computer 4
Computer 4Computer 4
Computer 4
 
Grade 7 computer
Grade 7 computerGrade 7 computer
Grade 7 computer
 
What is genetics
What is geneticsWhat is genetics
What is genetics
 
Grade 9 COMPUTER
Grade 9 COMPUTERGrade 9 COMPUTER
Grade 9 COMPUTER
 
GRADE 10 STEM
GRADE 10 STEMGRADE 10 STEM
GRADE 10 STEM
 
GRADE 10 COMPUTER
GRADE 10 COMPUTERGRADE 10 COMPUTER
GRADE 10 COMPUTER
 
GRADE 8 TADT2
GRADE 8 TADT2GRADE 8 TADT2
GRADE 8 TADT2
 
Grade 8 COMPUTER
Grade 8 COMPUTERGrade 8 COMPUTER
Grade 8 COMPUTER
 
GRADE 7 SCIENCE
GRADE 7 SCIENCEGRADE 7 SCIENCE
GRADE 7 SCIENCE
 
GRADE 7 COMPUTER
GRADE 7 COMPUTERGRADE 7 COMPUTER
GRADE 7 COMPUTER
 
Grade 6 Mapeh
Grade 6 MapehGrade 6 Mapeh
Grade 6 Mapeh
 
Grade 6 Computer
Grade 6 Computer Grade 6 Computer
Grade 6 Computer
 
Grade 5 Computer
Grade 5 ComputerGrade 5 Computer
Grade 5 Computer
 
Grade 4 Computer
Grade 4 Computer Grade 4 Computer
Grade 4 Computer
 
Grade 4 Araling Panlipunan
Grade 4 Araling Panlipunan Grade 4 Araling Panlipunan
Grade 4 Araling Panlipunan
 
Grade 6 health
Grade 6 healthGrade 6 health
Grade 6 health
 
Grade 6 physical education
Grade 6 physical educationGrade 6 physical education
Grade 6 physical education
 
Grade 6 arts
Grade 6 artsGrade 6 arts
Grade 6 arts
 
Grade 6 MUSIC
Grade 6 MUSICGrade 6 MUSIC
Grade 6 MUSIC
 
Grade 10 COMPUTER
Grade 10 COMPUTERGrade 10 COMPUTER
Grade 10 COMPUTER
 

Kürzlich hochgeladen

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Kürzlich hochgeladen (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

Grade 6 computer

  • 1. EXCEL FORMULAS AND FUNCTIONSH T T P S : / / E X C E L J E T . N E T / E X C E L - F O R M U L A S - A N D - F U N C T I O N S GRADE 6 COMPUTER
  • 2. EXCEL FORMULAS AND FUNCTIONS Formulas and functions are the bread and butter of Excel.They drive almost everything interesting and useful you will ever do in a spreadsheet.This article introduces the basic concepts you need to know to be proficient with formulas in Excel. More examples here.
  • 3. WHAT IS A FORMULA? A formula in Excel is an expression that returns a specific result. For example: =1+2 // returns 3 =6/3 // returns 2 Note: all formulas in Excel must begin with an equals sign (=).
  • 4. CELL REFERENCES In the examples above, values are "hardcoded".That means results won't change unless you edit the formula again and change a value manually. Generally, this is considered bad form, because it hides information and makes it harder to maintain a spreadsheet.
  • 5. CELL REFERENCES Instead, use cell references so values can be changed at any time. In the screen below, C1 contains the following formula: =A1+A2+A3 // returns 9 Notice because we are using cell references for A1, A2, and A3, these values can be changed at any time and C1 will still show an accurate result.
  • 6. ALL FORMULAS RETURN A RESULT All formulas in Excel return a result, even when the result is an error. Below a formula is used to calculate percent change.The formula returns a correct result in D2 and D3, but returns a #DIV/0! error in D4, because B4 is empty: There are different ways of handling errors. In this case, you could provide the missing value in B4, or "catch" the error with the IFERROR function and display a more friendly message (or nothing at all).
  • 7. COPY AND PASTE FORMULAS The beauty of cell references is that they automatically update when a formula is copied to a new location.This means you don't need to enter the same basic formula again and again. In the screen below, the formula in E1 has been copied to the clipboard with Control + C:
  • 8. COPY AND PASTE FORMULAS Below: formula pasted to cell E2 with Control +V. Notice cell references have changed:
  • 9. COPY AND PASTE FORMULAS Same formula pasted to E3. Cell addresses are updated again:
  • 10. RELATIVE AND ABSOLUTE REFERENCES  The cell references above are called relative references. This means the reference is relative to the cell it lives in. The formula in E1 above is:  =B1+C1+D1 // formula in E1  Literally, this means "cell 3 columns left "+ "cell 2 columns left" + "cell 1 column left".That's why, when the formula is copied down to cell E2, it continues to work in the same way.
  • 11. RELATIVE AND ABSOLUTE REFERENCES  Relative references are extremely useful, but there are times when you don't want a cell reference to change. A cell reference that won't change when copied is called an absolute reference.To make a reference absolute, use the dollar symbol ($):  =A1 // relative reference  =$A$1 // absolute reference
  • 12. RELATIVE AND ABSOLUTE REFERENCES For example, in the screen below, we want to multiply each value in column D by 10, which is entered in A1. By using an absolute reference for A1, we "lock" that reference so it won't change when the formula is copied to E2 and E3:
  • 13. RELATIVE AND ABSOLUTE REFERENCES  Here are the final formulas in E1, E2, and E3:  =D1*$A$1 // formula in E1  =D2*$A$1 // formula in E2  =D3*$A$1 // formula in E3
  • 14. RELATIVE AND ABSOLUTE REFERENCES Notice the reference to D1 updates when the formula is copied, but the reference toA1 never changes. Now we can easily change the value in A1, and all three formulas recalculate. Below the value in A1 has changed from 10 to 12:  This simple example also shows why it doesn't make sense to hardcode values into a formula. By storing the value in A1 in one place, and referring to A1 with an absolute reference, the value can be changed at any time and all associated formulas will update instantly.  Tip: you can toggle between relative and absolute syntax with the F4 key
  • 15. HOWTO ENTER A FORMULA 1. Select a cell 2. Enter an equals sign (=) 3. Type the formula, and press enter. 4. Instead of typing cell references, you can point and click, as seen below. Note references are color-coded:
  • 16. HOWTO ENTER A FORMULA  All formulas in Excel must begin with an equals sign (=). No equals sign, no formula:
  • 17. HOWTO CHANGE A FORMULA  To edit a formula, you have 3 options:  Select the cell, edit in the formula bar  Double-click the cell, edit directly  Select the cell, press F2, edit directly  No matter which option you use, press Enter to confirm changes when done. If you want to cancel, and leave the formula unchanged, click the Escape key.
  • 18. WHAT IS A FUNCTION?  Working in Excel, you will hear the words "formula" and "function" used frequently, sometimes interchangeably.They are closely related, but not exactly the same.Technically, a formula is any expression that begins with an equals sign (=).  A function, on the other hand, is a formula with a special name and purpose. In most cases, functions have names that reflect their intended use. For example, you probably know the SUM function already, which returns the sum of given references:
  • 19. WHAT IS A FUNCTION? References:  =SUM(1,2,3) // returns 6  =SUM(A1:A3) // returns A1+A2+A3  The AVERAGE function, as you would expect, returns the average of given references:  =AVERAGE(1,2,3) // returns 2  And the MIN and MAX functions return minimum and maximum values, respectively:  =MIN(1,2,3) // returns 1  =MAX(1,2,3) // returns 3  Excel contains hundreds of specific functions.To get started, see 101 Key Excel functions.
  • 20. FUNCTION ARGUMENTS  Most functions require inputs to return a result.These inputs are called "arguments". A function's arguments appear after the function name, inside parentheses, separated by commas. All functions require a matching opening and closing parentheses ().The pattern looks like this: =FUNCTIONNAME(argument1,argument2,argument3)
  • 21. FUNCTION ARGUMENTS For example, the COUNTIF function counts cells that meet criteria, and takes two arguments, range and criteria: =COUNTIF(range,criteria) // two arguments In the screen below, range is A1:A5 and criteria is "red".The formula in C1 is: =COUNTIF(A1:A5,"red") // returns 2
  • 22. FUNCTION ARGUMENTS Not all arguments are required. Arguments shown square brackets are optional. For example, theYEARFRAC function returns fractional number of years between a start date and end date and takes 3 arguments:  =YEARFRAC(start_date,end_date,[basis])  Start date and end date are required arguments, basis is an optional argument. See below for an example of how to useYEARFRAC to calculate current age based on birthdate.
  • 23. HOWTO ENTER A FUNCTION If you know the name of the function, just start typing. Here are the steps: 1. Enter equals sign (=) and start typing. Excel will list of matching functions based as you type: When you see the function you want in the list, use the arrow keys to select (or just keep typing).
  • 24. HOWTO ENTER A FUNCTION 2.Type theTab key to accept a function. Excel will complete the function: 3. Fill in required arguments:
  • 25. HOWTO ENTER A FUNCTION 4. Press Enter to confirm formula:
  • 26. COMBINING FUNCTIONS (NESTING) Many Excel formulas use more than one function, and functions can be "nested" inside each other. For example, below we have a birthdate in B1 and we want to calculate current age in B2: TheYEARFRAC function will calculate years with a start date and end date:
  • 27. We can use B1 for start date, then use theTODAY function to supply the end date: When we press Enter to confirm, we get current age based on today's date: =YEARFRAC(B1,TODAY())
  • 28. Notice we are using theTODAY function to feed an end date to theYEARFRAC function. In other words, theTODAY function can be nested inside theYEARFRAC function to provide the end date argument.We can take the formula one step further and use the INT function to chop off the decimal value:
  • 29. Here, the originalYEARFRAC formula returns 20.4 to the INT function, and the INT function returns a final result of 20. Notes: 1. The current date in images above is February 22, 2019. 2. Nested IF functions are a classic example of nesting functions. 3. TheTODAY function is a rare Excel function with no required arguments. Key takeaway:The output of any formula or function can be fed directly into another formula or function.
  • 30. MATH OPERATORS The table below shows the standard math operators available in Excel: Symbol Operation Example + Addition =2+3=5 - Subtraction =9-2=7 * Multiplication =6*7=42 / Division =9/3=3 ^ Exponentiation =4^2=16 () Parentheses =(2+4)/3=2
  • 31. LOGICAL OPERATORS Logical operators provide support for comparisons such as "greater than", "less than", etc.The logical operators available in Excel are shown in the table below: Operator Meaning Example = Equal to =A1=10 <> Not equal to =A1<>10 > Greater than =A1>100 < Less than =A1<100 >= Greater than or equal to =A1>=75 <= Less than or equal to =A1<0
  • 32. ORDER OF OPERATIONS When solving a formula, Excel follows a sequence called "order of operations". First, any expressions in parentheses are evaluated. Next Excel will solve for any exponents.After exponents, Excel will perform multiplication and division, then addition and subtraction. If the formula involves concatenation, this will happen after standard math operations. Finally, Excel will evaluate logical operators, if present. 1. Parentheses 2. Exponents 3. Multiplication and Division 4. Addition and Subtraction 5. Concatenation 6. Logical operators Tip: you can use the Evaluate feature to watch Excel solve formulas step-by-step.
  • 33. CONVERT FORMULASTOVALUES Sometimes you want to get rid of formulas, and leave only values in their place.The easiest way to do this in Excel is to copy the formula, then paste, using Paste Special >Values.This overwrites the formulas with the values they return.You can use a keyboard shortcut for pasting values, or use the Paste menu on the Home tab on the ribbon.