What can be used in excel formulas

Overview of formulas in Excel

Get started on how to create formulas and use built-in functions to perform calculations and solve problems.

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

Important: The calculated results of formulas and some Excel worksheet functions may differ slightly between a Windows PC using x86 or x86-64 architecture and a Windows RT PC using ARM architecture. Learn more about the differences.

Important: In this article we discuss XLOOKUP and VLOOKUP, which are similar. Try using the new XLOOKUP function, an improved version of VLOOKUP that works in any direction and returns exact matches by default, making it easier and more convenient to use than its predecessor.

Create a formula that refers to values in other cells

  1. Select a cell.

  2. Type the equal sign =.

    Note: Formulas in Excel always begin with the equal sign.

  3. Select a cell or type its address in the selected cell.

    select cell

  4. Enter an operator. For example, – for subtraction.

  5. Select the next cell, or type its address in the selected cell.

    next cell

  6. Press Enter. The result of the calculation appears in the cell with the formula.

See a formula

  1. When a formula is entered into a cell, it also appears in the Formula bar.

    Formula Bar

  2. To see a formula, select a cell, and it will appear in the formula bar.

    See formula bar

Enter a formula that contains a built-in function

  1. Select an empty cell.

  2. Type an equal sign = and then type a function. For example, =SUM for getting the total sales.

  3. Type an opening parenthesis (.

  4. Select the range of cells, and then type a closing parenthesis).

    range

  5. Press Enter to get the result.

Download our Formulas tutorial workbook

We’ve put together a Get started with Formulas workbook that you can download. If you’re new to Excel, or even if you have some experience with it, you can walk through Excel’s most common formulas in this tour. With real-world examples and helpful visuals, you’ll be able to Sum, Count, Average, and Vlookup like a pro.

Formulas in-depth

You can browse through the individual sections below to learn more about specific formula elements.

A formula can also contain any or all of the following: functions, references, operators, and constants.

Parts of a formula   

Parts of a formula

1. Functions: The PI() function returns the value of pi: 3.142…

2. References: A2 returns the value in cell A2.

3. Constants: Numbers or text values entered directly into a formula, such as 2.

4. Operators: The ^ (caret) operator raises a number to a power, and the * (asterisk) operator multiplies numbers.

A constant is a value that is not calculated; it always stays the same. For example, the date 10/9/2008, the number 210, and the text «Quarterly Earnings» are all constants. An expression or a value resulting from an expression is not a constant. If you use constants in a formula instead of references to cells (for example, =30+70+110), the result changes only if you modify the formula. In general, it’s best to place constants in individual cells where they can be easily changed if needed, then reference those cells in formulas.

A reference identifies a cell or a range of cells on a worksheet, and tells Excel where to look for the values or data you want to use in a formula. You can use references to use data contained in different parts of a worksheet in one formula or use the value from one cell in several formulas. You can also refer to cells on other sheets in the same workbook, and to other workbooks. References to cells in other workbooks are called links or external references.

  • The A1 reference style

    By default, Excel uses the A1 reference style, which refers to columns with letters (A through XFD, for a total of 16,384 columns) and refers to rows with numbers (1 through 1,048,576). These letters and numbers are called row and column headings. To refer to a cell, enter the column letter followed by the row number. For example, B2 refers to the cell at the intersection of column B and row 2.

    To refer to

    Use

    The cell in column A and row 10

    A10

    The range of cells in column A and rows 10 through 20

    A10:A20

    The range of cells in row 15 and columns B through E

    B15:E15

    All cells in row 5

    5:5

    All cells in rows 5 through 10

    5:10

    All cells in column H

    H:H

    All cells in columns H through J

    H:J

    The range of cells in columns A through E and rows 10 through 20

    A10:E20

  • Making a reference to a cell or a range of cells on another worksheet in the same workbook

    In the following example, the AVERAGE function calculates the average value for the range B1:B10 on the worksheet named Marketing in the same workbook.

    Sheet reference example

    1. Refers to the worksheet named Marketing

    2. Refers to the range of cells from B1 to B10

    3. The exclamation point (!) Separates the worksheet reference from the cell range reference

    Note: If the referenced worksheet has spaces or numbers in it, then you need to add apostrophes (‘) before and after the worksheet name, like =’123′!A1 or =’January Revenue’!A1.

  • The difference between absolute, relative and mixed references

    1. Relative references    A relative cell reference in a formula, such as A1, is based on the relative position of the cell that contains the formula and the cell the reference refers to. If the position of the cell that contains the formula changes, the reference is changed. If you copy or fill the formula across rows or down columns, the reference automatically adjusts. By default, new formulas use relative references. For example, if you copy or fill a relative reference in cell B2 to cell B3, it automatically adjusts from =A1 to =A2.

      Copied formula with relative reference   

      Copied formula with relative reference

    2. Absolute references    An absolute cell reference in a formula, such as $A$1, always refer to a cell in a specific location. If the position of the cell that contains the formula changes, the absolute reference remains the same. If you copy or fill the formula across rows or down columns, the absolute reference does not adjust. By default, new formulas use relative references, so you may need to switch them to absolute references. For example, if you copy or fill an absolute reference in cell B2 to cell B3, it stays the same in both cells: =$A$1.

      Copied formula with absolute reference   

      Copied formula with absolute reference

    3. Mixed references    A mixed reference has either an absolute column and relative row, or absolute row and relative column. An absolute column reference takes the form $A1, $B1, and so on. An absolute row reference takes the form A$1, B$1, and so on. If the position of the cell that contains the formula changes, the relative reference is changed, and the absolute reference does not change. If you copy or fill the formula across rows or down columns, the relative reference automatically adjusts, and the absolute reference does not adjust. For example, if you copy or fill a mixed reference from cell A2 to B3, it adjusts from =A$1 to =B$1.

      Copied formula with mixed reference   

      Copied formula with mixed reference

  • The 3-D reference style

    Conveniently referencing multiple worksheets    If you want to analyze data in the same cell or range of cells on multiple worksheets within a workbook, use a 3-D reference. A 3-D reference includes the cell or range reference, preceded by a range of worksheet names. Excel uses any worksheets stored between the starting and ending names of the reference. For example, =SUM(Sheet2:Sheet13!B5) adds all the values contained in cell B5 on all the worksheets between and including Sheet 2 and Sheet 13.

    • You can use 3-D references to refer to cells on other sheets, to define names, and to create formulas by using the following functions: SUM, AVERAGE, AVERAGEA, COUNT, COUNTA, MAX, MAXA, MIN, MINA, PRODUCT, STDEV.P, STDEV.S, STDEVA, STDEVPA, VAR.P, VAR.S, VARA, and VARPA.

    • 3-D references cannot be used in array formulas.

    • 3-D references cannot be used with the intersection operator (a single space) or in formulas that use implicit intersection.

    What occurs when you move, copy, insert, or delete worksheets    The following examples explain what happens when you move, copy, insert, or delete worksheets that are included in a 3-D reference. The examples use the formula =SUM(Sheet2:Sheet6!A2:A5) to add cells A2 through A5 on worksheets 2 through 6.

    • Insert or copy    If you insert or copy sheets between Sheet2 and Sheet6 (the endpoints in this example), Excel includes all values in cells A2 through A5 from the added sheets in the calculations.

    • Delete     If you delete sheets between Sheet2 and Sheet6, Excel removes their values from the calculation.

    • Move    If you move sheets from between Sheet2 and Sheet6 to a location outside the referenced sheet range, Excel removes their values from the calculation.

    • Move an endpoint    If you move Sheet2 or Sheet6 to another location in the same workbook, Excel adjusts the calculation to accommodate the new range of sheets between them.

    • Delete an endpoint    If you delete Sheet2 or Sheet6, Excel adjusts the calculation to accommodate the range of sheets between them.

  • The R1C1 reference style

    You can also use a reference style where both the rows and the columns on the worksheet are numbered. The R1C1 reference style is useful for computing row and column positions in macros. In the R1C1 style, Excel indicates the location of a cell with an «R» followed by a row number and a «C» followed by a column number.

    Reference

    Meaning

    R[-2]C

    A relative reference to the cell two rows up and in the same column

    R[2]C[2]

    A relative reference to the cell two rows down and two columns to the right

    R2C2

    An absolute reference to the cell in the second row and in the second column

    R[-1]

    A relative reference to the entire row above the active cell

    R

    An absolute reference to the current row

    When you record a macro, Excel records some commands by using the R1C1 reference style. For example, if you record a command, such as clicking the AutoSum button to insert a formula that adds a range of cells, Excel records the formula by using R1C1 style, not A1 style, references.

    You can turn the R1C1 reference style on or off by setting or clearing the R1C1 reference style check box under the Working with formulas section in the Formulas category of the Options dialog box. To display this dialog box, click the File tab.

    Top of Page

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Switch between relative, absolute and mixed references for functions

Using calculation operators in Excel formulas

The order in which Excel performs operations in formulas

Using functions and nested functions in Excel formulas

Define and use names in formulas

Guidelines and examples of array formulas

Delete or remove a formula

