Enter a formula - Microsoft Support (2024)

Excel for Microsoft 365 for Mac Excel 2021 for Mac Excel 2019 for Mac More...Less

Formulas are equations that perform calculations on values in your sheet. All formulas begin with an equal sign (=). You can create a simple formula by using constant and calculation operator. For example, the formula =5+2*3, multiplies two numbers and then adds a number to the result.

When you want to refer to variables instead of constants, you can use cell values, for example, =A1+A2. If you are working with long columns of data, or data that is located in different parts of a sheet or on another sheet, you can use a range —for example, =SUM(A1:A100)/SUM(B1:B100), which represents the division of the sum of the first hundred numbers in column A by the sum of those numbers in column B. When your formula refers to other cells, any time that you change the data in any of the cells Excel recalculates the results automatically.

You can also create a formula by using a function, a predefined formula that simplifies entering calculations.

Enter a formula - Microsoft Support (1)

Enter a formula - Microsoft Support (2)Equal signs start all formulas.

Enter a formula - Microsoft Support (3)Constants, such as numbers or text values, can be entered directly into a formula.

Enter a formula - Microsoft Support (4)Operators specify the kind of calculation that the formula performs. For example, the ^ (caret) operator raises a number to a power, and the * (asterisk) operator multiplies numbers.

Enter a formula - Microsoft Support (5)Functions are premade formulas that can be used alone, or as part of a longer formula. Each function has a specific argument syntax.

Enter a formula - Microsoft Support (6)Cell values let you to reference an Excel cell, instead of the specific value inside the cell so that the contents of the cell can change without the function that refers to the cell having to change.

Enter a formula that refers to values in other cells

  1. In a sheet that contains columns of numbers, click the cell where you want the formula results to appear.

  2. Type an equal sign =

  3. Click the first cell that you want to include in your calculation.

    Enter a formula - Microsoft Support (7)

  4. Type an operator. An operator is the kind of calculation that the formula performs. For example, the * (asterisk) operator multiplies numbers. In this example, use the / (forward slash) operator to divide. At this point your formula should look like this:

    Enter a formula - Microsoft Support (8)

  5. Click the next cell that you want to include in your calculation. Now your formula should look like this:

    Enter a formula - Microsoft Support (9)

  6. Press RETURN.

    The result of the calculation appears in the cell.

    Enter a formula - Microsoft Support (10)

    Tip:To quickly apply a formula to the next cells down in the column, double-click the fill handle Enter a formula - Microsoft Support (11) on the first cell that contains the formula.

Enter a formula that contains a function

  1. In a sheet that contains a range of numbers, click the empty cell where you want the formula results to appear.

  2. Type an equal sign and a function, for example =MIN. MIN finds the smallest number in a range of cells.

  3. Type an opening parenthesis, select the range of cells that you want to include in the formula, and then type a closing parenthesis.

    Enter a formula - Microsoft Support (12)

  4. Press RETURN.

    In our example, the MIN function returns 11, the smallest number in cells A1 through C4.

Tips

When you enter a formula in a cell, the formula also appears in the formula bar.

Enter a formula - Microsoft Support (13)

Use the shortcuts in the formula bar to help you create formulas:

  • Select Enter a formula - Microsoft Support (14) to check your formula. If there are no errors, the cell will display the result of the formula. If there are errors, you'll see Enter a formula - Microsoft Support (15). Hover over it for an explanation of the problem, or select the drop-down for additional troubleshooting help.

  • Select Enter a formula - Microsoft Support (16) to revert to your previous formula.

  • Enter a formula - Microsoft Support (17)

  • To select a function, use the function list.

    Enter a formula - Microsoft Support (18)

    When you select a function, the Formula Builder opens, with additional information about the function.

    Enter a formula - Microsoft Support (19)

Create a simple formula

Add a list of numbers in a column

Calculation operators and order of operations

List of all functions (by category)

Switch between relative and absolute references

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Enter a formula - Microsoft Support (20)

Microsoft 365 subscription benefits

Enter a formula - Microsoft Support (21)

Microsoft 365 training

Enter a formula - Microsoft Support (22)

Microsoft security

Enter a formula - Microsoft Support (23)

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Enter a formula - Microsoft Support (24)

Ask the Microsoft Community

Enter a formula - Microsoft Support (25)

Microsoft Tech Community

Enter a formula - Microsoft Support (2024)

References

Top Articles
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6423

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.