Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

The A

10 Basic Excel Function VERA


GEIF
1. SUM- The SUM() function, as the name suggests, gives S fun
the total of the selected range of cell values. It performs the ction
mathematical operation which is addition. Here’s an example is a
of it below: premade function in Excel, which calculates the average of a
range based on one or more true or false condition.
Sum "=SUM(C2:C4)" It is typed =AVERAGEIFS:
=AVERAGEIFS(average_range, criteria_range1, criteria1, ...)

Example AVERAGEIFS function, step by step:


1. Select the cell H3
2. Type =AVERAGEIFS
3. Double click the AVERAGEIFS command
4. Specify the range for the average C2:C13 (the
Defense values)
5. Type ,
As you can see above, to find the total amount of sales for 6. Specify the range for the first conditionB2:B13 (the
every unit, we had to simply type in the function Type 1 values)
“=SUM(C2:C4)”. This automatically adds up 300, 385, and 7. Type ,
480. The result is stored in C5. 8. Specify the criteria (the cell F3, which has the value
"Grass")
SUMIF- The SUMIF() function adds the cells specified by a 9. Type ,
given condition or criteria. 10. Specify the range for the second
conditionD2:D13 (the Generation values)
Below is the coronavirus dataset using which we will find the
11. Type ,
total number of cases in India till 3rd Jun 2020. (Our dataset
has information from 31st Dec 2020 to 3rd Jun 2020).
12. Specify the criteria (the cell G3, which has the value
"1")
13. Hit enter

The function now calculates the average defense value of


the 1st Generation Grass type Pokemon: Bulbasaur, Ivysaur
and Venusaur.
The function can be repeated for Fire type Pokemon and 2nd
The SUMIFS() function adds the cells specified by a given set Generation to compare them:
of conditions or criteria.

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:

It automatically calculates the average, and you can store


the result in your desired location.

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")

The MONTH() function returns the month, a number from


1 to 12, where 1 is January and 12 is December.

The YEAR() function, as the name suggests, returns the year


from a date value.
10. MAX & MIN
The MAX and MIN functions help in finding the maximum
number and the minimum number in a range
NOW() of values.
The NOW() function in Excel gives the current system date =MIN(number1, [number2], …)
and time. Example:
=MIN(B2:C11) – Finds the minimum number between
column B from B2 and column C from C2 to row 11 in both
column B and C.
=MAX(number1, [number2], …)
Example:
The result of the NOW() function will change based on
=MAX(B2:C11) – Similarly, it finds the maximum number
your system date and time.
between column B from B2 and column C from C2 to row 11
in both column B and C.
8. IF
The IF function is often used when you want to sort your data
according to a given logic. The best part of the IF formula is
that you can embed formulas and function in it.
=IF(logical_test, [value_if_true], [value_if_false])
Example:
=IF(C2<D3, ‘TRUE,’ ‘FALSE’) – Checks if the value at C3 is less
than the value at D3. If the logic is true, let the cell value be
TRUE, else, FALSE
=IF(SUM(C1:C10) > SUM(D1:D10), SUM(C1:C10),
SUM(D1:D10)) – An example of a complex IF logic. First, it
sums C1 to C10 and D1 to D10, then it compares the sum. If
the sum of C1 to C10 is greater than the sum of D1 to D10,
then it makes the value of a cell equal to the sum of C1 to
C10.
Otherwise,
it makes it
the SUM of
C1 to C10.

9 AND &
OR

You might also like