10 Basic Excel Function
10 Basic Excel Function
2. AVERAGE
The AVERAGE() function focuses on calculating the average of
the selected range of cell values. As seen from the below
example, to find the avg of the total sales, you have to simply
type in:
Now, we can see the average defense values of each type
AVERAGE =AVERAGE(C2, C3, C4) between generations:
AVERAGEIFS
Notice
how
the 2nd Generation Grass type Pokemon got more defense, but The TRIM function makes sure your functions do not return
the Fire type stayed the same.
errors due to unruly spaces. It ensures that all empty spaces
3 COUNT are eliminated. Unlike other functions that can operate on a
The COUNT function counts all cells in a given range that range of cells, TRIM only operates on a single cell. Therefore,
contain only numeric values. it comes with the downside of adding duplicated data in your
=COUNT(value1, [value2], …) spreadsheet.
Example: =TRIM(text)
COUNT(A:A) – Counts all values that are numerical in A Example:
column. However, you must adjust the range TRIM(A2) – Removes empty spaces in the value in cell A2.
inside the formula to count rows.
COUNT(A1:C1) – Now it can count rows.
5 LEN
Whenever you want to know the number of characters in a
certain cell, LEN is the function to use:
COUNTA
LEN(text)
Like the COUNT function, COUNTA counts all cells in a given
Wish to find out how many characters are in cell A2? Just
rage. However, it counts all cells regardless of type. That is,
type the below formula into another cell:
unlike COUNT that only counts numerics, it also counts dates,
=LEN(A2)
times, strings, logical values, errors, empty string, or text.
Please keep in mind that the Excel LEN function counts
=COUNTA(value1, [value2], …)
absolutely all characters including spaces:
Example:
COUNTA(C2:C13) – Counts rows 2 to 13 in column C
regardless of type. However, like COUNT, you
can’t use the same formula to count rows. You must make an
adjustment to the selection inside the
brackets – for example, COUNTA(C2:H2) will count columns C
to H.
6 CONCATENATE
In case you want to take values from two or more cells and
combine them into one cell, use the concatenate operator
(&) or the CONCATENATE function:
CONCATENATE(text1, [text2], …)
For example, to combine the values from cells A2 and B2, just
enter the following formula in a different cell:
=CONCATENATE(A2, B2)
To separate the combined values with a space, type the
space character (" ") in the arguments list:
=CONCATENATE(A2, " ", B2)
4. TRIM
These are the two most popular logical functions to check
multiple criteria. The difference is how they do this:
-AND returns TRUE if all conditions are met, FALSE
otherwise.
-OR returns TRUE if any condition is met, FALSE otherwise.
While rarely used on their own, these functions come in very
handy as part of bigger formulas.
7 TODAY() For example, to check the test results in columns B and C and
The TODAY() function in Excel provides the current system return "Pass" if both are greater than 60, "Fail" otherwise,
date. use the following IF formula with an embedded AND
statement:
=IF(AND(B2>60, B2>60), "Pass", "Fail")
The function DAY() is used to return the day of the month. If it's sufficient to have just one test score greater than 60
It will be a number between 1 to 31. 1 is the first day of (either test 1 or test 2), embed the OR statement:
the month, 31 is the last day of the month. =IF(OR(B2>60, B2>60), "Pass", "Fail")
9 AND &
OR