Purpose Return Value Syntax: The SUMIF Function
Purpose Return Value Syntax: The SUMIF Function
Syntax
The syntax for the SUMIF function in Microsoft Excel is:
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.
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 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)
=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
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.