Sunteți pe pagina 1din 15

S No Function Name Purpose Return Value Syntax

A number
representing a COUNT (value1,
COUNT Count numbers
count of [value2], ...)
numbers
Count the A number
COUNTA (value1,
COUNTA number of non- representing
[value2], ...)
blank cells non-blank cells.
A number
Count cells that COUNTBLANK
COUNTBLANK representing
are blank (range)
blank cells

The result of SUMPRODUCT


Multiply, then
SUMPRODUCT multipled and (array1, [array2],
sum arrays
summed arrays ...)

The largest
Get the largest MAX (number1,
MAX value in the
value [number2], ...)
array.

The smallest
Get the smallest MIN (number1,
MIN value in the
value. [number2], ...)
array.

The nth largest


Get the nth
LARGE value in the LARGE (array, n)
largest value
array.

The nth smallest


Get the nth
SMALL value in the SMALL (array, n)
smallest value
array.
Get the average A number AVERAGE
AVERAGE of a group of representing (number1,
numbers the average. [number2], ...)

Rank a number
A number that RANK (number,
RANK against a range
indicates rank. array, [order])
of numbers

Get variation of Computed VAR (number1,


VAR
a sample variance [number2], ...)

Get the
Estimated
standard STDEV (number1,
STDDEV standard
deviation in a [number2], ...)
deviation
sample

A number
Count cells that COUNTIF (range,
COUNTIF representing
match criteria criteria)
cells counted.

Count cells that The number of COUNTIFS (range1,


COUNTIFS match multiple times criteria criteria1, [range2],
criteria are met [criteria2], ...)

Sum numbers in
SUMIF (range,
a range that The sum of
SUMIF criteria,
meet supplied values supplied.
[sum_range])
criteria
SUMIFS
Sum cells that The sum of the (sum_range,
SUMIFS match multiple cells that meet range1, criteria1,
criteria all criteria [range2],
[criteria2], ...)

Get a random
A number
number
RAND between 1 and RAND ()
between 0 and
0
1

Get a random
RANDBETWEEN
RAND integer between An integer
(bottom, top)
two values

Get a random
RANDBETWEEN
RANDBETWEEN integer between An integer
(bottom, top)
two values

A number
Get a subtotal in SUBTOTAL
representing a
SUBTOTAL a list or (function_num,
specific kind of
database ref1, [ref2], ...)
subtotal
TRUE if all
Test multiple
arguments AND (logical1,
AND conditions with
evaluate TRUE; [logical2], ...)
AND
FALSE if not

TRUE if any
Test multiple
arguments OR (logical1,
OR conditions with
evaluate TRUE; [logical2], ...)
OR
FALSE if not.
Reverse
A reversed
NOT arguments or NOT (logical)
logical value
results
Arguments Summary
value1 - An item, cell reference,
The Excel COUNT function returns the count of values that are
or range.
numbers, generally cells that contain numbers. Values can be supplied
value2 - [optional] An item, cell
as constants, cell references, or ranges.
reference, or range.
alue1 - An item, cell reference,
The Excel COUNTA function returns the count of cells that contain
or range.
numbers, text, logical values, error values, and empty text (""). COUNTA
value2 - [optional] An item, cell
does not count empty cells.
reference, or range.
The Excel COUNTBLANK function returns a count of empty cells in a
The range in which to count range. Cells that contain text, numbers, errors, etc. are not counted.
blank cells. Formulas that return empty text are counted
The SUMPRODUCT function multiplies ranges or arrays together and
array1 - The first array or range returns the sum of products. This sounds boring, but SUMPRODUCT is
to multiply, then add. an incredibly versatile function that can be used to count and sum like
array2 - [optional] The second COUNTIFS or SUMIFS, but with more flexibility. Other functions can
array or range to multiply, then easily be used inside SUMPRODUCT to extend functionality even
add. further.
number1 - Number, reference
to numeric value, or range that
contains numeric values. The Excel MAX function returns the largest numeric value in a range of
number2 - [optional] Number, values. The MAX function ignores empty cells, the logical values TRUE
reference to numeric value, or and FALSE, and text values.
range that contains numeric
values.
number1 - Number, reference
to numeric value, or range that
contains numeric values. The Excel MIN function returns the smallest numeric value in a range of
number2 - [optional] Number, values. The MIN function ignores empty cells, the logical values TRUE
reference to numeric value, or and FALSE, and text values.
range that contains numeric
values.
array - The array from which
you want to select the kth The Excel LARGE function returns numeric values based on their
largest value. position in a list when sorted by value. In other words, it can retrive
n - An integer that specifies the "nth largest" values - largest value, 2nd largest value, 3rd lagest value,
position from the largest value, etc.
i.e. the nth position.

