Create a simple formula - Microsoft Support (2024)

Excel for the web More...Less

You can create a simple formula to add, subtract, multiply, or divide values in your worksheet. Simple formulas always start with an equal sign (=), followed by constants that are numeric values and calculation operators such as plus (+), minus (-), asterisk(*), or forward slash (/) signs.

For example, when you enter the formula =5+2*3, the last two numbers are multiplied and added to the first number to get the result. Following the standard order of mathematical operations, multiplication is performed before addition.

  1. On the worksheet, click the cell where you want to enter the formula.

  2. Type the = (equal sign) followed by the constants and operators you want to use in the calculation.

    You can enter as many constants and operators in a formula as you need, up to 8192 characters.

    Tip:Instead of typing the constants into your formula, you can select the cells (like B12:B15) that contain the values you want to use and enter the operators in between selecting cells.

  3. Press Enter.

    Notes:

    • To quickly add values, you can use AutoSum instead of entering the formula manually (Home tab, Editing group).

    • You can also use a function (like the SUM function) to calculate values in your worksheet.

    • To take it one step further, you can use cell references in a formula instead of the actual values in a simple formula.

Examples

The workbook below shows examples simple formulas. You can change any of the existing formulas, or enter your own formulas to learn how they work and see their results.

Data

2

5

Formula

Description

Result

'=A2+A3

Adds the values in cells A1 and A2

=A2+A3

'=A2-A3

Subtracts the value in cell A2 from the value in A1

=A2-A3

'=A2/A3

Divides the value in cell A1 by the value in A2

=A2/A3

'=A2*A3

Multiplies the value in cell A1 times the value in A2

=A2*A3

'=A2^A3

Raises the value in cell A1 to the exponential value specified in A2

=A2^A3

Formula

Description

Result

'=5+2

Adds 5 and 2

=5+2

'=5-2

Subtracts 2 from 5

=5-2

'=5/2

Divides 5 by 2

=5/2

'=5*2

Multiplies 5 times 2

=5*2

'=5^2

Raises 5 to the 2nd power

=5^2

Need more help?

Want more options?

Discover Community

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

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

Create a simple formula - Microsoft Support (2024)
Top Articles
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6233

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.