Formula and Functions in MS Excel
Formula and Functions in MS Excel
This
article introduces you to formulas and functions.
Tutorials Data
For this tutorial, we will work with the following datasets.
=C4*D4
HERE,
"C4*D4" uses the arithmetic operator multiplication (*) to multiply the value of the cell
address C4 and D4.
The following animated image shows you how to auto select cell address and apply the
same formula to other rows.
Mistakes to avoid when working with formulas in Excel
1. Remember the rules of Brackets of Division, Multiplication, Addition, &
Subtraction (BODMAS). This means expressions are brackets are evaluated first. For
arithmetic operators, the division is evaluated first followed by multiplication then
addition and subtraction is the last one to be evaluated. Using this rule, we can
rewrite the above formula as =(A2 * D2) / 2. This will ensure that A2 and D2 are first
evaluated then divided by two.
2. Excel spreadsheet formulas usually work with numeric data; you can take advantage
of data validation to specify the type of data that should be accepted by a cell i.e.
numbers only.
3. To ensure that you are working with the correct cell addresses referenced in the
formulas, you can press F2 on the keyboard. This will highlight the cell addresses used
in the formula, and you can cross check to ensure they are the desired cell addresses.
4. When you are working with many rows, you can use serial numbers for all the rows
and have a record count at the bottom of the sheet. You should compare the serial
number count with the record total to ensure that your formulas included all the rows.
Check Out
Top 10 Excel Spreadsheet Formulas
=SUM (E4:E8)
As you can see from the above function used to get the sum of a range of cells, it is much
more efficient to use a function to get the sum than using the formula which will have to
reference a lot of cells.
Common functions
Let’s look at some of the most commonly used functions in ms excel formulas. We will start
with statistical functions.
Numeric Functions
As the name suggests, these functions operate on numeric data. The following table shows
some of the common numeric functions.
String functions
These basic excel functions are used to manipulate text data. The following table shows
some of the common string functions.
CATEGOR
S/N FUNCTION DESCRIPTION USAGE COM
Y
Returns a number of specified characters Left 4
1 LEFT Text =LEFT(“GURU99”,4)
from the start (left-hand side) of a string of “GU
Returns a number of specified characters Right
2 RIGHT Text =RIGHT(“GURU99”,2)
from the end (right-hand side) of a string of “GU
Retrieves a number of characters from the
middle of a string from a specified start Retrie
3 MID Text =MID(“GURU99”,2,3)
position and length. Chara
=MID (text, start_num, num_chars)
Returns True if the supplied parameter is value
4 ISTEXT Information =ISTEXT(value)
Text to che
Returns the starting position of a text string
within another text string. This function is Find o
5 FIND Text case-sensitive. =FIND(“oo”,”Roofing”,1) “Roof
=FIND(find_text, within_text, is 2
[start_num])
6 REPLACE Text Replaces part of a string with another =REPLACE(“Roofing”,2,2,”xx” Replac
specified string. ) “xx”
CATEGOR
S/N FUNCTION DESCRIPTION USAGE COM
Y
=REPLACE (old_text, start_num,
num_chars, new_text)
VLOOKUP function
The VLOOKUP function is used to perform a vertical look up in the left most column and
return a value in the same row from a column that you specify. Let’s explain this in a
layman’s language. The home supplies budget has a serial number column that uniquely
identifies each item in the budget. Suppose you have the item serial number, and you would
like to know the item description, you can use the VLOOKUP function. Here is how the
VLOOKUP function would work.
Summary
Excel allows you to manipulate the data using formulas and/or functions. Functions are
generally more productive compared to writing formulas. Functions are also more accurate
compared to formulas because the margin of making mistakes is very minimum.