0% found this document useful (0 votes)
88 views

Purpose Return Value Syntax: The SUMIF Function

The SUMIF function in Excel allows you to sum the values in a range that meet criteria. The syntax is SUMIF(range, criteria, [sum_range]), where range is the cells to apply criteria to, criteria is the condition for inclusion, and sum_range is optional and defaults to range. The RANK function returns the rank of a number within an array, from either highest to lowest or vice versa depending on an order argument. Nested IF functions allow multiple criteria to be evaluated, returning different values based on the first true condition.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

Purpose Return Value Syntax: The SUMIF Function

The SUMIF function in Excel allows you to sum the values in a range that meet criteria. The syntax is SUMIF(range, criteria, [sum_range]), where range is the cells to apply criteria to, criteria is the condition for inclusion, and sum_range is optional and defaults to range. The RANK function returns the rank of a number within an array, from either highest to lowest or vice versa depending on an order argument. Nested IF functions allow multiple criteria to be evaluated, returning different values based on the first true condition.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

The SUMIF Function

Syntax
The syntax for the SUMIF function in Microsoft Excel is:

SUMIF( range, criteria, [sum_range] )

Parameters or Arguments
range
The range of cells that you want to apply the criteria against.
criteria
The criteria used to determine which cells to add.
sum_range
Optional. It is the range of cells to sum together. If this parameter is omitted, it
uses range as the sum_range.

Returns
The SUMIF function returns a numeric value.

RANK FUNCTION
The Excel RANK function returns the rank of a numeric value when compared to a
list of other numeric values. RANK can rank values from largest to smallest (i.e.
top sales) as well as smallest to largest (i.e. fastest time) values, using an
optional order argument.

Purpose
Rank a number against a range of numbers

Return value
A number that indicates rank.

Syntax
=RANK (number, array, [order])
Arguments
 number - The number to rank.
 array - An array that contains the numbers to rank against.
 order - [optional] Whether to rank in ascending or descending order.

MS Excel: How to use the Nested IF Functions (WS)


This Excel tutorial explains how to nest the Excel IF function with syntax and
examples.

Description
The IF function is a built-in function in Excel that is categorized as a Logical
Function. It can be used as a worksheet function (WS) in Excel. As a worksheet
function, the IF function can be entered as part of a formula in a cell of a worksheet.
It is possible to nest multiple IF functions within one Excel formula. You can nest up
to 7 IF functions to create a complex IF THEN ELSE statement.
TIP: If you have Excel 2016, try the new IFS function instead of nesting multiple IF functions.

Syntax
The syntax for the nesting the IF function is:

IF( condition1, value_if_true1, IF( condition2, value_if_true2,


value_if_false2 ))

This would be equivalent to the following IF THEN ELSE statement:

IF condition1 THEN
value_if_true1
ELSEIF condition2 THEN
value_if_true2
ELSE
value_if_false2
END IF
Parameters or Arguments
condition
The value that you want to test.
value_if_true
The value that is returned if condition evaluates to TRUE.
value_if_false
The value that is return if condition evaluates to FALSE.

Note
 This Nested IF function syntax demonstrates how to nest two IF functions. You can
nest up to 7 IF functions.

Applies To
 Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel
2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Function
 Worksheet function (WS)

Example (as Worksheet Function)


Let's look at an example to see how you would use a nested IF and explore how to
use the nested IF function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following Nested IF examples would
return:

=IF(A1="10x12",120,IF(A1="8x8",64,IF(A1="6x6",36)))
Result: 120

=IF(A2="10x12",120,IF(A2="8x8",64,IF(A2="6x6",36)))
Result: 64

=IF(A3="10x12",120,IF(A3="8x8",64,IF(A3="6x6",36)))
Result: 36

Frequently Asked Questions


Question: In Microsoft Excel, I need to write a formula that works this way:
If (cell A1) is less than 20, then multiply by 1,
If it is greater than or equal to 20 but less than 50, then multiply by 2
If its is greater than or equal to 50 and less than 100, then multiply by 3
And if it is great or equal to than 100, then multiply by 4
Answer: You can write a nested IF statement to handle this. For example:
=IF(A1<20, A1*1, IF(A1<50, A1*2, IF(A1<100, A1*3, A1*4)))

Formula Errors
##### error
When your cell contains this error code, the column isn't wide enough to display the value.

#NAME? error
The #NAME? error occurs when Excel does not recognize text in a formula.

#VALUE! error
Excel displays the #VALUE! error when a formula has the wrong type of argument.

#DIV/0! error
Excel displays the #DIV/0! error when a formula tries to divide a number by 0 or an empty cell.

#REF! error
Excel displays the #REF! error when a formula refers to a cell that is not valid.

You might also like