WWW Geeksforgeeks Org Basic Excel Formulas and Functions
WWW Geeksforgeeks Org Basic Excel Formulas and Functions
Trending Now Data Structures Algorithms Foundational Courses Data Science Practice Problem Python Machine Learning JavaScript Java C C++ ReactJS NodeJS Web Developmen
How to Separate First and Last Names in Top 10 Basic Excel Formulas and Functions – Quick How to Choose the Right Fix Error 1
Excel Backend Technology? Cannot A
Guide Messages
VBA Error Handling 1. SUM
Read
2. COUNT
How to Create a Step Chart in Excel
3. COUNTA
How to Enable and Disable Macros in 4. COUNTBLANK
Excel 5. AVERAGE
6. MIN Excel
Excel Date Functions with Formula 7. MAX Excel
Examples
8. LEN Excel
How to Create Calculated Columns in 9. TRIM Excel
Power Pivot in Excel 10. IF Excel
Skip to content
For example: =SUM (A1:A10). This function adds up all the values in cells
A1 through A10.
Quick Tip to Become a Pro in Excel: The more you use Excel formulas, the
easier it will be to remember and perform them manually. Excel has over 400
functions, and the number is increasing from version to version. The formulas
can be inserted into Excel using the following method:
The simplest way to insert fundamental Excel formulas is by typing a formula into a
cell or the formula bar. Typically, the process begins with typing an equal sign (=)
followed by the name of an Excel function, by doing this Excel will start showing you
suggestions in the drop down menu to select and enter the formula.
If you want complete control over your function insertion, use the Excel Insert
Function dialogue box. To do so, go to the Formulas tab and select the first menu,
Insert Function. All the functions will be available in the dialogue box.
If retyping your most recent formula becomes tedious, use the Recently Used menu.
It’s on the Formulas tab, the third menu option after AutoSum .
1. SUM
The SUM formula in Excel is one of the most fundamental formulas you can use in a
spreadsheet, allowing you to calculate the sum (or total) of two or more values. To
use the SUM formula, enter the values you want to add together in the following
format: =SUM(value 1, value 2,…..).
Example: In the below example to calculate the sum of price of all the fruits, in
B9 cell type =SUM(B3:B8). This will calculate the sum of B3, B4, B5, B6, B7, B8
Press “Enter,” and the cell will produce the sum: 430.
2. SUBTRACTION
To use the subtraction formula in Excel, enter the cells you want to subtract in the
format =SUM (A1, -B1). This will subtract a cell from the SUM formula by appending
a negative sign before the cell is subtracted.
Skip to content
Example: If A3 was 300 and B3 was 225, =SUM(A1, -B1) would perform 300 +
-225, returning a value of 75 in D3 cell.
3. MULTIPLICATION
In Excel, enter the cells to be multiplied in the format =A3*B3 to perform the
multiplication formula. An asterisk is used in this formula to multiply cell A3 by cell
B3.
Example: If A3 was 300 and B3 was 225, =A1*B1 would return a value of
67500.
Highlight an empty cell in an Excel spreadsheet to multiply two or more values. Then,
in the format =A1*B1…, enter the values or cells you want to multiply together. The
asterisk effectively multiplies each value in the formula.
To return your desired product, press Enter. Take a look at the screenshot above to
see how this looks.
4. DIVISION
Division in Excel is one of the most basic functions available. To do so, highlight an
empty cell, enter an equals sign, “=,” and then the two (or more) values you want to
divide, separated by a forward slash, “/.” The output should look like this: =A3/B3, as
shown in the screenshot above. To use the division formula in Excel, enter the
dividing cells in the format =A3/B3. This formula divides cell A3 by cell B3 with a
forward slash, “/.”
Example: If A3 was 300 and B3 was 225, =A3/B3 would return a decimal value
of 1.333333333.
Skip to content
5. AVERAGE
The AVERAGE function finds an average or arithmetic mean of numbers. To find the
average of the numbers, type = AVERAGE(A3, B3, C3….) and press ‘Enter’ it will
produce the average of the numbers in the cell.
Example: If A3 was 300, B3 was 225, C3 was 180, D3 was 350, E3 is 400 then
=AVERAGE(A3,B3,C3,D3,E3) will produce 291.
6. IF
In Excel, the IF formula is denoted as =IF(logical test, value if true, value if false). This
lets you enter a text value into a cell “if” something else in your spreadsheet is true or
false.
Example: You may need to know which values in column A are greater than
three. Using the =IF formula, you can quickly have Excel auto-populate a “yes”
for each cell with a value greater than 3 and a “no” for each cell with a value
less than 3.
7. PERCENTAGE
To use the percentage formula in Excel, enter the cells you want to calculate the
percentage for in the format =A1/B1. To convert the decimal value to a percentage,
select the cell, click the Home tab, and then select “Percentage” from the numbers
dropdown.
Skip to content
Excel doesn’t have a set “formula” for percentages, but it makes it simple to
transform any cell’s value into a %, saving you the time and effort of having to
compute and reenter the data.
On Excel’s Home tab, you can find the default setting for converting a cell’s value to a
percentage. Select this tab, highlight the cell(s) you want to convert to a percentage,
and then select Conditional Formatting from the dropdown menu (this menu button
might say “General” at first). Then, from the list of options that appears, choose
“Percentage.” This will convert the value of each highlighted cell into a percentage.
You can find this functionality lower down.
8. MODULUS
The MOD() function aims to return the remaining after dividing a given number by a
divisor. For a better understanding, let’s look at the examples below.
9. CONCATENATE
CONCATENATE is a useful formula that combines values from multiple cells into the
same cell.
Skip to content
10. DATE
DATE is the Excel DATE formula =DATE(year, month, day). The values entered in the
parenthesis, including values from other cells, will be converted to a date using this
formula.
11. TRIM
The TRIM formula in Excel is denoted =TRIM(text). Any spaces placed before or after
the text in the cell will be eliminated by this formula.
Example: If A2 includes the name “Virat Kohli” with unwanted spaces before
the first name, =TRIM(A2) would return “Virat Kohli” with no spaces in a new
cell.
12. LEN
LEN is the function to count the number of characters in a specific cell when you
want to know the number of characters in that cell. =LEN(text) is the formula for this.
Please note that Excel’s LEN function counts every character, including spaces.
Example: =LEN(A2), returns the total length of the character in cell A2,
including spaces.
Skip to content
13. CEILING
Note: The #VALUE! error value is returned by CEILING if either input is not a
number.
14. FLOOR
15. REPLACE
The REPLACE() function does exactly what its name implies, it replaces a portion of a
text string with another text string.
16. SUBSTITUTE
In a text string, the SUBSTITUTE() function substitutes new text for old text.
Text: The text or the reference to a cell containing text for which you want to
substitute characters.
[instance_num] refers to the index position of the present texts more than once.
Skip to content
Substitute() function in Excel
17. NOW()
The NOW() function in Excel give the present date (today’s date), It retrieves the
current system clock time.
18. TODAY()
19. DAY()
The function DAY() is used to return the day of the month. The value will fall
between 1 and 31. The first day of the month is 1 and the last day is 31.
20. MONTH()
The month is returned by the MONTH() function as a number between 1 and 12, with
1 denoting January and 12 denoting December.
Skip to content
Month() function in Excel
21. YEAR()
The YEAR() function, as the name suggests, returns the year from a date value.
22. TIME()
The Excel serial number with a time format is created by the TIME() function using
the hours, minutes, and seconds provided as numbers.
23. DATEDIF
The DATEDIF() function provides the difference between two dates in terms of years,
months, or days.
Skip to content
24. VLOOKUP
The VLOOKUP formula searches for the value in the leftmost column of the table
array and returns the value from the same row from the specified columns.
Table_array: the range of the table, worksheet, or selected cell with multiple
columns.
Example: =VLOOKUP(A10,A1:C7,2,FALSE)
25. HLOOKUP
Table_array: the range of the table, worksheet, or selected cell with multiple
columns.
Example: HLOOKUP(B5,A1:D3,3,0)
26. POWER
The POWER() function returns the result of a number raised to a certain power.
27. INDEX-MATCH
The INDEX-MATCH function can be used to return a value in a column to the left.
This is the most popular function in Excel for performing more advanced lookups.
INDEX-MATCH in Excel has several advantages over the VLOOKUP Function. The
main advantage of using INDEX-MATCH is it only has to consider the lookup column
and the return column.
Example: =INDEX(B2:B6,MATCH(D2,A2:A6,0))
28. IF()
The IF Function is used when data needs to be sorted according to a given logic. The
main advantage of using the if function is that you can embed formulas and functions
in it.
Example : =IF(B2>50,”PASS”,”FAIL”)
29. SUMIF()
SUMIF Function adds all the values in a range of cells that meet a specified condition.
Formula: = SUMIF(range,criteria,[sum_range]).
Example: = SUMIF(C6:C11,”>=20″)
Skip to content
30. AVERAGEIF()
It Calculates the average value in a range of cells that meet the specified criteria.
Formula: =AVERAGEIF(range,criteria,[average_range]).
Example: =AVERAGEIF(C6:C11,”>=20″)
31. COUTNIF()
The COUNTIF Function is used to count the total number of cells in the given range
that satisfy the condition.
Example: =COUNTIF(C2:C6,”PASS”)
Conclusion
In conclusion, mastering basic Excel formulas and functions is essential for anyone
working with data in this versatile spreadsheet software. Remember that every
formula should commence with an equal sign to avoid errors, and if you need to input
text values, enclose them within double quotation marks. Additionally, ensure that
the cell format is set to ‘General’ before entering a function, as a ‘Text’ format may
disrupt formula execution. Lastly, be mindful that even blank cells with only spaces
are not considered truly empty, as spaces are counted as characters. By adhering to
these fundamental principles, you can harness the full potential of Excel’s formula
and function capabilities, making your data management tasks more efficient and
error-free.
FAQs
The SUM() formula is both the most commonly used and simplest formula
within Excel. Its primary function is to perform addition on a designated range
of cells, provided that these cells contain numeric values, and it necessitates a
minimum of two cells to function correctly.
You can use a cell reference to copy formulas from one cell to another cell.
There are two types of cell references absolute and relative. By default, cell
references are relative. The absolute cell reference is a formula that remains
fixed, regardless of where the formula is being used (copied, or moved). It is
denoted by a dollar sign($).
A relative cell reference adjusts its position based on the location of the
formula when copied or moved.
Yes, We can use multiple formulas by nesting. Nesting is using one formula
and inside another. Nesting allows us to perform complex problems.
For example, if you want to multiply two vlaues you can use Multiply function
on the basis of a given condition using the IF function.
Whether you're preparing for your first job interview or aiming to upskill in this ever-
evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide
top-quality content at affordable prices, all geared towards accelerating your growth
in a time-bound manner. Join the millions we've already empowered, and we're here
to do the same for you. Don't miss out - check it out now!
Similar Reads
Skip to content
6 New Functions or Array Formulas in Excel
Formulas in Excel 2019
Related Tutorials
MS Excel Tutorial Spring MVC Tutorial
Previous Next
Excel CHOOSE Function with Array How to Decide Which Excel Lookup
Formula to Use?
Article Contributed By :
naimishsahu08
naimishsahu08
Interview Corner GfG School Commerce UPSC SSC/ BANKING Write & Earn
Company Wise CBSE Notes for Class 8 Accountancy Polity Notes SSC CGL Syllabus Write an Article
Preparation CBSE Notes for Class 9 Business Studies Geography Notes SBI PO Syllabus Improve an Article
Preparation for SDE CBSE Notes for Class Economics History Notes SBI Clerk Syllabus Pick Topics to Write
Experienced 10 Human Resource Science and IBPS PO Syllabus Share your
Interviews CBSE Notes for Class Management (HRM) Technology Notes Experiences
IBPS Clerk Syllabus
Internship Interviews 11 Management Economics Notes Internships
Aptitude Questions
Competitive CBSE Notes for Class Income Tax Important Topics in SSC CGL Practice
Programming 12 Ethics
Finance Papers
Aptitude Preparation English Grammar UPSC Previous Year
Statistics for
Puzzles Economics Papers