The formula to enter in Excel depends on what you want to calculate, but the universal starting point is the equals sign (=). Type = in any cell, then add your numbers, cell references, and operators (like +, -, *, /), and press Enter. For example, to add the values in cells A1 and B1, you enter =A1+B1 and press Enter.
What Exactly Is a Formula in Excel?
A formula is an expression that performs a calculation on values in your worksheet. Every formula in Excel begins with an equals sign (=). Without it, Excel treats what you type as text or a number, not a calculation. Formulas can be as simple as =2+2 or as complex as nested functions like =IF(SUM(A1:A10)>100,"High","Low"). The key is that the equals sign tells Excel to evaluate the expression and return a result.
How to Enter a Formula Step by Step
- Click the cell where you want the result to appear.
- Type the equals sign
=. - Enter your calculation. You can type numbers directly (e.g.,
=5*10) or click cells to reference them (e.g., type=, click cell A1, type+, click cell B1). - Press Enter. Excel calculates and displays the result.
If you need to edit a formula after entering it, double-click the cell, or click the cell and edit in the formula bar above the grid. Press Esc to cancel editing.
Common Formula Examples You Can Use Today
- Addition:
=A1+B1adds the values in A1 and B1. - Subtraction:
=A1-B1subtracts B1 from A1. - Multiplication:
=A1*B1multiplies A1 by B1. - Division:
=A1/B1divides A1 by B1. - Average:
=AVERAGE(A1:A10)returns the average of the range A1 through A10. - Sum with a condition:
=SUMIF(A1:A10,">50")adds only the values greater than 50 in that range.
Each of these starts with = and follows standard arithmetic order (parentheses first, then exponents, then multiplication/division, then addition/subtraction).
Using Functions vs. Writing Formulas Manually
Functions are predefined formulas in Excel, like SUM, AVERAGE, and IF. You can enter a function by typing = followed by the function name and its arguments in parentheses. For example, =SUM(A1:A10) adds all numbers in that range. Alternatively, you can write a manual formula like =A1+A2+A3—both give the same result for small ranges. Functions are more efficient for large or dynamic ranges, and they handle errors more gracefully. For instance, =SUM(A1:A10) ignores text in the range, while =A1+A2+...+A10 would return a #VALUE! error if any cell contains text.
How to Choose Between a Formula and a Function
Use a manual formula when you have a simple, one-off calculation with a few cells, like =B2*C2 for multiplying price by quantity. Use a function when you need to process a range (e.g., sum hundreds of rows), apply a condition (e.g., IF), or perform statistical analysis (e.g., STDEV). Functions also make your spreadsheet easier to read and audit, because the name describes what it does.
Common Problems When Entering Formulas and How to Fix Them
- #NAME? error: You mistyped a function name or used text without quotes. Check spelling and ensure text is in double quotes, e.g.,
=IF(A1>10,"Yes","No"). - #DIV/0! error: You divided by zero or an empty cell. Check the divisor and consider using
=IFERRORto handle it gracefully. - Circular reference: A formula refers to its own cell, directly or indirectly. Excel shows a warning. Find and correct the reference in Formulas > Error Checking.
- Formula not calculating: If the cell shows the formula as text, you likely forgot the equals sign or the cell is formatted as Text. Re-enter with
=and ensure the cell format is General.
Excel Formula Entry Tips and Shortcuts
- Press Tab after typing a function name (e.g.,
=SUthen Tab) to autocomplete and insert the opening parenthesis. - Use F2 to edit the active cell; on Mac, it’s Control+U.
- Press Ctrl+` (grave accent) to toggle between showing formulas and results. On Mac, use Control+`.
- To copy a formula down a column, double-click the fill handle (the small square at the bottom-right of the cell).
- Use absolute references with
$(e.g.,$A$1) to keep a cell reference fixed when copying.
Frequently Asked Questions
Why does my formula show as text? The most common cause is a missing equals sign. If the cell is formatted as Text, Excel treats everything as text. Change the cell format to General, then re-enter the formula starting with =.
How do I enter a formula without clicking cells? Simply type the cell references manually. For example, type =A1+B1 directly. Excel is case-insensitive, so a1 works too.
What is the difference between a formula and a function? A formula is any expression that starts with =, like =A1+B1. A function is a built-in operation like SUM or IF that you use within a formula, e.g., =SUM(A1:A10).
How do I enter a formula that references another sheet? Use the sheet name followed by an exclamation mark. For example, =Sheet2!A1 references cell A1 on Sheet2. If the sheet name has spaces, enclose it in single quotes: ='My Sheet'!A1.
Why does Excel change my formula when I copy it? Excel adjusts cell references relative to the new location. For example, copying =A1+B1 from row 1 to row 2 changes it to =A2+B2. To prevent this, use absolute references like =$A$1+$B$1.
Related
- Free Online Data Entry Software: Real Options for 2025
- Google Sheets Power Query Equivalent: 6 Ways
- Project Stickley Hall Table: Plans & Build Guide
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- Excel ROUND Function: Examples, Rules, and Common ErrorsTo round a number in Excel, use ROUND: with 12.345 in cell A2, enter =ROUND(A2,2) in another cell…
- Excel Sort by Highest Number: A Clear Step-by-Step GuideTo sort numbers from highest to lowest in Excel, select a cell in the number column and choose…
- Excel SUMIF with Dates: Rules, Examples, and FixesTo sum values for a date or date range in Excel, use SUMIF with a date criterion; for…
- Excel Formula for Current Date: TODAY ExplainedIn Microsoft Excel for Microsoft 365 on Windows, enter =TODAY() in a cell to display the current date.…
- Filter Excel Rows in Power Automate: Methods and TipsTo filter Excel rows in Power Automate, use List rows present in a table and enter a condition…
- BMI Calculator in Excel: Formula and SetupTo make a BMI calculator in Excel, enter weight in kilograms in B2 and height in metres in…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.