The document provides an overview of various functions in Excel that can help analyze and manipulate data. It discusses count and sum functions, logical functions like IF, AND and OR, date and time functions, text functions, lookup and reference functions like VLOOKUP and INDEX, financial functions like PMT and RATE, statistical functions, rounding functions, and array formulas. Examples are given to demonstrate how each function works and how they can be used to solve different types of problems.
Presentation on theme: "Excel IF Function."— Presentation transcript:
1 Excel IF Function
2 Excel IF Function 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 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 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 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 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 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.
8 Excel IF Function
9 Excel IFERROR Function
10 Excel IFERROR Function
Purpose Trap and handle errors Return value The value you specify for error con
Presentation on theme: "Excel IF Function."— Presentation transcript:
1 Excel IF Function
2 Excel IF Function 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 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 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 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 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 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.
8 Excel IF Function
9 Excel IFERROR Function
10 Excel IFERROR Function
Purpose Trap and handle errors Return value The value you specify for error con
Excel Tutorials - VLOOKUP and HLOOKUP FunctionsMerve Nur Taş
Excel Tutorials with screenshots.
Reference and lookup functions in Excel: How to use VLOOKUP and HLOOKUP functions. VLOOKUP function example.
MS Excel 2016 for Mac
Presentation is about advance excel advance feature PIVOT Table and contains steps to insert pivot table and some useful features of pivot table in case of large amount of data
10 Excel Formulas that will help you in any JobHitesh Biyani
These are some basic and moderate excel formulas but are widely used in a corporate world be it any industry. A must read for freshers looking to seek a job with profiles in Banking, Insurance, BPO / KPO (Data support), etc
How to use Hlookup find an exact match Excel Advise
In this presentation we are telling you guys that In Microsoft Excel How to use Hlookup find an exact match.
The H in HLOOKUP stands for horizontal.
Hlookup Function is used to search a value in another Table and if found return the corresponding value of that table for the specified row.
You can lookup value in one of the two following ways:
Range Lookup
Range lookup is used when you want to search for ranges, it will look for nearest minimum value from the first row of the table.
Exact Lookup
We use this kind of lookups when we need to seek exact value.
Lookup value is the value to be found in the first row of the table. It can be a number, text or cell address..
Table array is a range where you want to find your lookup value.
Row num is the row number in table array from which the matching value will be returned
Range lookup is a logical value that specifies whether you want HLOOKUP to find an exact match or an approximate match.
if range lookup is true then it will return you exact match or an approximate matching value. And if range lookup is false it will give you exact match.
Want to learn more? Sign up to our course: http://bit.ly/excel2013course
This 4 step excel 2013 functions guide covers the fundamental aspects of using excel. It highlights and covers key components of excel for everyday usage and helps to enhance productivity with using excel.
Excel Tutorials - VLOOKUP and HLOOKUP FunctionsMerve Nur Taş
Excel Tutorials with screenshots.
Reference and lookup functions in Excel: How to use VLOOKUP and HLOOKUP functions. VLOOKUP function example.
MS Excel 2016 for Mac
Presentation is about advance excel advance feature PIVOT Table and contains steps to insert pivot table and some useful features of pivot table in case of large amount of data
10 Excel Formulas that will help you in any JobHitesh Biyani
These are some basic and moderate excel formulas but are widely used in a corporate world be it any industry. A must read for freshers looking to seek a job with profiles in Banking, Insurance, BPO / KPO (Data support), etc
How to use Hlookup find an exact match Excel Advise
In this presentation we are telling you guys that In Microsoft Excel How to use Hlookup find an exact match.
The H in HLOOKUP stands for horizontal.
Hlookup Function is used to search a value in another Table and if found return the corresponding value of that table for the specified row.
You can lookup value in one of the two following ways:
Range Lookup
Range lookup is used when you want to search for ranges, it will look for nearest minimum value from the first row of the table.
Exact Lookup
We use this kind of lookups when we need to seek exact value.
Lookup value is the value to be found in the first row of the table. It can be a number, text or cell address..
Table array is a range where you want to find your lookup value.
Row num is the row number in table array from which the matching value will be returned
Range lookup is a logical value that specifies whether you want HLOOKUP to find an exact match or an approximate match.
if range lookup is true then it will return you exact match or an approximate matching value. And if range lookup is false it will give you exact match.
Want to learn more? Sign up to our course: http://bit.ly/excel2013course
This 4 step excel 2013 functions guide covers the fundamental aspects of using excel. It highlights and covers key components of excel for everyday usage and helps to enhance productivity with using excel.
SEE THE FULL, FREE EXCEL 2013 TRAINING COURSE AT WWW.PIVOTEXCEL.COM
This presentation introduces you to basic Excel function syntax and usage, and runs through some basic mathematical functions.
Contents:
***Standard Function Syntax***
Elements of an Excel Function
Inputting Function Arguments
AutoComplete for Functions
***Basic Numerical Functions***
Using Sum(), Max(), Min(), Average() and Count()
Functions Update Automatically as Arguments Change.
Using Comma and Colon to Reference Cells & Ranges.
Using Cell References, Values, Formulas or other Functions as Arguments.
Inserting a Formula into Many Cells at Once with CTRL+ Enter.
***The AutoSum & Quick Analysis Feature***
The Autosum Tool
The Quick Analysis Feature
***Function Library & Insert Function Tool***
Using the ‘Insert Function’ Tool.
***Editing & Deleting Functions***
Editing & Deleting Functions with Mouse & Keyboard
Editing a Function with the Insert Function Tool
In Section 1 on the Data page, complete each column of the spreads.docxsleeperharwell
In Section 1 on the Data page, complete each column of the spreadsheet to arrive at the desired calculations. Use Excel formulas to demonstrate that you can perform the calculations in Excel. Remember, a cell address is the combination of a column and a row. For example, C11 refers to Column C, Row 11 in a spreadsheet.
Reminder: Occasionally in Excel, you will create an unintentional circular reference. This means that within a formula in a cell, you directly or indirectly referred to (back to) the cell. For example, while entering a formula in A3, you enter =A1+A2+A3. This is not correct and will result in an error. Excel allows you to remove or allow these references.
Hint: Another helpful feature in Excel is Paste Special. Mastering this feature allows you to copy and paste all elements of a cell, or just select elements like the formula, the value or the formatting.
"Names" are a way to define cells and ranges in your spreadsheet and can be used in formulas. For review and refresh, see the resources for Create Complex Formulas and Work with Functions.
Ready to Begin?
1. To calculate
hourly rate, you will use the annual hourly rate already computed in Excel, which is 2080. This is the number most often used in annual salary calculations based on full time, 40 hours per week, 52 weeks per year. In E11 (or the first cell in the
Hrly Rate column), create a formula that calculates the hourly rate for each employee by referencing the employee’s salary in Column D, divided by the value of annual hours, 2080. To do this, you will create a simple formula:
=D11/2080. Complete the calculations for the remainder of Column E. If you don’t want to do this cell by cell, you can create a new formula that will let you use that same formula all the way to the end of the column. It would look like this:
=$D$11:$D$382/2080.
2. In Column F, calculate the
number of years worked for each employee by creating a formula that incorporates the date in cell F9 and demonstrates your understanding of relative and absolute cells in Excel. For this, you will need a formula that can compute absolute values to determine years of service. You could do this longhand, but it would take a long time. So, try the
YEARFRAC formula, which computes the number of years (and even rounds). Once you start the formula in Excel, the element will appear to guide you. You need to know the “ending” date (F9) and the hiring date (B11). The formula looks like this:
=YEARFRAC($F$9,B11), and the $ will repeat the formula calculation down the column as before if you grab the edge of the cell and drag it to the bottom of the column.
3. To determine if an employee is
vested or not In Column I, use an
IF statement to flag with a "Yes" any employees who have been employed 10 years or more. Here is how an IF statement works:
=IF(X is greater (or less th.
Top 20 microsoft excel formulas you must knowAlexHenderson59
icrosoft Excel is one of the most popular data analysis tools in the world. A significant number of companies depend on MS Excel for calculation, analysis and visualization of data and information. Not many are taking full advantage of this simple yet powerful tool. We made a list of Top 20 Microsoft Excel Formulas you must know to become an Excel guru.
2. Functions
Discover how functions in Excel help you save time. If you are new functions in
Excel, we recommend you to read our introduction to Formulas and Functions first.
Count and Sum Functions: The most used functions in Excel are the functions that count and sum. You
can count and sum based on one criteria or multiple criteria.
Count
To count the number of cells that contain numbers, use the COUNT function.
.
3. Countif
To count cells based on one criteria (for example, higher than 9), use the following COUNTIF function.
Countifs
To count cells based on multiple criteria (for example, green and higher than 9), use the
following COUNTIFS function.
4. Sum
To sum a range of cells, use the SUM function.
Sumif
To sum cells based on one criteria (for example, higher than 9), use the following SUMIF function (two
arguments).
To sum cells based on one criteria (for example, green), use the following SUMIF function (three
arguments, last argument is the range to sum).
5. Sumifs
To sum cells based on multiple criteria (for example, blue and green), use the following SUMIFS
function (first argument is the range to sum).
General note: in a similar way, you can use the AVERAGEIF and AVERAGEIFS function to average
cells based on one or multiple criteria.
6. Logical Functions:
Learn how to use Excel's logical functions such as the IF, AND and OR function.
If Function
The IF function checks whether a condition is met, and returns one value if TRUE and another
value if FALSE.
1. Select cell C2 and enter the following function.
The IF function returns Correct because the value in cell A1 is higher than 10.
And Function
The AND Function returns TRUE if all conditions are true and returns FALSE if any of the
conditions are false.
1. Select cell D2 and enter the following formula.
7. The AND function returns FALSE because the value in cell B2 is not higher than 5. As a result the IF
function returns Incorrect.
Or Function
The OR function returns TRUE if any of the conditions are TRUE and returns FALSE if all
conditions are false.
1. Select cell E2 and enter the following formula.
The OR function returns TRUE because the value in cell A1 is higher than 10. As a result the IF
function returns Correct.
General note: the AND and OR function can check up to 255 conditions.
8. Date & Time Functions
To enter a date in Excel, use the "/" or "-" characters. To enter a time, use the ":" (colon). You can also
enter a date and a time in one cell.
Note: Dates are in US Format. Months first, Days second. This type of format depends on your
windows regional settings. Learn more about Date and Time formats
In the Category list, select Date, and select a Date format
9. Year, Month, Day
To get the year of a date, use the YEAR function
Note: use the MONTH and DAY function to get the month and day of a
date.
Date Function
1. To add a number of days to a date, use the following simple formula.
2. To add a number of years, months and/or days, use the DATE function.
Note: the DATE function accepts three arguments: year, month and day. Excel knows that 6 + 2 = 8 =
August has 31 days and rolls over to the next month (23 August + 9 days = 1 September).
10. Current Date & Time
To get the current date and time, use the NOW function.
Note: use the TODAY function to get the current date only. Use NOW()-TODAY() to get the current
time only (and apply a Time format).
Hour, Min, Sec
To return the hour, use the HOUR function.
Note: use the MINUTE and SECOND function to return the minute and
second.
11. Time Function
To add a number of hours, minutes and/or seconds, use the TIME function.
Note: Excel adds 2 hours, 10 + 1 = 11 minutes and 70 - 60 = 10
seconds.
12. Text Functions
Excel has many functions to offer when it comes to manipulating text strings.
Join Strings
To join strings, use the & operator
Note: to insert a space, use " "
Left
To extract the leftmost characters from a string, use the LEFT function.
13. Right
To extract the rightmost characters from a string, use the RIGHT function.
Mid
To extract a substring, starting in the middle of a string, use the MID function.
Note: started at position 5 (p) with length 3.
Len
To get the length of a string, use the LEN function.
Note: space (position 8) included!
14. Find
To find the position of a substring in a string, use the FIND function.
Note: string "am" found at position 3.
Substitute
To replace existing text with new text in a string, use the SUBSTITUTE function.
15. Lookup & Reference Functions
Learn all about Excel's lookup & reference functions such as the VLOOKUP,
HLOOKUP, MATCH, INDEX and CHOOSE function.
VLookup
The VLOOKUP (Vertical lookup) function looks for a value in the leftmost column of a table, and then
returns a value in the same row from another column you specify.
1. Insert the VLOOKUP function shown below.
Explanation: the VLOOKUP function looks for the ID (104) in the leftmost column of the range
$E$4:$G$7 and returns the value in the same row from the third column (third argument is set to 3). The
fourth argument is set to FALSE to return an exact match or a #N/A error if not found.
16. 2. Drag the VLOOKUP function in cell B2 down to cell B11.
Note: when we drag the VLOOKUP function down, the absolute reference ($E$4:$G$7) stays the same, while the
relative reference (A2) changes to A3, A4, A5, etc.
HLookup
In a similar way, you can use the HLOOKUP (Horizontal lookup)
function.
17. Match
The MATCH function returns the position of a value in a given range.
Note: Yellow found at position 3 in the range E4:E7. The third argument is optional. Set this argument to 0 to
return the position of the value that is exactly equal to lookup value (A2) or a #N/A error if not found.
Index
The INDEX function returns a specific value in a two-dimensional or
one-dimensional range.
18. Note: 92 found at the intersection of row 3 and column 2 in the range E4:F7.
Note: 97 found at position 3 in the range E4:E7.
Choose
The CHOOSE function returns a value from a list of values, based on a
position number
Note: Boat found at position 3.
19. Financial Functions
To illustrate Excel's most popular financial functions, we consider a loan with monthly payments, an
annual interest rate of 6%, a 20-year duration, a present value of $150,000 (amount borrowed) and a future
value of 0 (that's what you hope to achieve when you pay off a loan).
We make monthly payments, so we use 6%/12 = 0.5% for Rate and 20*12 = 240 for Nper (total number of
periods). If we make annual payments on the same loan, we use 6% for Rate and 20 for Nper.
Pmt
Select cell A2 and insert the PMT function.
Note: The last two arguments are optional. For loans the Fv can be omitted (the future value of a loan equals 0,
however, it's included here for clarification). If Type is omitted, it is assumed that payments are due at the end
of the period.
Result. The monthly payment equals $1,074.65.
20. Rate
If Rate is the only unknown variable, we can use the RATE function to calculate the interest rate.
Nper
Or the NPER function. If we make monthly payments of $1,074.65 on a 20-year loan, with an annual
interest rate of 6%, it takes 240 months to pay off this loan.
We already knew this, but we can change the monthly payment now to see how this affects the total
number of periods.
Conclusion: if we make monthly payments of $2,074.65, it takes less than 90 months to pay off this loan.
21. Pv
Or the PV (Present Value) function. If we make monthly payments of $1,074.65 on a 20-year loan, with an annual
interest rate of 6%, how much can we borrow? You already know the answer.
Fv
And we finish this chapter with the FV (Future Value) function. If we make monthly payments of
$1,074.65 on a 20-year loan, with an annual interest rate of 6%, do we pay off this loan? Yes.
But, if we make monthly payments of only $1,000.00, we still have debt after 20 years.
22. Statistical Functions
This chapter gives an overview of some very useful statistical functions in Excel.
Average
To calculate the average of a range of cells, use the AVERAGE
function.
Averageif
To average cells based on one criteria, use the AVERAGEIF function. For example, to calculate the average
excluding zeros.
Note: <> means not equal to. The AVERAGEIF function is similar to
the SUMIF function.
23. Median
To find the median (or middle number), use the MEDIAN function.
Check:
Mode
To find the most frequently occurring number, use the MODE function.
Standard Deviation
To calculate the standard deviation, use the STEDV function.
24. Min
To find the minimum value, use the MIN function
Max
To find the maximum value, use the MAX function
Large
To find the third largest number, use the following LARGE function.
25. Check:
Small
To find the second smallest number, use the following SMALL function.
Check:
Tip: Excel can generate most of these results with the click of a button.
Our Descriptive Statistics example shows you how.
26. Round
This chapter illustrates three functions to round numbers in Excel. The ROUND, ROUNDUP and
ROUNDDOWN function.
Before your start: if you round a number, you lose precision. If you don't want this, show fewer
decimal places without changing the number itself.
Round
1. Round a number to two decimal places.
Note: 1, 2, 3, and 4 get rounded down. 5, 6, 7, 8, and 9 get rounded up. In this example, 114.7211, 114.7221,
114.7231 and 114.7241 get rounded down to 114.72 and 114.7251, 114.7261, 114.7271, 114.7281 and 114.7291
get rounded up to 114.73.
2. Round a number to one decimal place.
27. 3. Round a number to the nearest integer.
4. Round a number to the nearest 10.
5. Round a number to the nearest 100.
RoundUp
The ROUNDUP function always rounds a number up (away from zero). For example, round a number up
to one decimal place.
28. RoundDown
The ROUNDDOWN function always rounds a number down (toward zero). For example, round a number down to
the nearest integer.
29. Formula Errors
This chapter teaches you how to deal with some common formula errors in Excel.
##### error
When your cell contains this error code, the column isn't wide enough to display the value.
1. Click on the right border of the column A header and increase the column width.
Tip: double click the right border of the column A header to automatically fit the widest cell in column A.
#NAME? error
The #NAME? error occurs when Excel does not recognize text in a formula.
30. 1. Simply correct SU to SUM.
#VALUE! error
Excel displays the #VALUE! error when a formula has the wrong type of argument.
31. 1a. Change the value of cell A3 to a number.
1b. Use a function to ignore cells that contain text.
#DIV/0! error
Excel displays the #DIV/0! error when a formula tries to divide a number by 0 or an empty cell.
1a. Change the value of cell A2 to a value that is not equal to 0.
1b. Prevent the error from being displayed by using the logical function IF.
32. Explanation: if cell A2 equals 0, an empty string is displayed. If not, the result of the formula A1/A2 is
displayed.
#REF! error
Excel displays the #REF! error when a formula refers to a cell that is not valid.
1. Cell C1 references cell A1 and cell B1.
2. Delete column B. To achieve this, right click the column B header and click Delete.
33. 3. Select cell B1. The reference to cell B1 is not valid anymore.
4. To fix this error, you can either delete +#REF! in the formula of cell B1 or you can undo your action by
clicking Undo in the Quick Access Toolbar (or press CTRL + z).
34. Array Formulas
This chapter helps you understand array formulas in Excel. Single cell array formulas perform
multiple calculations in one cell.
Without Array Formula
Without using an array formula, we would execute the following steps to find the greatest progress.
1. First, we would calculate the progress of each student.
2. Next, we would use the MAX function to find the greatest progress.
35. With Array Formula
We don't need to store the range in column D. Excel can store this range in its memory. A range stored in
Excel's memory is called an array constant.
1. We already know that we can find the progress of the first student by using the formula below.
2. To find the greatest progress (don't be overwhelmed), we add the MAX function, replace C2 with C2:C6 and B2
with B2:B6.
36. 3. Finish by pressing CTRL + SHIFT + ENTER.
Note: The formula bar indicates that this is an array formula by enclosing it in curly braces {}. Do not type these
yourself. They will disappear when you edit the formula.
Explanation: The range (array constant) is stored in Excel's memory, not in an range. The array constant looks as
follows:
{19;33;63;48;13}
This array constant is used as an argument for the MAX function, giving a result of 63.
F9 Key
When working with array formulas, you can have a look at these array constants yourself.
1. Select C2:C6-B2:B6 in the formula.
37. 2. Press F9.
That looks good. Elements in a vertical array constant are separated by semicolons. Elements in a horizontal
array constant are separated by commas.