Formulas in MS Excel
Formulas in MS Excel
Formulas in MS Excel
A formula is a mathematical expression that is written to
perform a certain calculation.
In MS Excel, a formula always begins with an = (equal to)
sign.
A formula may consist of numbers(constants),
text(functions), symbols(operators), cell address etc.
Arithmetic Operators:
+ (Addition)
-(Subtraction)
*(Multiplication)
/(Division)
^(Exponent)
Examples:
=5+8
Let cell A1 consist of a value 15 and cell A2 consists of a
certain value 25, write a formula to add these values:
=A1+A2
Autofill feature is also applicable in formulas. (When the
data is in series format).
Status bar displays the sum, count and average when a
range of cells are selected containing numbers.
Functions in MS Excel
Functions are built in formulas that comes along with MS
Excel package.
Few functions are:
1. =sum(range)
It is used to get the total sum of the values(data)
present in the range of cells.
2. =Average(range)
It is used to get the average(percentage) value of the
data present in the range of cells.
3. =max(range)
It is used to get the highest(maximum) value from data
present in the range of cells.
5. =count(range)
It is used to get the count of cells containing numeric
values from the given range of cells.
AutoSum button
It is in the Editing group of the Home tab.
It is used to add a calculation(formula) quickly or
automatically into a worksheet such as sum, max,
min, count etc.
More functions
=today ()
Gives the current date (month, date, year).
=now ()
Gives the current date and time.
=product (number1, number2…. number n)
Finds the product of the values given the cell address.
DATE function
The DATE function in Excel is used to create a date from a year,
month, and day. It's useful for managing calendars, performing date
calculations, and working with financial models.
Syntax
=DATE(year, month, day)
Example: DATE(2019,5,1) returns May 1, 2019.
keyboard shortcuts to enter the current date and time:
Ctrl + ; Enters the current date
Ctrl + Shift + ; Enters the current time
Ctrl + ; + space bar + Ctrl + Shift + ; Enters both the
current date and time.
If then else
The IF function in Microsoft Excel is used to compare
values or text in a cell to a desired value.
Percentage in Excel
To calculate a percentage in Excel, you can use the formula
amount / total = percentage. You can also format numbers
as percentages. For example, if a cell contains the formula
=10/100, the result of that calculation is 0.1. If you then
go to format cell option and format 0.1 as a percentage, the
number will be correctly displayed as 10%.
Example 1: Basic Percentage Calculation
Suppose you have some student data in columns A, B and
C. Follow the procedures below to determine the percentage
of marks obtained.
Step 1: Enter Formula in the Cells
In column D2, enter the Excel percentage formula =C2/B2,
and then duplicate it across as many rows as necessary.
= 20% * 200
An absolute reference in Excel is a cell reference that uses a dollar sign ($)
to lock the cell in a formula. This means that the cell reference will not change
when the formula is copied or moved.
How to create an absolute reference
1. Add a dollar sign ($) before the column letter and row number in the formula
2. Press the F4 key after typing a cell reference
Examples of absolute references
$A$1: An absolute reference for both the column and the row
$A1: An absolute reference for the column, but the row is relative
A$1: An absolute reference for the row, but the column is relative