array - A range of cells from The Excel SMALL function returns numeric values based on their
which to extract smallest values. position in a list ranked by value. In other words, it can retrive "nth
n - An integer that specifies the smallest" values - smallest value, 2nd smallest value, 3rd smallest value,
position from the smallest etc.
value, i.e. the nth position.
number1 - A number or cell
reference that refers to numeric The Excel AVERAGE function returns the average of values supplied as
values. multiple arguments. AVERAGE can handle up to 255 individual
number2 - [optional] A number arguments, which can include numbers, cell references, ranges, arrays,
or cell reference that refers to and constants.
numeric values.

number - The number to rank.


array - An array that contains The Excel RANK function returns the rank of a numeric value when
the numbers to rank against. compared to a list of other numeric values. RANK can rank values from
order - [optional] Whether to largest to smallest (i.e. top sales) as well as smallest to largest (i.e.
rank in ascending or descending fastest time) values, using an optional order argument
order.

number1 - First number or The Excel VAR function estimates the variance of a sample of data. If
reference. data represents the entire population, use the VARP function or the
number2 - [optional] Second newer VAR.P function. VAR ignores text values and logicals in
number or reference. references.
number1 - First number or
The Excel STDEV function returns the standard deviation for data that
reference in the sample.
represents a sample. To calculate the standard deviation for an entire
number2 - [optional] Second
population, use STDEVP or STDEV.P.
number or reference.
range - The range of cells to
COUNTIF is a function to count cells that meet a single criteria.
count.
COUNTIF can be used to count cells with dates, numbers, and text that
criteria - The criteria that
match specific criteria. The COUNTIF function supports logical operators
controls which cells should be
(>,<,<>,=) and wildcards (*,?) for partial matching.
counted.
range1 - The first range to
evaulate.
criteria1 - The criteria to use on The Excel COUNTIFS function returns the count of cells that meet one
range1. or more criteria. COUNTIFS can be used with criteria based on dates,
range2 - [optional] The second numbers, text, and other conditions. COUNTIFS supports logical
range to evaluate. operators (>,<,<>,=) and wildcards (*,?) for partial matching.
criteria2 - [optional] The criteria
to use on range2.

range - The range of cells that


you want to apply the criteria
against.
criteria - The criteria used to The Excel SUMIF function returns the sum of cells that supplied criteria.
determine which cells to add. Criteria can be applied to dates, numbers, and text using logical
sum_range - [optional] The cells operators (>,<,<>,=) and wildcards (*,?) for partial matching.
to add together. If sum_range is
omitted, the cells in range are
added together instead.
sum_range - The range to be
summed.
range1 - The first range to
evaulate. SUMIFS is a function to sum cells that meet multiple criteria. SUMIFS
criteria1 - The criteria to use on can be used to sum values when adjacent cells meet criteria based on
range1. dates, numbers, and text. SUMIFS supports logical operators (>,<,<>,=)
range2 - [optional] The second and wildcards (*,?) for partial matching.
range to evaluate.
criteria2 - [optional] The criteria
to use on range2.

The Excel RAND function returns a random number between 0 and 1.


For example, =RAND() will generate a number like 0.422245717. RAND
recalculates when a worksheet is opened or changed

bottom - An integer
representing the lower value of The Excel RANDBETWEEN function returns a random integer between
the range. given numbers. RANDBETWEEN recalculates when a worksheet is
top - An integer representing opened or changed.
the lower value of the range.
bottom - An integer
representing the lower value of The Excel RANDBETWEEN function returns a random integer between
the range. given numbers. RANDBETWEEN recalculates when a worksheet is
top - An integer representing opened or changed.
the lower value of the range.

function_num - A number that


specifies which function to use
in calculating subtotals within a The Excel SUBTOTAL function returns an aggregate result for supplied
list. See table below for full list. values. SUBTOTAL can return a SUM, AVERAGE, COUNT, MAX, and
ref1 - A named range or others (see table below), and SUBTOTAL function can either include or
reference to subtotal. exclude values in hidden rows.
ref2 - [optional] A named range
or reference to subtotal.
The Excel AND function is a logical function used to require more than
logical1 - The first condition or
one condition at the same time. AND returns either TRUE or FALSE. To
logical value to evaluate.
test if a number in A1 is greater than zero and less than 10, use
logical2 - [optional] The second
=AND(A1>0,A1<10). The AND function can be used as the logical test
condition or logical value to
inside the IF function to avoid extra nested IFs, and can be combined
evaluate.
with the OR function.

logical1 - The first condition or The OR function is a logical function to test multiple conditions at the
logical value to evaluate. same time. OR returns either TRUE or FALSE. For example, to test A1
logical2 - [optional] The second for either "x" or "y", use =OR(A1="x",A1="y"). The OR function can be
condition or logical value to used as the logical test inside the IF function to avoid extra nested IFs,
evaluate. and can be combined with the AND function
The Excel NOT function returns the opposite of a given logical or
Logical - A value or logical
boolean value. When given TRUE, NOT returns FALSE.When given
expression that can be
FALSE, NOT returns TRUE. Use the NOT function to reverse a logical
evaluated as TRUE or FALSE.
value.
Examples

The MAX function ignores empty cells.


