SlideShare a Scribd company logo
1 of 50
EXCEL IF FUNCTION
Excel IF Function
www.prolearninghub.com
Purpose
Test for a specific condition
Return value
The values you supply for TRUE or FALSE
Syntax
=IF (logical_test, [value_if_true], [value_if_false])
Arguments
logical_test - A value or logical expression that can be
evaluated as TRUE or FALSE.
value_if_true - [optional] The value to return when logical_test
evaluates to TRUE.
value_if_false - [optional] The value to return when
logical_test evaluates to FALSE.
Excel IF Function
www.prolearninghub.com
Usage notes
Use the IF function to test for or evaluate certain conditions,
and then react differently depending on whether the test was
TRUE or FALSE.
For example, let's say you want to assign either "Pass" or
"Fail" to students based on a test score. In that case, you need
to test the sore itself (for each student) and then return either
"Pass" or "Fail".
If you had a score in cell C6, and you wanted to test this score
to see if is at least 70, you would use this:
C6>=70
Excel IF Function
www.prolearninghub.com
This translates as "C6 contains a value greater than or
equal to 70". It will either be TRUE or FALSE,
depending on the value in C6. You then supply a value
that the IF function should return if the test is TRUE,
and a value to use if the test is FALSE.
Putting it all together, you would use this formula:
=IF(C6>=70, "Pass", "Fail")
This is the formula that appears D6 in the example
shown. When it is copied down the column, it will test
every score and return the correct result.
Excel IF Function
www.prolearninghub.com
Nested IF statements
You may here the term "Nested IF" or "Nested IF
statement". This refers to using more than one IF
function so that you can test for more conditions and
return more possible results. Each IF statement needs
to be carefully "nested" inside another so that the logic
is correct.
For example, the following formula can be used to
assign an grade rather than a pass / fail result:
=IF(C6<70,"F",IF(C6<75,"D",IF(C6<85,"C",IF(C6<95,
"B","A"))))
Excel IF Function
www.prolearninghub.com
Up to 64 IF functions can be
nested. However, in general, you
should consider other functions,
like VLOOKUP or HLOOKUP for
more complex scenarios,
because they can handle more
conditions in much more
streamlined fashion.
Logical operators
When you are constructing a test
with IF, you can use any of the
following logical operators:
Comparison
operator
Meaning Example
= equal to A1=D1
> greater than A1>D1
>=
greater than
or equal to
A1>=D1
< less than
A1<d1<
td=""></d1<>
<=
less than or
equal to
A1<=D1
<> not equal to A1<>D1
Excel IF Function
www.prolearninghub.com
Notes:
If any of the arguments to IF are supplied as arrays, the IF
function will evaluate every element of the array.
To count things conditionally, use the COUNTIF or
the COUNTIFSfunctions.
To sum things conditionally, use the SUMIF or
the SUMIFS functions.
Excel IF Function
www.prolearninghub.com
EXCEL IFERROR FUNCTION
Excel IFERROR Function
www.prolearninghub.com
Purpose
Trap and handle errors
Return value
The value you specify for error conditions.
Syntax
=IFERROR (value, value_if_error)
Arguments
value - The value, reference, or formula to check for an
error.
value_if_error - The value to return if an error is found.
Excel IFERROR Function
www.prolearninghub.com
Usage notes
Use the IFERROR function to trap and handle errors
produced by other formulas or functions. IFERROR
checks for the following errors: #N/A, #VALUE!, #REF!,
#DIV/0!, #NUM!, #NAME?, or #NULL!.
For example, if A1 contains 10, B1 is blank, and C1
contains the formula =A1/B1, the following formula will
trap the #DIV/0! error that results from dividing A1 by B1:
=IFERROR (A1/B1. "Please enter a value in B1")
In this case, C1 will display the message "Please enter a
value in B1" if B1 is blank or zero.
Excel IFERROR Function
www.prolearninghub.com
Notes:
If value is empty, it is evaluated as an empty string
("") and not an error.
If value_if_error is supplied as an empty string (""),
no message is displayed when an error is detected.
If IFERROR is entered as an array formula, it
returns an array of results with one item for each
cell in value.
Excel IFERROR Function
www.prolearninghub.com
EXCEL IFS FUNCTION
Excel IFS Function
www.prolearninghub.com
Purpose
Test multiple conditions, return first true
Return value
Value corresponding with first TRUE result
Syntax
=IFS (test1, value1, [test2, value2], ...)
Arguments
test1 - First logical test.
value1 - Result when test1 is TRUE.
test2, value2 - [optional] Second test/value pair.
Excel IFS Function
www.prolearninghub.com
Usage notes
Use the IFS function to test multiple conditions and return
a value corresponding to the first TRUE result. Unlike the
IF function, IFS allows you to test more than one condition
without nesting. This makes formulas with many
conditions easier to read.
Arguments are entered in test/value pairs. Each test
(condition) represents a logical test that returns TRUE or
FALSE, and each value is associated with the previous
test. A value is returned by IFS only when its test returns
TRUE, and the first test with a TRUE result "wins". The
IFS function supports up to 127 conditions.
Excel IFS Function
www.prolearninghub.com
In the example shown the formula in E5 is:
=IFS(D5<60,"F",D5<70,"D",D5<80,"C",D5<90,"B",D5>=90,"A")
Note: the IFS function is new in Excel 2016 on Windows, and
won't work in other versions of Excel.
Notes:
There is no way to set a default if all tests return FALSE (i.e. a
value if false). Instead, enter TRUE for the last test, and then a
value to return as a default value if FALSE.
All logical tests must return TRUE or FALSE. Other results will
case IFS to return a #VALUE! error.
If no logical tests return TRUE, IFS returns the #N/A error.
Excel IFS Function
www.prolearninghub.com
EXCEL NOT FUNCTION
Excel NOT Function
www.prolearninghub.com
Purpose
Reverse arguments or results
Return value
A reversed logical value
Syntax
=NOT (logical)
Arguments
logical - A value or logical expression that can be evaluated as
TRUE or FALSE.
Usage notes
Use the NOT function to reverse a value or logical argument, that
is, if logical is FALSE, NOT returns TRUE. If logical is TRUE,
NOT returns FALSE.
Excel NOT Function
www.prolearninghub.com
Why would you want to do this? A common example
is to reverse the behavior of another function. For
example, If the cell A1 is blank, then the formula
=ISBLANK(A1) will return TRUE. NOT can be used to
reverse this result to FALSE like this:
=NOT(ISBLANK(A1))
In essence, by adding NOT, you are able to create a
formula that behaves like ISNOTBLANK, which
doesn't exist in Excel.
EXCEL OR FUNCTION
Excel OR Function
www.prolearninghub.com
Purpose
Test multiple conditions with OR
Return value
TRUE if any arguments evaluate TRUE; FALSE if
not.
Syntax
=OR (logical1, [logical2], ...)
Arguments
logical1 - The first condition or logical value to
evaluate.
logical2 - [optional] The second condition or logical
value to evaluate.
Excel OR Function
www.prolearninghub.com
Usage notes
Use the OR function to test multiple conditions at the
same time, up to 255 conditions total.
For example, to test if the value in A1 OR the value in
B1 is greater than 75, use the following formula:
=OR(A1>75,B1<75)
OR can be used to extend the functionality of
functions like IF. Using the above example, you can
supply OR as the logical_test for an IF function like
so:
=IF(OR(A1>75,B1<75), "Pass", "Fail")
Excel OR Function
www.prolearninghub.com
This formula will return "Pass" if the value in A1 is greater than
75 OR the value in B1 is greater than 75.
If you enter OR as an array formula, you can test all values in a
range against a condition. For example, this array formula will
return TRUE if any cell in A1:A100 is greater than 15:
={OR(A1:A100>15}
Notes:
Each logical condition must evaluate to TRUE or FALSE, or be
arrays or references that contain logical values.
Text values or empty cells supplied as arguments are ignored.
The OR function will return #VALUE if no logical values are
found
Excel OR Function
www.prolearninghub.com
EXCEL TRUE FUNCTION
Excel TRUE Function
www.prolearninghub.com
Purpose
Generate the logical value TRUE
Return value
The logical value TRUE
Syntax
=TRUE ()
Usage notes
The TRUE function is provided for compatibility with other
spreadsheet applications and there is no need to use it in
almost all cases.
Excel TRUE Function
www.prolearninghub.com
If you want to enter TRUE, or provide TRUE as a result in a
formula, you can just use enter the word TRUE directly into a cell
or formula and Excel will interpret this as the logical value TRUE.
For example, these formulas are functionally identical:
=IF(A1<0, TRUE()) =IF(A1<0, TRUE)
Also note that logical expressions themselves will automatically
generate TRUE and FALSE results. For example, the formula in
cell C7 is: =B7>90
This expression evaluates to TRUE, which is the result that
appears in the spreadsheet.
If you want to test a condition and return different results based on
whether the results are TRUE or FALSE, see the examples on this
page.
Excel TRUE Function
www.prolearninghub.com
EXCEL ADDRESS FUNCTION
Excel ADDRESS Function
www.prolearninghub.com
Purpose
Create a cell address from a given row and column
Return value
A cell address in the current or given worksheet.
Syntax
=ADDRESS (row_num, col_num, [abs_num], [a1], [sheet])
Arguments
row_num - The row number to use in the cell address.
col_num - The column number to use in the cell address.
abs_num - [optional] The address type (i.e. absolute, relative).
Defaults to absolute.
a1 - [optional] The reference style, A1 vs R1C1. Defaults to A1 style.
sheet - [optional] The name of the worksheet to use. Defaults to
current sheet.
Excel ADDRESS Function
www.prolearninghub.com
Usage notes
Use ADDRESS to create an address from a given row
and column number. For example, ADDRESS(1,1,) will
return $A$1.
Abs_num key:
1 or omitted Absolute
2 Absolute row; relative column
3 Relative row; absolute column
4 Relative
EXCEL AREAS FUNCTION
Excel AREAS Function
www.prolearninghub.com
Purpose
Get the number of areas in a reference.
Return value
A number representing number of areas.
Syntax
=AREAS (reference)
Arguments
reference - A reference to a cell or range of cells.
Usage notes
Reference can include more than one reference. you must separate
multiple references with a comma and wrap then in an extra set of
parentheses. Otherwise, Excel will think the commas indicate multiple
parameters and generate an error.
As an example, the formula =AREAS((F17:F19,J16:J18,I8)) will return 3.
EXCEL CHOOSE FUNCTION
Excel CHOOSE Function
www.prolearninghub.com
Return value
The value at the given position.
Syntax
=CHOOSE (index_num, value1, [value2], ...)
Arguments
index_num - The value to choose. A number between 1 and 254.
value1 - The first value from which to choose.
value2 - [optional] The second value from which to choose.
Usage notes
Choose can handle up to 254 values. Index_num returns a value
based on it's position in the list. For example, if index_num is
2, value2 is returned.
Values can also be references. For example, the address A1, or the
ranges A1:10 or B2:B15 can be supplied as values.
Excel CHOOSE Function
www.prolearninghub.com
EXCEL COLUMN FUNCTION
Excel COLUMN Function
www.prolearninghub.com
Purpose
Get the column number of a reference.
Return value
A number representing the column.
Syntax
=COLUMN ([reference])
Arguments
reference - [optional] A reference to a cell or range of cells.
Usage notes
Use reference to get column number of a reference.
Reference can be a single cell address or a range of cells.
Reference is optional and will default to the cell in which the
COLUMN function exists.
Reference cannot include multiple references or addresses.
EXCEL COLUMNS FUNCTION
Excel COLUMNS Function
www.prolearninghub.com
Purpose
Get the number of columns in an array or reference.
Return value
A number representing column count.
Syntax
=COLUMNS (array)
Arguments
array - A reference to a range of cells.
Usage notes
Use the COLUMNS function to get the number of columns in a
reference. For example, the formula =COLUMNS(A1:F1) returns the
number 6.
Array can be an array, an array formula, or a reference to a single
contiguous group of cells.
EXCEL FORMULATEXT
FUNCTION
Excel FORMULATEXT Function
www.prolearninghub.com
Purpose
Get the formula in a cell
Return value
The formula as text
Syntax
=FORMULATEXT (reference)
Arguments
reference - Reference to cell or cell range.
Usage notes
You can use the FORMULATEXT function to extract a formula as text
from a cell. Once extracted, you can work with the formula like any
other text.
Excel FORMULATEXT Function
www.prolearninghub.com
Remember that you can temporarily display all formula in a
worksheet with a keyboard shortcut.
If you just want to test to see if a cell contains a formula or not,
use the ISFORMULA function.
Notes:
If you use FORMULATEXT on a cell that doesn't contain a
formula, you'll get an #N/A error.
You can reference another workbook, but if the workbook is
not open, you'll get an #N/A error.
FORMULATEXT was introduced in Excel 2013.
Excel FORMULATEXT Function
www.prolearninghub.com
EXCEL HLOOKUP FUNCTION
Excel HLOOKUP Function
www.prolearninghub.com
Purpose
Look up a value in a table by matching on the first row
Return value
The matched value from a table.
Syntax
=HLOOKUP (value, table, row_index, [range_lookup])
Arguments
value - The value to look up.
table - The table from which to retrieve data.
row_index - The row number from which to retrieve data.
range_lookup - [optional] A boolean to indicate exact
match or approximate match. Default = TRUE =
approximate match.
Excel HLOOKUP Function
www.prolearninghub.com
Usage notes
HLOOKUP searches for a value in the first row of a table.
At the match column, it retrieves a value from the
specified row. Use HLOOKUP when lookup values are
located in the first row of a table. Use VLOOKUP when
lookup values are located in the first column of a table.
Range_lookup controls whether value needs to match
exactly or not. The default is TRUE = allow non-exact
match.
Set range_lookup to FALSE to require an exact match.
Excel HLOOKUP Function
www.prolearninghub.com
If range_lookup is TRUE (the default setting), a non-
exact match will cause the HLOOKUP function to match
the nearest value in the table that is still less than value.
When range_lookup is omitted, the HLOOKUP function
will allow a non-exact match, but it will use an exact
match if one exists.
If range_lookup is TRUE (the default setting) make sure
that lookup values in the first row of the table are sorted
in ascending order. Otherwise, HLOOKUP may return an
incorrect or unexpected value.
If range_lookup is FALSE (require exact match), values
in the first row of table do not need to be sorted.

More Related Content

What's hot (20)

Ppt on ms excel
Ppt on ms excelPpt on ms excel
Ppt on ms excel
 
Formula in MS Excel
Formula in MS ExcelFormula in MS Excel
Formula in MS Excel
 
Presentation
PresentationPresentation
Presentation
 
Sumif () ppt
Sumif () pptSumif () ppt
Sumif () ppt
 
Excel Tutorials - Creating a Hyperlink in Excel
Excel Tutorials - Creating a Hyperlink in ExcelExcel Tutorials - Creating a Hyperlink in Excel
Excel Tutorials - Creating a Hyperlink in Excel
 
Excel formulas tf-jul1605
Excel formulas tf-jul1605Excel formulas tf-jul1605
Excel formulas tf-jul1605
 
A practical tutorial to excel
A practical tutorial to excelA practical tutorial to excel
A practical tutorial to excel
 
Advance excel
Advance excelAdvance excel
Advance excel
 
Vlookup - an introduction
Vlookup - an introductionVlookup - an introduction
Vlookup - an introduction
 
Formulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh TiwariFormulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh Tiwari
 
Excel Basics
Excel  BasicsExcel  Basics
Excel Basics
 
Excel training
Excel trainingExcel training
Excel training
 
Vba introduction
Vba introductionVba introduction
Vba introduction
 
Basic excel training
Basic excel trainingBasic excel training
Basic excel training
 
03 Logical functions.pdf
03 Logical functions.pdf03 Logical functions.pdf
03 Logical functions.pdf
 
22 Excel Basics
22 Excel Basics22 Excel Basics
22 Excel Basics
 
Training On Microsoft Excel
Training On Microsoft ExcelTraining On Microsoft Excel
Training On Microsoft Excel
 
Formatting in MS Excel
Formatting in MS ExcelFormatting in MS Excel
Formatting in MS Excel
 
Windows, MS office.pptx
Windows, MS office.pptxWindows, MS office.pptx
Windows, MS office.pptx
 
Excel SUMIFS Function
Excel SUMIFS FunctionExcel SUMIFS Function
Excel SUMIFS Function
 

Similar to Excel IF, IFs.ppt

MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULAS FOR TEACHERS
MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULASFOR TEACHERSMOST ESSENTIAL EXCEL FUNCTIONS AND FORMULASFOR TEACHERS
MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULAS FOR TEACHERSRegieMagallanes1
 
ICDL Advanced Excel 2010 - Tutorial
ICDL Advanced Excel 2010 - TutorialICDL Advanced Excel 2010 - Tutorial
ICDL Advanced Excel 2010 - TutorialMichael Lew
 
Iipm chapter 1
Iipm chapter 1Iipm chapter 1
Iipm chapter 1iipmff2
 
Iipm chapter 1
Iipm chapter 1Iipm chapter 1
Iipm chapter 1iipmff2
 
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 JobHitesh Biyani
 
Introduction to excel - application to statistics
Introduction to excel - application to statisticsIntroduction to excel - application to statistics
Introduction to excel - application to statisticszavenger
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.pptelsagalgao
 
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 knowAlexHenderson59
 
Day 4 more on formulas and functions
Day 4 more on formulas and functionsDay 4 more on formulas and functions
Day 4 more on formulas and functionsJoyce Effinger
 

Similar to Excel IF, IFs.ppt (20)

MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULAS FOR TEACHERS
MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULASFOR TEACHERSMOST ESSENTIAL EXCEL FUNCTIONS AND FORMULASFOR TEACHERS
MOST ESSENTIAL EXCEL FUNCTIONS AND FORMULAS FOR TEACHERS
 
ICDL Advanced Excel 2010 - Tutorial
ICDL Advanced Excel 2010 - TutorialICDL Advanced Excel 2010 - Tutorial
ICDL Advanced Excel 2010 - Tutorial
 
Iipm chapter 1
Iipm chapter 1Iipm chapter 1
Iipm chapter 1
 
Iipm chapter 1
Iipm chapter 1Iipm chapter 1
Iipm chapter 1
 
Excel
ExcelExcel
Excel
 
Excel
ExcelExcel
Excel
 
management
managementmanagement
management
 
Get more from excel
Get more from excelGet more from excel
Get more from excel
 
Excel trick
Excel trickExcel trick
Excel trick
 
MS Excel 2010 tutorial 5
MS Excel 2010 tutorial 5MS Excel 2010 tutorial 5
MS Excel 2010 tutorial 5
 
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
 
Introduction to excel - application to statistics
Introduction to excel - application to statisticsIntroduction to excel - application to statistics
Introduction to excel - application to statistics
 
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
 
Grade 6 computer
Grade 6 computer Grade 6 computer
Grade 6 computer
 
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
 
MA3696 Lecture 7
MA3696 Lecture 7MA3696 Lecture 7
MA3696 Lecture 7
 
Day 4 more on formulas and functions
Day 4 more on formulas and functionsDay 4 more on formulas and functions
Day 4 more on formulas and functions
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

Excel IF, IFs.ppt

  • 2. Excel IF Function www.prolearninghub.com Purpose Test for a specific condition Return value The values you supply for TRUE or FALSE Syntax =IF (logical_test, [value_if_true], [value_if_false]) Arguments logical_test - A value or logical expression that can be evaluated as TRUE or FALSE. value_if_true - [optional] The value to return when logical_test evaluates to TRUE. value_if_false - [optional] The value to return when logical_test evaluates to FALSE.
  • 3. Excel IF Function www.prolearninghub.com Usage notes Use the IF function to test for or evaluate certain conditions, and then react differently depending on whether the test was TRUE or FALSE. For example, let's say you want to assign either "Pass" or "Fail" to students based on a test score. In that case, you need to test the sore itself (for each student) and then return either "Pass" or "Fail". If you had a score in cell C6, and you wanted to test this score to see if is at least 70, you would use this: C6>=70
  • 4. Excel IF Function www.prolearninghub.com This translates as "C6 contains a value greater than or equal to 70". It will either be TRUE or FALSE, depending on the value in C6. You then supply a value that the IF function should return if the test is TRUE, and a value to use if the test is FALSE. Putting it all together, you would use this formula: =IF(C6>=70, "Pass", "Fail") This is the formula that appears D6 in the example shown. When it is copied down the column, it will test every score and return the correct result.
  • 5. Excel IF Function www.prolearninghub.com Nested IF statements You may here the term "Nested IF" or "Nested IF statement". This refers to using more than one IF function so that you can test for more conditions and return more possible results. Each IF statement needs to be carefully "nested" inside another so that the logic is correct. For example, the following formula can be used to assign an grade rather than a pass / fail result: =IF(C6<70,"F",IF(C6<75,"D",IF(C6<85,"C",IF(C6<95, "B","A"))))
  • 6. Excel IF Function www.prolearninghub.com Up to 64 IF functions can be nested. However, in general, you should consider other functions, like VLOOKUP or HLOOKUP for more complex scenarios, because they can handle more conditions in much more streamlined fashion. Logical operators When you are constructing a test with IF, you can use any of the following logical operators: Comparison operator Meaning Example = equal to A1=D1 > greater than A1>D1 >= greater than or equal to A1>=D1 < less than A1<d1< td=""></d1<> <= less than or equal to A1<=D1 <> not equal to A1<>D1
  • 7. Excel IF Function www.prolearninghub.com Notes: If any of the arguments to IF are supplied as arrays, the IF function will evaluate every element of the array. To count things conditionally, use the COUNTIF or the COUNTIFSfunctions. To sum things conditionally, use the SUMIF or the SUMIFS functions.
  • 10. Excel IFERROR Function www.prolearninghub.com Purpose Trap and handle errors Return value The value you specify for error conditions. Syntax =IFERROR (value, value_if_error) Arguments value - The value, reference, or formula to check for an error. value_if_error - The value to return if an error is found.
  • 11. Excel IFERROR Function www.prolearninghub.com Usage notes Use the IFERROR function to trap and handle errors produced by other formulas or functions. IFERROR checks for the following errors: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!. For example, if A1 contains 10, B1 is blank, and C1 contains the formula =A1/B1, the following formula will trap the #DIV/0! error that results from dividing A1 by B1: =IFERROR (A1/B1. "Please enter a value in B1") In this case, C1 will display the message "Please enter a value in B1" if B1 is blank or zero.
  • 12. Excel IFERROR Function www.prolearninghub.com Notes: If value is empty, it is evaluated as an empty string ("") and not an error. If value_if_error is supplied as an empty string (""), no message is displayed when an error is detected. If IFERROR is entered as an array formula, it returns an array of results with one item for each cell in value.
  • 15. Excel IFS Function www.prolearninghub.com Purpose Test multiple conditions, return first true Return value Value corresponding with first TRUE result Syntax =IFS (test1, value1, [test2, value2], ...) Arguments test1 - First logical test. value1 - Result when test1 is TRUE. test2, value2 - [optional] Second test/value pair.
  • 16. Excel IFS Function www.prolearninghub.com Usage notes Use the IFS function to test multiple conditions and return a value corresponding to the first TRUE result. Unlike the IF function, IFS allows you to test more than one condition without nesting. This makes formulas with many conditions easier to read. Arguments are entered in test/value pairs. Each test (condition) represents a logical test that returns TRUE or FALSE, and each value is associated with the previous test. A value is returned by IFS only when its test returns TRUE, and the first test with a TRUE result "wins". The IFS function supports up to 127 conditions.
  • 17. Excel IFS Function www.prolearninghub.com In the example shown the formula in E5 is: =IFS(D5<60,"F",D5<70,"D",D5<80,"C",D5<90,"B",D5>=90,"A") Note: the IFS function is new in Excel 2016 on Windows, and won't work in other versions of Excel. Notes: There is no way to set a default if all tests return FALSE (i.e. a value if false). Instead, enter TRUE for the last test, and then a value to return as a default value if FALSE. All logical tests must return TRUE or FALSE. Other results will case IFS to return a #VALUE! error. If no logical tests return TRUE, IFS returns the #N/A error.
  • 20. Excel NOT Function www.prolearninghub.com Purpose Reverse arguments or results Return value A reversed logical value Syntax =NOT (logical) Arguments logical - A value or logical expression that can be evaluated as TRUE or FALSE. Usage notes Use the NOT function to reverse a value or logical argument, that is, if logical is FALSE, NOT returns TRUE. If logical is TRUE, NOT returns FALSE.
  • 21. Excel NOT Function www.prolearninghub.com Why would you want to do this? A common example is to reverse the behavior of another function. For example, If the cell A1 is blank, then the formula =ISBLANK(A1) will return TRUE. NOT can be used to reverse this result to FALSE like this: =NOT(ISBLANK(A1)) In essence, by adding NOT, you are able to create a formula that behaves like ISNOTBLANK, which doesn't exist in Excel.
  • 23. Excel OR Function www.prolearninghub.com Purpose Test multiple conditions with OR Return value TRUE if any arguments evaluate TRUE; FALSE if not. Syntax =OR (logical1, [logical2], ...) Arguments logical1 - The first condition or logical value to evaluate. logical2 - [optional] The second condition or logical value to evaluate.
  • 24. Excel OR Function www.prolearninghub.com Usage notes Use the OR function to test multiple conditions at the same time, up to 255 conditions total. For example, to test if the value in A1 OR the value in B1 is greater than 75, use the following formula: =OR(A1>75,B1<75) OR can be used to extend the functionality of functions like IF. Using the above example, you can supply OR as the logical_test for an IF function like so: =IF(OR(A1>75,B1<75), "Pass", "Fail")
  • 25. Excel OR Function www.prolearninghub.com This formula will return "Pass" if the value in A1 is greater than 75 OR the value in B1 is greater than 75. If you enter OR as an array formula, you can test all values in a range against a condition. For example, this array formula will return TRUE if any cell in A1:A100 is greater than 15: ={OR(A1:A100>15} Notes: Each logical condition must evaluate to TRUE or FALSE, or be arrays or references that contain logical values. Text values or empty cells supplied as arguments are ignored. The OR function will return #VALUE if no logical values are found
  • 28. Excel TRUE Function www.prolearninghub.com Purpose Generate the logical value TRUE Return value The logical value TRUE Syntax =TRUE () Usage notes The TRUE function is provided for compatibility with other spreadsheet applications and there is no need to use it in almost all cases.
  • 29. Excel TRUE Function www.prolearninghub.com If you want to enter TRUE, or provide TRUE as a result in a formula, you can just use enter the word TRUE directly into a cell or formula and Excel will interpret this as the logical value TRUE. For example, these formulas are functionally identical: =IF(A1<0, TRUE()) =IF(A1<0, TRUE) Also note that logical expressions themselves will automatically generate TRUE and FALSE results. For example, the formula in cell C7 is: =B7>90 This expression evaluates to TRUE, which is the result that appears in the spreadsheet. If you want to test a condition and return different results based on whether the results are TRUE or FALSE, see the examples on this page.
  • 32. Excel ADDRESS Function www.prolearninghub.com Purpose Create a cell address from a given row and column Return value A cell address in the current or given worksheet. Syntax =ADDRESS (row_num, col_num, [abs_num], [a1], [sheet]) Arguments row_num - The row number to use in the cell address. col_num - The column number to use in the cell address. abs_num - [optional] The address type (i.e. absolute, relative). Defaults to absolute. a1 - [optional] The reference style, A1 vs R1C1. Defaults to A1 style. sheet - [optional] The name of the worksheet to use. Defaults to current sheet.
  • 33. Excel ADDRESS Function www.prolearninghub.com Usage notes Use ADDRESS to create an address from a given row and column number. For example, ADDRESS(1,1,) will return $A$1. Abs_num key: 1 or omitted Absolute 2 Absolute row; relative column 3 Relative row; absolute column 4 Relative
  • 35. Excel AREAS Function www.prolearninghub.com Purpose Get the number of areas in a reference. Return value A number representing number of areas. Syntax =AREAS (reference) Arguments reference - A reference to a cell or range of cells. Usage notes Reference can include more than one reference. you must separate multiple references with a comma and wrap then in an extra set of parentheses. Otherwise, Excel will think the commas indicate multiple parameters and generate an error. As an example, the formula =AREAS((F17:F19,J16:J18,I8)) will return 3.
  • 37. Excel CHOOSE Function www.prolearninghub.com Return value The value at the given position. Syntax =CHOOSE (index_num, value1, [value2], ...) Arguments index_num - The value to choose. A number between 1 and 254. value1 - The first value from which to choose. value2 - [optional] The second value from which to choose. Usage notes Choose can handle up to 254 values. Index_num returns a value based on it's position in the list. For example, if index_num is 2, value2 is returned. Values can also be references. For example, the address A1, or the ranges A1:10 or B2:B15 can be supplied as values.
  • 40. Excel COLUMN Function www.prolearninghub.com Purpose Get the column number of a reference. Return value A number representing the column. Syntax =COLUMN ([reference]) Arguments reference - [optional] A reference to a cell or range of cells. Usage notes Use reference to get column number of a reference. Reference can be a single cell address or a range of cells. Reference is optional and will default to the cell in which the COLUMN function exists. Reference cannot include multiple references or addresses.
  • 42. Excel COLUMNS Function www.prolearninghub.com Purpose Get the number of columns in an array or reference. Return value A number representing column count. Syntax =COLUMNS (array) Arguments array - A reference to a range of cells. Usage notes Use the COLUMNS function to get the number of columns in a reference. For example, the formula =COLUMNS(A1:F1) returns the number 6. Array can be an array, an array formula, or a reference to a single contiguous group of cells.
  • 44. Excel FORMULATEXT Function www.prolearninghub.com Purpose Get the formula in a cell Return value The formula as text Syntax =FORMULATEXT (reference) Arguments reference - Reference to cell or cell range. Usage notes You can use the FORMULATEXT function to extract a formula as text from a cell. Once extracted, you can work with the formula like any other text.
  • 45. Excel FORMULATEXT Function www.prolearninghub.com Remember that you can temporarily display all formula in a worksheet with a keyboard shortcut. If you just want to test to see if a cell contains a formula or not, use the ISFORMULA function. Notes: If you use FORMULATEXT on a cell that doesn't contain a formula, you'll get an #N/A error. You can reference another workbook, but if the workbook is not open, you'll get an #N/A error. FORMULATEXT was introduced in Excel 2013.
  • 48. Excel HLOOKUP Function www.prolearninghub.com Purpose Look up a value in a table by matching on the first row Return value The matched value from a table. Syntax =HLOOKUP (value, table, row_index, [range_lookup]) Arguments value - The value to look up. table - The table from which to retrieve data. row_index - The row number from which to retrieve data. range_lookup - [optional] A boolean to indicate exact match or approximate match. Default = TRUE = approximate match.
  • 49. Excel HLOOKUP Function www.prolearninghub.com Usage notes HLOOKUP searches for a value in the first row of a table. At the match column, it retrieves a value from the specified row. Use HLOOKUP when lookup values are located in the first row of a table. Use VLOOKUP when lookup values are located in the first column of a table. Range_lookup controls whether value needs to match exactly or not. The default is TRUE = allow non-exact match. Set range_lookup to FALSE to require an exact match.
  • 50. Excel HLOOKUP Function www.prolearninghub.com If range_lookup is TRUE (the default setting), a non- exact match will cause the HLOOKUP function to match the nearest value in the table that is still less than value. When range_lookup is omitted, the HLOOKUP function will allow a non-exact match, but it will use an exact match if one exists. If range_lookup is TRUE (the default setting) make sure that lookup values in the first row of the table are sorted in ascending order. Otherwise, HLOOKUP may return an incorrect or unexpected value. If range_lookup is FALSE (require exact match), values in the first row of table do not need to be sorted.