Basic Furmola in Microsoft Excel: 2. Count
Basic Furmola in Microsoft Excel: 2. Count
1. SUM
Formula: =SUM(5, 5) or =SUM(A1, B1) or =SUM(A1:B5)
The SUM formula does exactly what you would expect. It allows you to add 2 or more numbers
together. You can use cell references as well in this formula.
The above shows you different examples. You can have numbers in there separated by commas
and it will add them together for you, you can have cell references and as long as there are
numbers in those cells it will add them together for you, or you can have a range of cells with a
colon in between the 2 cells, and it will add the numbers in all the cells in the range.
2. COUNT
Formula: =COUNT(A1:A10)
The count formula counts the number of cells in a range that have numbers in them.
This formula only works with numbers though:
3. COUNTA
Formula: =COUNTA(A1:A10)
Counts the number of non-empty cells in a range. It will count cells that have numbers and/or
any other characters in them.
The COUNTA Formula works with all data types.
It counts the number of non-empty cells no matter the data type.
4. LEN
Formula: =LEN(A1)
The LEN formula counts the number of characters in a cell. Be careful though! This includes
spaces.
Notice the difference in the formula results: 10 characters without spaces in between the words,
12 with spaces between the words.
5. TRIM
Formula: =TRIM(A1)
Gets rid of any space in a cell, except for single spaces between words. Ive found this formula to
be extremely useful because Ive often run into situations where you pull data from a database
and for some reason extra spaces are put in behind or in front of legitimate data. This can wreak
havoc if you are trying to compare using IF statements or VLOOKUPs.
6. RIGHT, LEFT, MID
8. IF Statements
Formula: =IF(logical_statement, return this if logical statement is true, return this if logical
statement is false)
This IF statement will tell us if the first salesperson met their quota or not. We would then copy
and paste this formula along all the entries in the list. It would change for each sales person.
9. SUMIF, COUNTIF, AVERAGEIF
A fancy word for combining data in 2 (or more) different cells into one cell. This can be done
with the Concatenate excel formula or it can be done by simply putting the & symbol in between
the two cells. If I have Steve in cell A1 and Quatrani in cell B1 I could put this formula:
=A1& &B1 and it would give me Steve Quatrani. (The puts a space in between what you
are combining with the &). I can use =concatenate(A1, , B1) and it will give me the same
thing: Steve Quatrani