The MAX function in current versions of Excel accepts up to 255 arguments. If arguments
contain no numbers, MAX returns 0.
Arguments can be provided as numbers, names, arrays, or references that contain
numbers.
The MAX function ignores TRUE and FALSE values, and numbers entered as text, unless
they are typed directly into the list of arguments.
The MIN function ignores empty cells.
The MIN function in current versions of Excel accepts up to 255 arguments. If arguments
contain no numbers, MIN returns 0.
Arguments can be provided as numbers, names, arrays, or references that contain
numbers.
The MIN function ignores TRUE and FALSE values, and numbers entered as text, unless they
are typed directly into the list of arguments.
The default for order is zero (0). If order is 0 or omitted, number is ranked against the
numbers sorted in descending order: smaller numbers receive a higher rank value, and the
largest value in a list will be ranked #1.
If order is 1, number is ranked against the numbers sorted in ascending order: smaller
numbers receive a lower rank value, and the smallest value in a list will be ranked #1.
It is not necessary to sort the values in the list before using the RANK function.
In the even of a tie (i.e. the list contains duplicates) RANK will use the lower rank value for
each set of duplicates.

COUNTIF(A1:A10,"<"&B1) // count cells less than B1


COUNTIF(A1:A10,100) // count cells equal to 100
=COUNTIF(A1:A10,">32") // count cells greater than 32
=COUNTIF(A1:A10,"jim") // count cells equal to "jim"

SUMIF(D6:D10,">100") // values > 100


=SUMIF(B6:B10,"Jim",D6:D10) // Rep = Jim
=SUMIF(C6:C10,"ca",D6:D10) // State = CA
SUMIF(D5:D9,">"&G4) // sum if greater than G4
SUMIF(B5:B9,"<>red",C5:C9) // not equal to "red"
=SUMIF(B5:B9,"<>blue",C5:C9) // not equal to "blue"
=SUMIF(B5:B9,"<>"&E7,C5:C9) // not equal to E7
SUMIF(B5:B9,"<"&DATE(2019,3,1),C5:C9)
=SUMIF(B5:B9,">="&DATE(2019,4,1),C5:C9)
=SUMIF(B5:B9,">"&E9,C5:C9)
SUMIF(B5:B9,"mi*",C5:C9) // begins with "mi"
=SUMIF(B5:B9,"*ota",C5:C9) // ends with "ota"
=SUMIF(B5:B9,"????",C5:C9) // contains 4 characters
RAND calculates a new value each time the worksheet is calculated. To stop random
numbers from being updated, copy the cells that contain RAND to the clipboard, then use
Paste Special > Values to convert to text.
To get a random number that doesn't change when the worksheet is calculated, enter
=RAND() in the formulas bar and then press F9 to convert the formula into its result.
To generate a set of random numbers in multiple cells, select the cells, enter RAND() and
press control + enter.
To generate a random number between a and b, use this formula: RAND() * (b - a) + a
Use the RANDBETWEEN function to get a random integer between bottom and top. For
example, =RANDBETWEEN(1,50) might generate the number 28

RANDBETWEEN calculates a new value each time the worksheet is calculated. To stop
random numbers from being updated, copy the cells that contain RANDBETWEEN to the
clipboard, then use Paste Special > Values to convert to text.

When function_num is between 1-11, SUBTOTAL includes values that are hidden
When function_num is between 101-111, SUBTOTAL excludes values that are hidden
In filtered lists, SUBTOTAL always ignores values in hidden rows, regardless of
function_num.
SUBTOTAL ignores other subtotals that exist in references are ignored to prevent double-
counting
SUBTOTAL is designed to work with vertical data values arranged vertically. In Horizontal
ranges, values in hidden columns are always included.
The AND function is used to apply more than one condition at the same time, up to 255
conditions. Each logical condition (logical1, logical2, etc.) must return TRUE or FALSE, or be
arrays or references that contain logical values.
Examples
To test if the value in A1 is greater than 0 and less than 5, use the following formula:
=AND(A1>0,A1<5)
You can embed the AND function inside the the IF function. Using the above example, you
can supply AND as the logical_test for the IF function like so:
=IF(AND(A1>0,A1<5), "Approved", "Denied")
This formula will return "Approved" only if the value in A1 is greater than 0 and less than 5.

You can combine the AND function with the OR function. The formula below returns TRUE
when A1 > 100 and B1 is "complete" or "pending":
=AND(A1>100,OR(B1="complete",B1="pending"))
See more examples of the AND function in formulas below.

Notes
The AND function is not case-sensitive.
The AND function does not support wildcards.
Text values or empty cells supplied as arguments are ignored.
The AND function will return #VALUE if no logical values are found or created during
evaluation.

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")
This formula will return "Pass" if the value in A1 is greater than 75 OR the value in B1 is
greater than 75.

Array form
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
Use the NOT function to reverse a value or logical argument:

When logical is FALSE, NOT returns TRUE.


When logical is TRUE, NOT returns FALSE.
A common use case for NOT 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.

S-ar putea să vă placă și