How to avoid broken formulas

Find and correct errors in formulas

Excel keyboard shortcuts and function keys

Excel functions (by category)

Need more help?

You may be familiar with Microsoft Excel. This application made by Microsoft Corporation is the application with the most users in the world in 140+ countries. This application has a myriad of Excel formulas that can accurately present numbers and data.

The primary function of Microsoft Excel is calculation, which is why it has been used by many users, both students and office workers. Despite other spreadsheet programs (competitors), Excel maintained its dominance and even became an industry standard.

Apparently, Excel seems too good to be true. All you have to do is enter an Excel formula, and almost everything you need to do manually can be done automatically. Use the best accounting software to do the cash flow forecast appropriately and analyze financial statements more optimally.

If you need to combine two sheets with the same data, Excel can do this. Do you need help with mathematics? Excel can do this. Are you using data from multiple cells? Excel can do this too.

In this article, you will understand the function of Excel in different professional fields. Then you’ll understand what formulas you need to know. Later, you will be able to apply automatic calculations to be used according to your needs.

Table Of Content

  • The Uses of Excel in Professional Fields
  • Complete Excel Formulas with Their Functions
  • Conclusion

Also Read: 5 Common Bookkeeping Mistakes on Small Businesses

    The Uses of Excel in Professional Fields

    Many job openings require candidates to master Excel. Not surprisingly, excel is needed by a wide variety of fields of work that require data collection.

    To that end, we will present the following professions, which can benefit from the use of Excel, among others:

    Accountancy

    It is widespread for accountants to be able to use Excel. The field of accounting benefits from using Microsoft Excel in several ways, including making it easier to calculate corporate profit and loss, identify large profits over a period, calculate employee salaries, and more.

    An accountant can facilitate his work by using the accounting system as a tool he worked. The system can provide convenience in managing the company’s financial circulation and calculating it optimally and accurately.

    Also Read: Salary Slip: Understanding, Benefits, Format, Example

    Mathematical calculations

    The next advantage of using Microsoft Excel is mathematical calculations. Use calculations to find data from numbers, subtractions, multiplications, and divisions, as well as various other variations such as calculating the slope.

    Data processing

    In data management, there are helpful excel formulas, including managing statistical databases, calculating data, searching for median values, and averages, and searching for the maximum and minimum values of data sets.

    Graphic creation

    Excel allows you to create graphics. Such as graphing population development data for one year, the graph of student library visits for one year, the student graduation graph for six years, the graph of student number development for three years, and others.

    Table operations

    The last application is to be able to operate the table. With a total of 1,084,576 rows and 16,384 columns in Microsoft Excel, it will make it easier for you to enter data that requires a large number of columns and rows.

    Excel Formulas

    Source: versionmuseum.com

    Complete Excel Formulas with Their Functions

    In addition to the functionality and use of Microsoft Excel mentioned earlier, operating this Excel program requires Excel formulas. Each formula has a different function that you can use for a specific need.

    Here are the Excel formulas you need to know, among others:

    Formulas Functional Description
    SUM Summing
    AVERAGE Looking for Average Values
    AND Finding Value by comparison and
    NOT Finding Value with Exceptions
    OR Finding Value by Comparison or
    SINGLE IF Looking for Values If Conditions ARE RIGHT/WRONG
    MULTI IF Finding Values If Conditions ARE RIGHT/WRONG With Many Comparisons
    AREAS View The Number of Areas (Range or Cells)
    CHOOSE View Selection Results Based on Index Numbers
    HLOOKUP Search for Data from a table organized in a horizontal format
    VLOOKUP Search for Data from a table arranged in an upright format
    MATCH Displays the position of a specific cell address
    COUNTIF Counting the Number of Cells in a Range with specific criteria
    COUNTA Counting the Number of Filled Cells
    CEILING Round the number up
    FLOOR Rounds numbers down
    DAY Looking for The Value of the Day
    MONTH Searching for the Value of the Moon
    YEAR Looking for Year Value
    DATE Get a Date Value
    LOWER Change text letters to lowercase
    UPPER Change Text Letters to UpperCase
    PROPER Change the Initial Character of the Text To UpperCase
    23 Excel Formulas

    For more information about how to use the excel function formulas mentioned above, here is a detailed description, along with examples:

    SUM

    This Excel summation formula has the primary function of summing numbers in specific cells. However, it is also often used to complete a job or task quickly. 

    To use SUM, first create a summation table and enter the summation formula below. For example, =SUM(G8:H8), or as shown in the image below:

    Excel Formula: Sum

    Then, if the SUM formula has been entered, press enters to specify the amount. As shown in the picture below:

    Excel Formula: Sum 2

    AVERAGE

    The primary function of the AVERAGE formula or the average formula in Excel is to find the average value of a variable. The trick is to create a table for grades and then enter the AVERAGE formula to determine the student’s grade point average. For example, =AVERAGE(D2:F2), as in the following image:

    Excel Formula: Average

    If you enter the AVERAGE formula, press enters to see the result, shown in the image below.

    Excel Formula: Average 2

    AND

    The AND formula function generates a TRUE value if all previously tested arguments are correct or can return a FALSE value if all arguments or answers are incorrect.

    To determine TRUE or FALSE, you must create a table and enter THE FORMULA AND. For example, =AND(G7>I7).

    This technique is usually used to help fill out questionnaires or answer question columns to speed up the value-setting process.

    NOT

    The NOT formula has the opposite function of the AND formula because it produces TRUE if the condition tested is FALSE and FALSE if the condition tested is TRUE.

    The first step is to create a table and enter the FORMULA NOT to find out the results. For example, as shown in the diagram below, =NOT(G7>J7).

    OR

    The OR is the following excel formula that will produce TRUE data if some given argument is correct. If all of the arguments presented are incorrect, the answer is FALSE.

    A student’s average test score result is an example of how OR can use it in Excel. If it is less than 70, he must repeat the course; if it is greater than 70, the student graduates.

    SINGLE IF

    The IF function is to return a value that, when examined, is TRUE and another value that is visible as FALSE.

    Not much different from the technique of using formulas in OR. It just seems more straightforward.

    For example, when a student’s average grade is less than 75, that student does not graduate, and vice versa. How to create an IF formula is =IF(J8<75;” NOT GRADUATING”;” PASS”). To be clear, take a look at the following image:

    Excel Formula: Single IF

    After entering the formula, press enters, and the result will match what you ordered.

    Excel Formula: Single IF 2

    MULTI IF

    This formula is a further lesson from SINGLE IF, but if SINGLE IF only uses only one condition with two options, The MULTI IF uses two terms and three options.

    A Double/Multi FORMULA is a type of logic-IF formula consisting of 2 or more IF in formula writing. If a single IF only needs 1 IF, for example, =IF(B2=>=70;” Graduated”;” Failed”) then Double IF requires more than 1 IF, for example, =IF(B2>=70;” Good”;IF(B2>=50;” Enough”;” Less”)).

    So that the full Excel formula will provide Syntax on Double / Multi IF, among others:

    =IF(Logical_Test; Value_If_True;IF(Logical_Test; Value_If_True; Value_If_False))

    AREAS

    You can use the usability of AREAS if you want to calculate the number of areas you want to select. The AREAS formula can use the formula =AREAS(G6:K8).

    Excel Formula: AREAS

    The result is one area. The results are based on the example in the image of selecting only one range of cells.

    CHOOSE

    The primary function of a CHOOSE formula is to display selection results based on index numbers or sequences in reference (VALUE) that contain text, numeric, formula, or range names. The image below shows an example of how to write the CHOOSE formula.

    Excel Formula: CHOOSE

    Meanwhile, the results of the CHOOSE formula are shown in the image below.

    Excel Formula: CHOOSE 2

    HLOOKUP

    The HLOOKUP function displays data from tables arranged horizontally. However, The arrangement of tables or data in the first row should be based on small to large sequences or raising them. 

    For example, the number 1,2,3,4… Or the letter A-Z. Sort by ascending the menu if you previously typed randomly. Cases like the ones listed below are examples.

    Excel Formula: HLOOKUP

    =HLOOKUP(Cells that contain packet types; Range cell table details costs; The location of the data column you want to retrieve;0).

    VLOOKUP

    The primary function of the VLOOKUP formula is almost identical to the HLOOKUP formula; The difference is that the VLOOKUP formula displays data from tables arranged in an upright or vertical format. The requirement is that the first row of the data table is prepared in small to large order or up.

    For example 1,2,3,4… Or the letter A-Z. For example 1,2,3,4… Or the letter A-Z. Sort through the Ascending menu if you previously typed randomly.

    MATCH

    The MATCH function is one of the components of an Excel formula that you can use to perform lookups or reference data searches.

    The MATCH function works by finding the relative position of a value in a range or array and generating a number that is the index of the cell’s relative position that contains the value it is looking for.

    The use of the Excel MATCH function must follow the syntax rules, namely MATCH(lookup_value, lookup_array, [match_type])

    To better understand, understand the image below:

    MATCH

    Source: je-excel 

    COUNTIF

    COUNTIF is a helpful formula for counting the number of cells that have the same criteria. As a result, you no longer have to struggle with data sorting.

    Assume you’re doing a survey. You want to know how many civil servants there are out of 20 respondents. As a result, you can use the following formulas:

    COUNTIF

    Source: bitlabs

    To get started, all you need to do is enter the range of cells you want to identify into the COUNTIF formula (B2:B21)

    Then, enter the cell calculation criteria, namely “PNS” (must be in quotation marks).

    This formula produces a result of 7. So, out of 20 respondents, seven were civil servants.

    COUNTA

    COUNTA has the function of counting the number of cells that contain numbers and the number of cells that contain anything. As a result, you can determine the number of cells that are not empty.

    Assume that cells A1 through D1 are words and cells G1 through I1 number. Therefore the use of the formula is =COUNTA(A1:I1)

    COUNTA

    Source: bitlabs

    That results in 7 because the empty cells are only E1 and F1.

    CEILING

    The CEILING formula can round the number UP at the multiple values of a specific number. The formula is CEILING (CELLS number; Multiples).

    Misalnya, CEILING(G9;100). Then the number on Cells G9 will be rounded up with a multiple of 100.

    FLOOR

    If the previous use of the formula is to round to the nearest integer and above, the FLOOR formula is used to round to the nearest integer. The formula is almost identical to the one for CEILING, but with the addition of FLOOR.

    The FLOOR formula is FLOOR (Number cell; Multiples).

    DAY

    The DAY formula is used to find the date type data’s day (in the numbers 1-31). Consider the DAY function (column B). The date data in column A will be extracted and converted into numbers 1-31, following the explanation through the image:

    DAY

    After entering the formula =DAY(NUMBER), press enters and see the results below:

    Excel Formula: DAY (2)

    MONTH

    Almost similar to the DAY formula, the use of the MONTH formula to search for months (in numbers 1-12) from date type data. For example, the use of the MONTH function (column K) of a column I date data, after extracting it, produces the numbers 1-12 as in the figure below:

    MONTH

    YEAR

    Meanwhile, there is a YEAR formula. The way you use this formula is similar to the way the previous two formulas were. The use of the YEAR formula takes years (in the range of 1900-9999) from date-type data.

    DATE

    The DATE formula has a function that allows you to get date data types by entering years, months, and days. The DATE function is the opposite of the DAY, MONTH, and YEAR functions, which describe month and year-type data from their respective dates.

    Year, month, and day data in the form of numbers combined with the DATE function generate data with data types, as shown in the figure below. Date formula writing image, namely:

    DATE

    LOWER

    The lower formula function converts all uppercase letters in the text to lowercase. To use the formula, type the LOWER command, and texts will convert the desired writing to lowercase.

    For example, when implementing the LOWER formula with the formula =LOWER (Don’t Forget to Use HashMicro Software), the result is “don’t forget to use has micro software.”

    UPPER

    In addition to lower formulas, Microsoft Excel includes upper formulas. The use of UPPER is to convert all text containing lowercase letters into uppercase, the opposite of the LOWER function.

    For example, if you type UPPER (hashmicro), your writing will be entirely in capital letters.

    PROPER

    Sometimes you forget to write sentences in all lowercase letters and no capital letters. So with the PROPER formula, you can capitalize on the first character in each word while keeping the rest. The formula is APPROPRIATE (text).

    Conclusion

    Although understanding Excel entirely takes time, you will be familiar with all the correct formulas and applications.

    In a company, the use of Excel is overwhelming, especially in presenting data, statistics, and company finances such as salaries. The digital world is bringing corporate transformation to provide information and payroll more easily with automated systems. You can use HashMicro accounting software as a tool to calculate financial circulation optimally and accurately.

    Excel Formulas

    Moreover, HashMicro has a system that helps with all your human resource and employee administration tasks. With HashMicro’s HRM Software, calculates salaries, and manages leave and attendance lists, reimbursement processes, timesheets, and other operational activities in just seconds.

    Produce reports accurately and comprehensively like thousands of large companies that have joined HashMicro. To check out more, click here.

      Data comes to use only when you can actually work on it and Excel is one tool that provides a great amount of convenience both when you have to formulate equations of your own or make use of the built-in ones. In this article, you will be learning how you can actually work with these Excel Formulas ad Functions.

      Here is a quick look at the topics that are discussed over here:

      • What is a Formula?
      • Writing Excel Formulas
      • Editing a Formula
      • Copy/ Paste a Formula
      • Hide Formulas in Excel
      • Operator Precedence Excel Formulas
      • What are Functions in Excel?
      • Most Important Functions 

      What is a Formula?

      In general, a formula is a condensed way of representing some information in terms of symbols. In Excel, formulas are expressions that can be entered into the cells of an Excel sheet and their outputs are displayed as a result. 

      Excel formulas can be of the following types:

      Type

      Example

      Description

      Mathematical operators( +, -, *, etc)

      Example: =A1+B1

      Adds the values of A1 and B1

      Values or text

      Example: 100*0.5 multiples 100 times 0.5

      Takes the values and returns the output

      Cell reference

      EXAMPLE: =A1=B1

      Returns TRUE or FALSE by comparing A1 and B1

      Worksheet functions

      EXAMPLE: =SUM(A1: B1)

      Returns the output by adding values present in A1 and B1

      Writing Excel Formulas:

      In order to write a formula to an Excel sheet cell, you can do as follows:

      • Select the cell where you want the result to be displayed
      • Type a “=” sign initially to let Excel know that you are going to enter a formula in that cell
      • After that, you can either type the cell addresses or specify the values that you intend to calculate
      • For example, if you want to add the values of two cells, you can type in the cell address as follows:

      enter formula-Excel Formulas-Edureka

      • You can also select the cells whose sum you want to calculate by selecting all the required cells while pressing down the Ctrl key:

      enter formula-Excel Formulas-Edureka

      Editing a Formula:

      In case you want to edit some previously entered formula, simply select the cell that contains the target formula and in the formula bar you can make the desired changes. In the previous example, I have calculated the Sum of A1 and A2. Now, I will edit the same and change the formula to calculate the product of the values present in these two cells:

      Editing Formula in Excel-Edureka

      Once this is done, press Enter to see the desired output.

      Copy or Paste a Formula:

      Excel comes in really handy when you have to copy/ paste formulas. Whenever you copy a formula, Excel automatically takes care of the cell references that are required at that position. This is done through a system called as Relative Cell Addresses.

      To copy a formula, select the cell that holds the original formula and then drag it till that cell which requires a copy of that formula as follows:

      Copy formula1 Exel-Edureka

      Copy formula2 Exel-Edureka

      As you can see in the image, the formula is written originally in A3 and then I have dragged it down along B3 and C3 to calculate the sum of B1, B2 and C1, C2 without exclusively writing down the cell addresses.

      In case I change the values of any of the cells, the output will be updated automatically by Excel in accordance with the Relative Cell Addresses, Absolute Cell Addresses or Mixed Cell Addresses.

      Hide Formulas in Excel:

      In case you want to hide some formula from an excel sheet, you can do it as follows:

      • Select the cells whose formula you intend to hide
      • Open the Font window and select the Protection pane
      • Check the Hidden option and click on OK
      • Then, from the ribbon tab, select Review
      • Click on Protect sheet (Formulas will not work if you do not do this)
      • Excel will ask you to enter a password in order to unhide the formulas for future use

      Operator Precedence of Excel Formulas:

      Excel formulas follow the BODMAS (Brackets Order Division Multiplication Addition Subtraction) rules. If you have a formula that contains brackets, the expression within the brackets will be solved before any other part of the complete formula. Take a look at the image below:

      Operator Precedence Excel-Edureka

      As you can see in the above example, I have a formula that consists of a bracket. So in accordance with the BODMAS rules, Excel will first find the difference between A2 and B1 and then it adds the result with A1.

      What are ‘Functions’ in Excel?

      In general, a function defines a formula that is executed in some given order. Excel provides a huge number of built-in functions that can be used in order to calculate the result of various formulas.

      Formulas in Excel are divided into the following categories:

      Catagory Important Formulas

      Date & Time

      DATE, DAY, MONTH, HOUR, etc

      Financial

      ACCINT, ACCINTM, DOLLARDE, INTRAATE, etc

      Math & Trig

      SUM, SUMIF, PRODUCT, SIN, COS, etc

      Statistical

      AVERAGE, COUNT, COUNTIF, MAX, MIN, etc

      Lookup & Reference

      COLUMN, HLOOKUP, ROW, VLOOKUP, CHOOSE, etc

      Database

      DAVERAGE, DCOUNT, DMIN, DMAX, etc

      Text

      BAHTTEXT, DOLLAR, LOWER, UPPER, etc

      Logical

      AND, OR, NOT, IF, TRUE, FALSE, etc

      Information

      INFO, ERROR.TYPE, TYPE, ISERROR, etc

      Engineering

      COMPLEX, CONVERT, DELTA, OCT2BIN, etc

      Cube

      CUBESET, CUBENUMBER, CUBEVALUE, etc

      Compatibility

      PERCENTILE, RANK, VAR, MODE, etc

      Web

      ENCODEURL, FILTERXML, WEBSERVICE

      Now, let us check out how to make use of some of the most important and commonly used Excel Formulas.

      Most Important Excel Functions:

      Here are some of the most important Excel functions along with their descriptions and examples.

       DATE:

      One of the most important and widely used Date function in Excel is the DATE function. The syntax of it is as follows:

      DATE(year, month, day)

      This function returns a number that represents the given date in the MS Excel date-time format. The DATE function can be used as follows:

      EXAMPLE:

      1. =DATE(2019,11,7)
      2. =DATE(2019,11,7)-7 (returns the current date – seven days)

      Date example-Edureka

      Date excel-Edureka

      DAY:

      This function returns the day value of the month (1-31). The syntax of it is as follows:

      DAY(serial_number)

      Here, serial_number is the date whose day you want to retrieve. It can be given in any manner such as the result of some other function, supplied by the DATE function, or a cell reference.

      EXAMPLE:

      1. =DAY(A7)
      2. =DAY(TODAY())
      3. =DAY(DATE(2019, 11,8))

      Day1-Excel Formulas-Edureka

      Day2-Excel formulas-Edureka

      day3-edureka

      MONTH:

      Just like the DAY function, Excel provides another function i.e the MONTH function to retrieve the month from a specific date. The syntax is as follows:

      MONTH(serial_number)

      EXAMPLE:

      1. =MONTH(TODAY())
      2. =MONTH(DATE(2019, 11,8))

      Month function Excel-Excel functions-Edureka

      Month function2 Excel-Excel functions-Edureka

      Percentage:

      As we all know, Percentage is the ratio calculated as a fraction of 100. It can be denoted as follows:

      Percentage = (Part/ Whole) x 100

      In Excel, you can calculate the percentage of any desired values. For example, if you have the part and whole values present in A1 and A2 and you want to calculate the percentage, you can do it as follows:

      • Select the cell where you want to display the result
      • Type “=” sign
      • Then, type in the formula as A1/ A2 and hit Enter
      • From the home tab numbers group, select the “%” symbol

      Percentage Excel Formulas-Edureka

      IF:

      The IF statement is a conditional statement that returns True when the specified condition is satisfied and Flase when the condition is not. Excel provides a built-in “IF” function that serves this purpose. Its syntax is as follows:

      IF(logical_test, value_if_true, value_if_false)

      Here, logical_test is the condition that is to be checked

      EXAMPLE:

      • Enter the values to be compared
      • Select the cell that will display the output
      • Type in the Formula Bar “=IF(A1=A2, “Yes”, “No”)” and hit enter

      IF Excel_edureka

      VLOOKUP:

      This function is used in order to look up and fetch some particular data from a column from an Excel sheet. The “V” in VLOOKUP stands for vertical lookup. It is one of the most important and widely used formulas in Excel and in order to use this function, the table must be sorted in ascending order. The syntax of this function is as follows:

      VLOOKUP(lookup_value, table_array, col_index, num_range, lookup)  

      where,

      lookup_value is the value to be searched

      table_array is the table that is to be searched

      col_index is the column from which the value is to be retrieved

      range_lookup (optional) returns TRUE for approx. match and FALSE for an exact match

      EXAMPLE:

      VLOOKUP excel-Edureka

      As you can see in the image, the value that I have specified is 2 and the table range is between A1 and D4. I want to fetch the name of the employee, therefore I have given the column value as 2 and since I want it to be an exact match, I used False for range lookup.

      Income Tax:

      Suppose you want to calculate the income tax of a person whose total salary is $300. You will need to calculate the income tax as follows:

      • List down the Total Salary, Salary Deductions, Taxable Income and the percentage of Tax on Income
      • Specify the values of Total Salary, Salary Deductions
      • Then calculate the Taxable Income by finding the difference between Total Salary and Salary Deductions
      • Finally, calculate the Tax Amount

      Income tax formula excel-Edureka

      Income tax-Edureka

      SUM:

      The SUM function in Excel calculates the result by adding all the specified values in Excel. The syntax of this function is as follows:

      SUM(number1, number2, …)

      Adds all the numbers that are specified as a parameter to it.

      EXAMPLE:

      In case you want to calculate the sum of the amount you spent in purchasing vegetables, list down all the prices and then use the SUM formula as follows:

      SUM -Edureka

      Compound Interest:

      To calculate compound interest, you can make use of one of the Excel Formulas called FV. This function will return the future value of an investment on the basis of periodic, constant interest rate and payments. The syntax of this function is as follows:

      FV(rate, nper, pmt, pv, type)

      In order to calculate the rate, you will need to divide the annual rate by the number of periods i.e annual rate/ periods. No. of periods or nper is calculated by multiplying the term (no. of years) with the periods i.e term * periods. pmt stands for periodic payment and can be any value including zero.

      Consider the following example:

      compund interest excel-edureka

      In the above example, I have calculated the Compound Interest for $500 at a rate of 10% for 5 years and assuming that the periodic payment value is 0. Please note that I have used -B1 meaning, $500 has been taken from me.

      Average:

      The average, as we all know, depicts the median value of a number of values. In Excel, the average can be easily calculated using the built-in function called “AVERAGE”. The syntax of this function is as follows:

      AVERAGE(number1, number2, …)

      EXAMPLE:

      In case you want to calculate the average marks attained by students in all the exams, you can simply create a table and then use the AVERAGE formula to calculate the average marks attained by each student.

      Average Excel-Edureka

      In the above example, I have calculated the average marks for two students in two exams. In case you have more than two values whose average needs to be determined, you just have to specify the range of cells wherein the values are present. For example:

      Average excel 2-edureka

      COUNT:

      The count function in Excel will count the number of cells containing numbers in a given range. The syntax of this function is as follows:

      COUNT(value1, value2, …)

      EXAMPLE:

      In case I want to calculate the number of cells holding numbers from the table I created in the previous example, I will simply have to select the cell wherein I want to display the result and then make use of the COUNT function as follows:

      Count excel formulas-edureka

      ROUND:

      In order to round off values to some specific decimal places, you can make use of the ROUND function. This function will return a number by rounding it off to the specified number of decimal places. The syntax of this function is as follows:

      ROUND(number, num_digits)

      EXAMPLE:

      ROUND-Excel Formulas-Edureka

      Finding Grade:

      In order to find grades, you will have to make use of nested IF statements in Excel. For example, in the Average example, I had calculated the average marks scored by students in the tests. Now, to find the Grades attained by these students, I will have to create a nested IF function as follows:

      Grade-Excel Formulas-Edureka

      As you can see, the average marks are present in column G. To calculate the grade, I have used a nested IF formula. The code is as follows:

      =IF(G19>90,”A”,(IF(G19>75,”B”,IF(G19>60,”C”,IF(G19>40,”D”,”F”)))))

      After doing this, you will just have to copy the formula to all the cells where you want to display the grades.

      RANK:

      In case you want to determine the Rank attained by the students of a class, you can make use of one of the built-in Excel Formulas i.e RANK. This function will return the Rank for a specified range by comparing a given range in the ascending or in the descending order. The syntax of this function is as follows:

      RANK(ref, number, order)

      EXAMPLE:

      Rank-Edureka

      As you can see, in the above example, I have calculated the Rank of the students using the Rank function. Here, the first parameter is the average marks attained by each student and the array is the average attained by all other students of the class. I have not specified any order, therefore, the output will be determined in the descending order. For ascending order ranks, you will have to specify any nonzero value.

      COUNTIF:

      In order to count the cells based on some given condition, you can use one of the built-in Excel Formulas called “COUNTIF”. This function will return the number of cells that satisfy some condition in a given range. The syntax of this function is as follows:

      COUNTIF(range, criteria)

      EXAMPLE:

      countif excel formulas-Edureka

      As you can see, in the above example, I have found the number of cells having values that are greater than 80. You can also give some text value to the criteria parameter.

      INDEX:

      The INDEX function returns a value or cell reference at some particular position in a specified range. The syntax of this function is as follows:

      INDEX(array, row_num, column_num) or

      INDEX(reference, row_num, column_num, area_num)

      The index function works as follows for the Array form:

      • If both row number and column number are supplied, it returns the value that is present at the intersection cell
      • If the row value is set to zero, it will return the values present in the entire column in the specified range
      • If the column value is set to zero, it will return the values present in the entire row in the specified range

      The index function works as follows for the Reference form:

      • Returns the reference of the cell where the row and the column values intersect
      • The area_num will indicate which range is to be used in case multiple ranges have been supplied

      EXAMPLE:

      Index array-Excel formulas-Edureka

      As you can see, in the above example, I have used the INDEX function to determine the value present in the 2nd row and 4th column for the range of cells between A18 to G20.

      Similarly, you can also use the INDEX function by specifying multiple references as follows:

      Index reference- Edureka

      This brings us to the end of this article on Excel Formulas and Functions. I hope you are clear with all that has been shared with you. Make sure you practice as much as possible and revert your experience.  

      Got a question for us? Please mention it in the comments section of this “Excel Formulas and Functions” blog and we will get back to you as soon as possible.

      To get in-depth knowledge on any trending technologies along with its various applications, you can enroll for live Edureka MS Excel Online training with 24/7 support and lifetime access.

      The Excel Formulas Ultimate Guide 

      Introduction to Excel Formulas

      In this guide, we are going to cover everything you need to know about Excel Formulas. Learning how to create a formula in Excel is the building block to the exciting journey to become an Excel Expert. So, let’s get started!

      What is an Excel Formula?

      Excel Formulas are often referred to as Excel Functions and it’s no big deal but there is a difference, a function is a piece of code that executes a predefined calculation, and a formula is an equation created by the user.

      A formula is an expression that operates on values in a cell or range of cells. An example of a formula looks like this: = A2 + A3 + A4 + A5. This formula will result in the sum of the range of values from cell A2 to cell A5.

      A function is a predetermined formula in Excel. It shows calculations in a particular order defined by its parameters. An example of a function is =SUM (A2, A5). This function will also provide the addition of values in the range of cells from A2 to A5 but here instead of specifying each cell address we are using the SUM function.

      How To Write Excel Formulas

      Let’s look at how to write a formula on MS Excel. To begin with, a formula always starts with a ‘+’ or ‘=’ sign, if you start writing the formula without any of these two signs, Excel will treat the value in that cell as text and will not perform any function.

      In the screenshot below, you need to calculate the total sales amount by multiplying quantity sold with unit price. Select cell D2, type the formula ‘=B2*C2’ and press Enter. The result will display on cell D2.

      Apply A Formula To An Entire Column Or Range

      To copy a formula to adjacent cells, you can do the following:

      1. Select the cell with the formula and the adjacent cells you want to fill, then drag the fill handle.

      1. Select the cell with the formula and the adjacent cells you want to fill, then press Ctrl+D to fill the formula down in a column, or Ctrl+R to fill the formula to the right in a row.
      2. Select the cell with the formula and the adjacent cells you want to fill, then Click Home > Fill, and choose either Down, Right, Up, or Left.

      How to Copy A Formula And Paste It

      Excel allows you to copy the formula entered in a cell and paste it on to another cell, which can save both time and effort. To copy paste a formula:

      1. Select the cell whose formula you wish to copy
      2. Press Ctrl + C to copy the content
      3. Select the cell or cells where you wish to paste the formula. The copied cells will now have a dashed box around them.
      4. Press Alt + E + S to open the paste special box and select ‘Formula’ or Press “F’ to paste the formula.

      1. The formula will be pasted into the selected cells.

      Basic Excel Formulas

      Let’s start off with simple Excel Formulas. In the screenshot below, there are two columns containing numbers and we would like to use different operators like addition, subtraction, multiplication, and division on those to get different results. Excel uses standard operators for formulas, such as a plus sign for addition (+), a minus sign for subtraction (-), an asterisk for multiplication (*), a forward slash for division (/).

      Excel Formulas
      • Addition– To add values in the two columns, simply type the formula =A2+B2 on cell C2 and then copy paste the same on the cells below.
      • Subtraction – To subtract values in Column B from Column A, simply type the formula =B2-A2 on cell C2 and then copy paste the same on the cells below.
      • Multiplication – To multiply values in the two columns, simply type the formula =A2*B2 on cell C2 and then copy paste the same on the cells below.
      • Division – To divide values in Column a by values in Column B, simply type the formula =A2/B2 on cell C2 and then copy paste the same on the cells below.

      We can also calculate the percentage using Excel Formulas. In the image below, we have sales in Year 1 and Year 2 and we would like to know the % growth in sales from Year 1 to Year 2.

      To do that, select cell C2 and type the formula = (B2 – A2)/B2*100

      Basic Excel Functions

      A function is a predefined formula that performs calculations using specific values in a particular order. Excel includes many common functions that can be useful for quickly finding the sum, average, count, maximum value, and minimum value for a range of cells. a function must be written a specific way, which is called the syntax.

      The basic syntax for a function is an equals sign (=), the function name, and one or more arguments. A Function is generally comprised of two components:

      1) A function name -The name of a function indicates the type of math Excel will perform.

      2) An argument – It is the values that a function uses to perform operations or calculations. The type of argument a function uses is specific to the function. Common arguments that are used within functions include numbers, text, cell references, and names

      Let’s look at some common Excel Functions:

      SUM Function

      The SUM formula adds 2 or more numbers together. You can use cell references as well in this formula.

      Syntax: =SUM(number1, [number2], …)

      Example: =SUM(A2:A8) or SUM(A2:A7, A9, A12:A15)

      AUTOSUM Function

      The AutoSum command allows you to automatically insert the most common functions into your formula, including SUM, AVERAGE, COUNT, MIN, and MAX.

      Select the cell where you want the formula, Go to Home > Click on AutoSum > From the dropdown click on “Sum” > Enter.

      Excel Formulas

      COUNT Function

      If you wish to how many cells are there in a selected range containing numeric values, you can use the function COUNT. It will only count cells that contain either numbers or dates.

      Syntax: =COUNT(value1, [value2], …)

      In the example below, you can see that the function skips cell A6 (as it is empty) and cell A11 (as it contains text) and gives you the output 9.

      COUNTA Function

      Counts the number of non-empty cells in a range. It will include cells that have any character in them and only exclude blank cells.

      Syntax: =COUNTA(value1, [value2], …)

      In the example below, you can see that only cell A6 is not included, all other 10 cells are

      counted.

      AVERAGE Function

      This function calculates the average of all the values or range of cells included in the parentheses.

      Syntax: =AVERAGE(value1, [value2], …)

      ROUND Function

      This function rounds off a decimal value to the specified number of decimal points. Using the ROUND function, you can round to the right or left of the decimal point.

      Syntax: =ROUND(number,num_digit)

      This function contains 2 arguments. First, is the number or cell reference containing the number you want to round off and second, number of digits to which the given number should be rounded.

      • If the num-digit is greater than 0, then the value will be rounded to the right of the decimal point.
      • If the num-digit is less than 0, then the value will be rounded to the left of the decimal point.
      • If the num-digit equal to 0, then the value will be rounded to the nearest integer.

      MAX Function

       This function returns the highest value in a range of cells provided in the formula.

      Syntax: =MAX(value1, [value2], …)

      In the example below, we are trying to calculate the maximum value in the dataset from A2 to A13. The formula used is =MAX(A2: A13) and it returns the maximum value i.e. 96.251

      MIN Function

      This function returns the lowest value in a range of cells provided in the formula.

      Syntax: =MIN(value1, [value2], …)

      In the example below, we are trying to calculate the minimum value in the dataset from A2 to A13. The formula used is =MIN(A2: A13) and it returns the minimum value i.e. 24.178

      TRIM Function

       This function removes all extra spaces in the selected cell. It is very helpful while data cleaning to correct formatting and do further analysis of the data.

      Syntax: =trim(cell1)

      In the example below, you can see the name in cell A2 contains an extra space, in the beginning, =TRIM(A2) would return “Steve Peterson” with no spaces in a new cell.

      Excel Formulas

      Advanced Excel Formulas

      Here is a list of Excel Formulas that we would feel comfortable referring to as the top 10 Excel Formulas. These formulas can be used for basic problems or highly advanced problems as well, though advanced excel formulas are nothing but a more creative way of using the formulas. Sure, there are legitimate Advanced Excel Formulas such as Array Formulas but in general the more advanced the problem, the more creative you need to be with Formulas.

      Currently, Excel has well over 400 formulas and functions but most of them are not that useful for corporate professionals so here is a list that we believe contains the 10 best Excel formulas.

      Starting with number 10 – it’s the IFERROR formula

      1. IFERROR Function –
      2. SUBTOTAL Function –
      3. SMALL/LARGE Function –
      4. LEFT Function –
      5. RIGHT Function –
      6. SUMIF Function –
      7. MATCH Function –
      8. INDEX Function –
      9. VLOOKUP Function –
      10. IF Function –

      IFERROR Function –

      You ever have presented a worksheet that you thought was perfect but were surprised with a “#DIV /0!” error or an “#N/A” error message (See the screenshot below), then this function is perfect for you. Excel has an “IFERROR” function that can automatically replace error messages with a message of your choice.

      Excel Formulas

      The IFERROR function has two parameters, the first parameter is typically a formula and the second parameter, value_if_error, is what you want Excel to do if value, the first parameter, results in an error. Value_if_error can be a number, a formula, a reference to another cell, or it can be text if the text is contained in quotes.

      That means you can put formula or an expression in the first part of the IFERROR function and Excel will show the result of that formula unless the formula results in an error. If the formula results in an error, Excel will follow the instructions in the second half of the IFERROR formula.

      This function cleans up your sheet and it will visually make things look a lot better and more professional.

      Let’s see an example to make the concept clearer.

      Excel Formulas

      In this example, we have two lists – one contains the names of all people (Column A) and the second list contains the name of award winners only (Column F).

      We have used a simple Vlookup function to see if the name is an award winner. The Vlookup function (it is covered later in details) will search the list on the right, if the name is present in the award winner list, it will show the name or else it will show an error.

      The N/A error makes the worksheet look dirty and unprofessional. Now we will add iferror function here to remedy the same.

      =IFERROR(VLOOKUP(A5,$F$5:$F$10,1,0),””)

      Excel Formulas

      IFERROR function will recognize the error and instead of displaying the error message will display the text, say a blank, or you can show any other message that you desire.

      IFERROR is a great way to replace Excel-generated error messages with explanations, additional information, or simply leave the cell blank.

      SUBTOTAL Function –

      The SUBTOTAL function returns the aggregate value of the data provided. You can select any of the 11 functions that SUBTOTAL can calculate like SUM, COUNT, AVERAGE, MAX, MIN, etc. SUBTOTAL Function can also include or exclude values in hidden rows based on the input provided in the function.

      Excel’s traditional formulas do not work on filtered data since the function will be performed on both the hidden and visible cells. To perform functions on filtered data one must use the subtotal function.

      Syntax: SUBTOTAL(function_num,ref1,…)The first parameter is the name of the function to be used within the subtotal function and the second parameter is the range of cells that should be subtotalled

      The list of functions that can be used in given below. If the data is filtered manually, the numbers from 1 – 11 will include the hidden cells and number from 101 – 111 will exclude them.

      Excel Formulas

      Let’s understand this function with an example.

      Excel Formulas

      Here we have a list of name of person, with their country and the total sales they have achieved in Q1. We will use the subtotal function to calculate the total sales in cell C26. We will also select the function in such a way that it works on filtered data as well.

      The formula will be =SUBTOTAL (109,C5:C24)

      Excel Formulas

      This will display the total sales. Now, we filter the data to see the sales made by people in US only. You will see the value in the cell containing the SUBTOTAL function updates and it filters the dataset and displays the total sales made by US only.

      Excel Formulas

      Here is another benefit of using a SUBTOTAL function:

      When you’re creating an information summary, especially like a profit and loss statement where you’ve got lots of subtotals, what you can do is you can use the subtotal formula, and then at the end, you can put a big old formula right at the end and it will just ignore your subtotal.

      Here we have 4 different tables for sales in 4 different countries.

      Excel Formulas

      We can add individual SUBTOTAL functions for each table and then a grand total function in the end. The SUBTOTAL function in the end will ignore all the other SUBTOTAL functions above it and will provide you the total sales.

      Excel Formulas

      SMALL/LARGE Function –

      Here, we have two formulas and they’re two sides of the same coin – the small formula and the large function. So, imagine you’ve got a list of, let’s say, sales data or cost data and what SMALL Function will do is provide you with the smallest value in the data set. You can also specify if you want the first smallest or second smallest. Similarly, with the large formula, you can extract the largest value in this dataset, the second largest and so on.

      Syntax: =LARGE(array,k); SMALL(array,k)

      The first parameter is the range of data for which you want to determine the k-th largest value and the second is the position (from the largest/smallest) in the cell range of the value to return.

      Excel Formulas

      Now, in the dataset above if you want to know the person who has achieved the highest sales, you can use the LARGE function – =LARGE($C$4:$C$23,E5). We have used E5 for the second parameter as it contains the value 1. If we copy paste the formula in the cells below, you will get the 1st, 2nd, 3rd, 4th and 5th largest value in the dataset. Similarly, we have used the function SMALL to get the value for lowest sales.

      Excel Formulas

      LEFT & RIGHT Function –

      A lot of people work on text manipulation with functions like text to columns or even do it manually but being able to extract the exact number of characters that you want from the left or the right side of a string is absolutely invaluable. This is what the LEFT and RIGHT function does – it extracts a given number of characters from the left/right side of a supplied text string.

      Syntax: =LEFT (text, [num_chars]) and RIGHT(text,num_chars)

      The first parameter is the text string containing the characters you want to extract and the second parameter specifies how many characters you want LEFT/RIGHT to extract; 1 if omitted.

      In the example given below, we have full names of people and we would like to extract the first name. We can surely do it using text to column, but using the LEFT function will give us a more automated result. So, let’s see how it can be done.

      Excel Formulas

      When you look at the data, you can see that a character is common in all names and it separates the first name and last name – it is a “space”. If we can find out the position of space in each cell, we can easily extract the first name.

      Does Excel have a formula for this as well? Off course! SEARCH is the function that will come to your rescue.

      SEARCH function provides the position of the first occurrence of the specified character.SEARCH (find_text, within_text, start_num) has three parameters – first is the character you want to find, second is the text in which you want to search and third is the character number in Within_text, counting from the left, at which you want to start searching. If omitted, 1 is used.

      So, going back to our example, we use the formula SEARCH to find the position of the character – space in Column A. We will need to subtract “1” from the position to get the desired result. The formula will be =SEARCH (“ “,A5)-1 and copy paste it down.

      Excel Formulas

      Now we will use the LEFT Function to get the first name. =LEFT(A5,B5) – A5 contains the full name and B5 contains the number of characters from left that contains the first name.

      Excel Formulas

      SUMIF(S) Function –

      This function is used to conditionally sum up a range of values. It returns the summation of selected range of cells if it satisfies the given criteria. It is like the SUM function because it adds stuff up. But, it allows us to specify conditions for what to include in the result. Criteria can be applied to dates, numbers, and text using logical operators (>,<,<>,=) and wildcards (*,?) for partial matching. For example, SUMIF function can add up the quantity column, but only include those rows where the SKU is equal to, say A200.

      Syntax: =SUMIF (range, criteria, [sum_range])

      The first argument is the range of values to be tested against the given criteria, second argument is the condition to be tested against each of the values and the last argument is the range of numeric values if the criteria is satisfied. The last argument is optional and if it is omitted then values from the range argument are used instead.

      SUMIF can handle one criterion only. For multiple conditional summing – we can use SUMIFS.

      The Syntax of this function is =SUMIFS( sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], … ); where sum_range is the range of values to add, criteria_range1 is the range that contains the values to evaluate and criteria1 is the value that criteria_range1 must meet to be included in the sum. You can add additional pairs of criteria range and criteria if further conditions are to be met.

      It is advisable to use SUMIFS even if you have only one criteria to evaluate as it will help you to easily modify the function if additional conditions come up over time.

      Let’s dive into an example. Below we have data containing name, country in which sales were made, and the different quarterly sales data.

      Excel Formulas

      Using SUMIFS function, we would like to calculate the sum of sales in Q1 for the different countries. Now, to get the total sales in UK in Q1, we select the cell I4 and type the formula =SUMIFS(C4:C23,B4:B23,H4). We will then copy paste the formula below to get the result for each country.

      INDEX & MATCH Function –

      The MATCH function is used to search for an item and return the relative position of that item in a horizontal or vertical list.

      Syntax: MATCH(lookup_value, lookup_array, [match_type])

      The first argument is the value you want to look up, second is the range of cells being searched and the last argument, which is optimal, tells the MATCH function what sort of lookup to do.

      The three acceptable values for match type are 1, 0 and -1. The default value for this argument is 1.

      • If the input is 1. MATCH finds the largest value that is less than or equal to the lookup_value. The values in the lookup_array argument must be placed in ascending order.
      • If the input is 0. MATCH finds the first value that is exactly equal to the lookup_value. The values in the lookup_array argument can be in any order.
      • If the input is -1. MATCH finds the smallest value that is greater than or equal to the lookup_value. The values in the lookup_array argument must be placed in descending order.

      For example, if the range A1:A5 contains the values Evelyn Greer, Randy Mueller, Maverick Cooper, Eesha Bevan and Nancie Velez, then the formula =MATCH(“Maverick Cooper”,A1:A5,0) returns the number 3, because Maverick Cooper is the third item in the range.

      Excel Formulas

      INDEX

      function is used to return the value in the cell based on the row number and column number provided. It can do two-way lookup: where we are retrieving an item from a table at the intersection of a row header and column header.

      Syntax: =INDEX (array, row_num, [col_num])

      The first argument is the range/array containing the values you want to look up, second is the row number; the row number from which the value is to be fetched (if omitted, Column_num is required) and third is the column number from which the value is to be fetched.

      For Example: =INDEX(A1:B6,3,2)

      This function will look in the range A1 to B6, and It will return whatever value is housed in Row 3 and Column 2. The answer here will be “India” in cell B3.

      Excel Formulas

      As you have seen, Index and Match on their own are effective and powerful formulas but together they are absolutely incredible. Let’s look at it.

      Remember that you must tell INDEX Function which row and column number to go to. In the examples above, we hard coded it to a specific number. But instead, we can drop this MATCH function into that space in our formula and make the formula dynamic.

      Let’s dive into an example.

      Excel Formulas

      Here we have two dropdowns in cell H9 and H11 containing names and quarters. What we want is that, once we select a name in cell H9 and a quarter in cell H11, the corresponding sales for the specified person and quarter appears in cell H14. We will be using INDEX & MATCH to accomplish this.The formula will be: =INDEX($A$3:$F$23,MATCH(H9,$A$3:$A$23,0),MATCH(H11,$A$3:$F$3,0))

      Excel Formulas

      This function will take A3:F23 as the range and the first match will use the name mentioned in cell H9 (here, Eesha Bevan) and obtain the position of it in the Name column (A3:A23). This becomes the row number from which the data needs to be taken. Similarly, the second match will use the quarter mentioned in cell H11 (here, Q2 Total Sales) and obtain the position of it in the Quarter’s row (A3:F3). This becomes the column number from which the data needs to be taken. Now, based on the row and column number provided by the Match functions, index function will now provide the required value, i.e. 18,250.

      This formula is now dynamic, i.e. if you change the name or quarter in cells H9 or H11 the formula will still work and provide the correct value.

      VLOOKUP Function –

      This function is not as flexible or powerful as the combination of Index and Match that we talked about just now, however, the reason this is number 2 on the list is simply because it’s quick, flexible, easy to implement and doesn’t put a whole lot of strain on your CPU while calculating.

      Vlookup is a vertical lookup function that tries to match a value in the first column of a lookup table and then return an item from a subsequent column.

      Syntax: VLOOKUP ( lookup_value , table_array , col_index_num , [range_lookup] )

      • Lookup_value:  Is the value to be found in the first column of the table, and can be a value, a reference, or a text string.
      • Table_array: This is the lookup table and the first column in this range must contain the lookup_value.
      • Col_index_num: This is the column number in table_array from which the matching value should be returned.
      • Range_lookup: is a logical value that tells you the type of lookup you want to do. To find the closest match in the first column (sorted in ascending order) use TRUE; to find an exact match use FALSE (if omitted, TRUE is used as default).

      Excel Formulas

      In the example above, the first table contains name, country and quarterly sales and the second table contains the country name and nationality.

      Now, we have an empty column (Column G) in the first table and we want to use Vlookup to extract the nationality of a person based on the country name mentioned in Column B.

      Excel Formulas

      The function will be: =VLOOKUP(B4,$K$3:$L$7,2,0). This function will lookup the value in cell B4 (i.e. UK) in the first column of the range K3:L7 and will return the corresponding value from the second column of the range i.e. British.

      IF Function

      So, why is this formula so important? Simply because this function gives you the flexibility to control your outcomes. When you can understand and model your outcomes, you can create logic and thus create a business model.

      IF function is a logical test that evaluates a condition and returns a value if the condition is met, and another value if it is not met.

      Syntax: =IF(logical_test,[value_if_true],[value_if_false])

      • Logical test – It is condition that needs to be evaluated. The logical operators that can be used are = (equal to), > (greater than), >= (greater than or equal to), < (less than), <= (less than or equal to) and <> (not equal to).
      • Value_if_true – Is the value that is returned if Logical_test is TRUE. If omitted, TRUE is returned.
      • Value_if_false – Is the value that is returned if Logical_test is FALSE. If omitted, FALSE is returned.

      You can also use OR and AND functions along with IF to test multiple conditions. Example: =IF(AND(logical_test1, logical_test2),[value_if_true],[value_if_false]).

      IF functions can also be nested, the FALSE value being replaced by another IF function to make a further test. Example:  =IF(logical_test,[value_if_true,IF(logical_test,[value_if_true],[value_if_false])).

      Let’s go through the IF function with an example to discuss it in detail.

      Excel Formulas

      In the screenshot above, we have a table that contains the name, country and quarterly sales achieved by different persons. Now, we want to see which persons have been promoted based on the criteria that the total sales achieved by that person is greater than £250,000. In the column for Promotions (Column G), we want the formula to test whether the total sales are greater than £250,000, if it is true then we want the text “Promoted” to be displayed, else a blank.

      The formula to be used will be: =IF(C4+D4+E4+F4>250000,”Promoted”,””)

      Excel Formulas

      So, this completes our Top 10 Excel formulas. As we have already mentioned there are 400+ Excel formulas available and these 10 best Excel formulas will cover about 70% to 75% of your needs, but if you want to go a little bit more we have a book about the 27 best Excel formulas that will cover pretty much all of your formula requirements. The best thing about this is – it contains info-graphics and is completely free!

      Excel Formulas Not Working: Troubleshooting Formulas

      Continuing our series on Excel Formulas, this part is all about troubleshooting Excel Formulas. Let’s look at the major issues.

      How To Refresh Excel Formulas

      If Your Excel Formulas are Not Calculating, then start off by refreshing them. Do either of the following methods to refresh formulas:

      • Press F2 and then Enter to refresh the formula of a particular cell.
      • Press Shift + F9 to recalculate all formulas in the active sheet or you can go to the Formula Tab > Under Calculation Group > Select “Calculate Sheet”.

      Excel Formulas
      • Press F9 to recalculate all formulas in the workbook or you can go to the Formula Tab > Under Calculation Group > Select “Calculate Now”.

      Excel Formulas
      • Press Ctrl + Alt + F9 to recalculate formulas in open worksheets of all open workbooks.
      • Press Ctrl + Alt + Shift + F9 to recalculate formulas in all sheets in all open workbooks.

      How To Show Formulas In Excel

      Usually when you type a formula in Excel and press Enter, Excel displays a calculated value in the cell. If you wish to see the formula that you have typed in the cell, you can do either of the following methods:

      • Go to Formula Tab > Under Formula Auditingsection > Click on “Show Formulas”.

      Excel Formulas
      • Press Ctrl + ` to show formulas in the cell.

      Excel Formulas

      How To Audit Your Formula

      Formula Auditing is used in Excel to display the relationship between formulas and cells. There are different ways in which you can do that. Let’s cover each one in detail:

      • Trace Precedents

      Trace Precedents shows all the cells that affect the formula in the selected cell. When you click this button, Excel draws arrows to the cells that are referred to in the formula inside the selected cell.

      Excel Formulas

      In the example below, we have a cost table that contains totals and grand total. We will now use trace precedents to check how the cells are linked to each other.Click on the cell containing grand total (Cell C15) > Go to Formula Tab > Click on “Trace Precedents”.

      Excel Formulas

      To see the next level of precedents, click the Trace Precedents command again.

      Excel Formulas

      To remove arrows, simply go to Formula Tab > Click on “Remove Arrows”.

      Excel Formulas
      • Trace Dependents

      Trace Dependents show all the cells that are affected by the formula in the selected cell. When you click this button, Excel draws arrows from the selected cell to the cells that use, or depend on, the results of the formula in the selected cell.

      Excel Formulas

      In the example below, we have a cost table that contains totals and grand total. We will now use trace dependents to check how the cells are linked to each other.Click on the cell containing Property Cost (Cell C3) > Go to Formula Tab > Click on “Trace Dependents”.

      Excel Formulas

      To see the next level of dependents, click the Trace Dependents command again

      Excel Formulas
      • Evaluate Formula

      This function is used to evaluate each part of the formula in the current cell. The Evaluate Formula feature can be quite useful in formulas that nest many functions within them and helps in debugging an error.

      Excel Formulas

      To evaluate the calculation in cell C15 (Grand Total), Click on the cell > Go to Formula Tab > Click on “Evaluate Formula”.

      Excel Formulas

      A dialog box will appear that will enable you to evaluate parts of the formula.

      This will help you to debug an error as it provides you with the value calculated at each step of evaluation done by Excel.

      • Error Checking

      This function is helpful as it is used to understand the nature of an error in a cell and to enable you to trace its precedents.

      Excel Formulas

      To check for the errors shown in the screenshot below, click on cell C18 > Click on Formula Tab > Under Formula Auditing group > Click on “Error Checking”.

      Excel Formulas

      Once you click on Error Checking button, a dialog box will appear. It will describe the reason for the error and will guide you on what to do next. You can either trace the error or ignore the error or go to the formula bar and edit it. You can choose either of these options by clicking on the button shown in the Error Checking Dialog box.

      Excel Formulas

      These top formulas and functions of Excel will surely help and guide you in every step of your Excel Journey.

      Formulas and functions are the bread and butter of Excel. They drive almost everything interesting and useful you will ever do in a spreadsheet. This article introduces the basic concepts you need to know to be proficient with formulas in Excel. More examples here.

      What is a formula?

      A formula in Excel is an expression that returns a specific result. For example:

      =1+2 // returns 3
      

      Basic formula example - 1 + 3 = 3

      =6/3 // returns 2
      

      Basic formula example - 6 / 3 = 2

      Note: all formulas in Excel must begin with an equals sign (=).

      Cell references

      In the examples above, values are «hardcoded». That means results won’t change unless you edit the formula again and change a value manually. Generally, this is considered bad form, because it hides information and makes it harder to maintain a spreadsheet.

      Instead, use cell references so values can be changed at any time. In the screen below, C1 contains the following formula:

      =A1+A2+A3 // returns 9
      

      Formula with cell references

      Notice because we are using cell references for A1, A2, and A3, these values can be changed at any time and C1 will still show an accurate result.

      All formulas return a result

      All formulas in Excel return a result, even when the result is an error. Below a formula is used to calculate percent change. The formula returns a correct result in D2 and D3, but returns a #DIV/0! error in D4, because B4 is empty:

      Formula result can be an error

      There are different ways of handling errors. In this case, you could provide the missing value in B4, or «catch» the error with the IFERROR function and display a more friendly message (or nothing at all).

      Copy and paste formulas

      The beauty of cell references is that they automatically update when a formula is copied to a new location. This means you don’t need to enter the same basic formula again and again. In the screen below, the formula in E1 has been copied to the clipboard with Control + C:

      Formula in E1 copied to clipboard

      Below: formula pasted to cell E2 with Control + V. Notice cell references have changed:

      Formula in E1 pasted to E2

      Same formula pasted to E3. Cell addresses are updated again:

      Formula in E1 pasted to E3

      Relative and absolute references

      The cell references above are called relative references. This means the reference is relative to the cell it lives in.  The formula in E1 above is:

      =B1+C1+D1 // formula in E1
      

      Literally, this means «cell 3 columns left «+ «cell 2 columns left» + «cell 1 column left». That’s why, when the formula is copied down to cell E2, it continues to work in the same way.

      Relative references are extremely useful, but there are times when you don’t want a cell reference to change. A cell reference that won’t change when copied is called an absolute reference. To make a reference absolute, use the dollar symbol ($):

      =A1 // relative reference
      =$A$1 // absolute reference
      

      For example, in the screen below, we want to multiply each value in column D by 10, which is entered in A1. By using an absolute reference for A1, we «lock» that reference so it won’t change when the formula is copied to E2 and E3:

      Absolute reference example

      Here are the final formulas in E1, E2, and E3:

      =D1*$A$1 // formula in E1
      =D2*$A$1 // formula in E2
      =D3*$A$1 // formula in E3
      

      Notice the reference to D1 updates when the formula is copied, but the reference to A1 never changes. Now we can easily change the value in A1, and all three formulas recalculate. Below the value in A1 has changed from 10 to 12:

      Absolute reference example after value in A1 is changed

      This simple example also shows why it doesn’t make sense to hardcode values into a formula. By storing the value in A1 in one place, and referring to A1 with an absolute reference, the value can be changed at any time and all associated formulas will update instantly.

      Tip: you can toggle between relative and absolute syntax with the F4 key.

      How to enter a formula

      To enter a formula:

      1. Select a cell
      2. Enter an equals sign (=)
      3. Type the formula, and press enter.

      Instead of typing cell references, you can point and click, as seen below. Note references are color-coded:

      Entering a formula with point and click references

      All formulas in Excel must begin with an equals sign (=). No equals sign, no formula:

      Forgot to enter an equals sign means no formula, just text

      How to change a formula

      To edit a formula, you have 3 options:

      1. Select the cell, edit in the formula bar
      2. Double-click the cell, edit directly
      3. Select the cell, press F2, edit directly

      No matter which option you use, press Enter to confirm changes when done. If you want to cancel, and leave the formula unchanged, click the Escape key.

      Video: 20 tips for entering formulas

      What is a function?

      Working in Excel, you will hear the words «formula» and «function» used frequently, sometimes interchangeably. They are closely related, but not exactly the same. Technically, a formula is any expression that begins with an equals sign (=).

      A function, on the other hand, is a formula with a special name and purpose. In most cases, functions have names that reflect their intended use. For example, you probably know the SUM function already, which returns the sum of given references:

      =SUM(1,2,3) // returns 6
      =SUM(A1:A3) // returns A1+A2+A3
      

      The AVERAGE function, as you would expect, returns the average of given references:

      =AVERAGE(1,2,3) // returns 2
      

      And the MIN and MAX functions return minimum and maximum values, respectively:

      =MIN(1,2,3) // returns 1
      =MAX(1,2,3) // returns 3
      

      Excel contains hundreds of specific functions. To get started, see 101 Key Excel functions.

      Function arguments

      Most functions require inputs to return a result. These inputs are called «arguments». A function’s arguments appear after the function name, inside parentheses, separated by commas.  All functions require a matching opening and closing parentheses (). The pattern looks like this:

      =FUNCTIONNAME(argument1,argument2,argument3)
      

      For example, the COUNTIF function counts cells that meet criteria, and takes two arguments, range and criteria:

      =COUNTIF(range,criteria) // two arguments
      

      In the screen below, range is A1:A5 and criteria is «red». The formula in C1 is:

      =COUNTIF(A1:A5,"red") // returns 2
      

       COUNTIF requires two arguments, range and criteria

      Video: How to use the COUNTIF function

      Not all arguments are required. Arguments shown in square brackets are optional. For example, the YEARFRAC function returns fractional number of years between a start date and end date and takes 3 arguments:

      =YEARFRAC(start_date,end_date,[basis])
      

      Start_date and end_date are required arguments, basis is an optional argument. See below for an example of how to use YEARFRAC to calculate current age based on birthdate.

      How to enter a function

      If you know the name of the function, just start typing. Here are the steps:

      1. Enter equals sign (=) and start typing. Excel will make a list of matching functions based as you type:

      As you type, Excel will show matching functions

      When you see the function you want in the list, use the arrow keys to select (or just keep typing).

      2. Type the Tab key to accept a function. Excel will complete the function:

      Press Tab to enter selected function

      3. Fill in required arguments:

      Enter required arguments

      4. Press Enter to confirm formula:

      Press Enter to confirm and enter the function

      Combining functions (nesting)

      Many Excel formulas use more than one function, and functions can be «nested» inside each other. For example, below we have a birthdate in B1 and we want to calculate current age in B2:

      Need a formula to calculate current age in B2

      The YEARFRAC function will calculate years with a start date and end date:

      YEARFRAC will calculate years with a start date and end date

      We can use B1 for start date, then use the TODAY function to supply the end date:

      B1 for start date, the TODAY function to supply end date

      When we press Enter to confirm, we get current age based on today’s date:

      =YEARFRAC(B1,TODAY())
      

      YEARFRAC and TODAY functions to calculate current age

      Notice we are using the TODAY function to feed an end date to the YEARFRAC function. In other words, the TODAY function can be nested inside the YEARFRAC function to provide the end date argument. We can take the formula one step further and use the INT function to chop off the decimal value:

      =INT(YEARFRAC(B1,TODAY()))
      

      YEARFRAC and TODAY inside INT

      Here, the original YEARFRAC formula returns 20.4 to the INT function, and the INT function returns a final result of 20.

      Notes:

      1. The current date in images above is February 22, 2019.
      2. Nested IF functions are a classic example of nesting functions. 
      3. The TODAY function is a rare Excel function with no required arguments.

      Key takeaway: The output of any formula or function can be fed directly into another formula or function. 

      Math Operators

      The table below shows the standard math operators available in Excel:

      Symbol Operation Example
      + Addition =2+3=5
      Subtraction =9-2=7
      * Multiplication =6*7=42
      / Division =9/3=3
      ^ Exponentiation =4^2=16
      () Parentheses =(2+4)/3=2

      Logical operators

      Logical operators provide support for comparisons such as «greater than», «less than», etc. The logical operators available in Excel are shown in the table below:

      Operator Meaning Example
      = Equal to =A1=10
      <> Not equal to =A1<>10
      > Greater than =A1>100
      < Less than =A1<100
      >= Greater than or equal to =A1>=75
      <= Less than or equal to =A1<=0

      Video: How to build logical formulas

      Order of operations

      When solving a formula, Excel follows a sequence called «order of operations». First, any expressions in parentheses are evaluated. Next Excel will solve for any exponents. After exponents, Excel will perform multiplication and division, then addition and subtraction. If the formula involves concatenation, this will happen after standard math operations. Finally, Excel will evaluate logical operators, if present.

      1. Parentheses
      2. Exponents
      3. Multiplication and Division
      4. Addition and Subtraction
      5. Concatenation
      6. Logical operators

      Tip: you can use the Evaluate feature to watch Excel solve formulas step-by-step.

      Convert formulas to values

      Sometimes you want to get rid of formulas, and leave only values in their place. The easiest way to do this in Excel is to copy the formula, then paste, using Paste Special > Values. This overwrites the formulas with the values they return. You can use a keyboard shortcut for pasting values, or use the Paste menu on the Home tab on the ribbon.

      Video: Paste Special Shortcuts

      What’s next?

      Below are guides to help you learn more about Excel’s formulas and functions. We also offer online video training.

      • 29 tips for working with formulas and functions (video version here)
      • 500 formula examples with full explanations
      • 101 important Excel functions
      • Guide to all Excel functions (work in progress)
      • Excel formula errors (examples and fixes)
      • Formula criteria — 50 examples
      • Formulas for conditional formatting
      • How to use F9 to debug a formula (video)
      • Excel formula errors and fixes (video)

      Понравилась статья? Поделить с друзьями:
    • What can be done in excel
    • What can a word processing software be used for
    • What calculations can excel do
    • What best excel add in
    • What associations do you have with this word