How to Input Formulas in Excel

Learn how to input formulas in Excel with step-by-step examples, shortcuts, and pro tips. Master cell references, functions, and error fixes today.

How to Input Formulas in Excel

Knowing how to input formulas in Excel separates spreadsheet beginners from people who actually finish their work before lunch. Every formula starts the same way, every cell reference follows a pattern, and once those patterns click, the program stops feeling like a wall of letters and numbers. You type the equal sign, you add the math or function, and Excel runs the calculation faster than you can blink.

This guide walks you through the entire process — from your very first =A1+B1 to nested functions that pull data across multiple sheets. You will see the keyboard shortcuts that pros use, the common mistakes that trip up new users, and the cell reference tricks that turn a one-time calculation into a reusable template. By the end, formula entry will feel like second nature, the way driving feels after a few months behind the wheel.

Excel handles spreadsheets for finance teams, classrooms, small businesses, and home budgets. The formulas you learn here run the same way in Microsoft 365, Excel 2021, Excel 2019, and the web version — the syntax does not change. So whether you are studying for an MOS Excel certification, prepping for a job interview, or just tired of using a calculator next to your laptop, this is the practical, hands-on walkthrough you have been looking for.

Excel Formula Facts at a Glance

=First character of every formula
400+Built-in functions available
F2Shortcut to edit a cell
8,192Max characters per formula

Before we get into the step-by-step, it helps to understand what a formula actually is inside Excel. A formula is any expression that begins with an equal sign and tells the program to perform a calculation, return a value, or reference another cell. Without that equal sign, Excel treats whatever you type as plain text — even something obvious like 2+2 will just sit there as four characters until you put = in front of it.

You can input formulas directly into a cell, or you can use the formula bar at the top of the worksheet. Both methods produce the same result. Most people start in the cell because it feels natural, then switch to the formula bar for longer expressions where you need more room to see what you are typing.

Microsoft Excel - Microsoft Excel certification study resource

The Golden Rule of Excel Formulas

Every formula must start with an equal sign (=). No equal sign, no calculation. Excel will display whatever you typed as plain text instead. This single rule prevents about 80 percent of beginner errors.

Step-by-Step: How to Input Your First Formula in Excel

Let’s walk through the most common scenario — adding two numbers together. Open a blank workbook and follow along. The whole thing takes about thirty seconds, and once you have done it once, you can do it a thousand times without thinking.

  1. Click an empty cell. Try cell C1. The cell reference appears in the Name Box on the left of the formula bar, so you always know where you are.
  2. Type the equal sign. Press the = key. Excel switches into formula-entry mode — you will see a small indicator at the bottom of the screen.
  3. Type your expression. For example: =5+3. You can use any of the four basic operators: + for addition, - for subtraction, * for multiplication, and / for division.
  4. Press Enter. Excel calculates the result and displays it in the cell. In this case, you will see 8.
  5. Click back on the cell. Look at the formula bar at the top. The cell shows the result, but the formula bar still shows =5+3. That is normal — Excel always stores the formula, not just the answer.

Try a few more on your own. Type =10*4 in another cell. Type =100/5 in another. Notice how the calculation happens the instant you press Enter, with no separate “calculate” button to hit. This is the core loop of every Excel formula you will ever write.

The Four Methods to Input a Formula

Direct Typing

Type the entire formula by hand, starting with = and ending with Enter. Fastest for short calculations.

Cell Reference Clicking

Type = then click the cells you want to reference. Excel inserts the addresses for you. Best for new users.

Function Wizard

Click fx next to the formula bar. A dialog walks you through each function argument with descriptions.

AutoSum Button

Click the AutoSum icon on the Home tab. Excel guesses the range and inserts =SUM() automatically.

Using Cell References Instead of Hard-Coded Numbers

Typing =5+3 works fine for a one-off calculation. But the real power of Excel kicks in when you use cell references — pointing your formula at other cells instead of typing the numbers directly. This way, when the underlying data changes, the formula updates automatically.

Let’s try it. Put the number 50 in cell A1. Put 25 in cell A2. Now click on cell A3 and type =A1+A2. Press Enter. The cell shows 75. Now go back to A1 and change it to 100. Watch A3 — it updates to 125 automatically. That is the magic.

You can build cell references three ways:

  • Type them manually: =A1+B1
  • Click the cells while typing the formula: Type =, click A1, type +, click B1, press Enter
  • Use arrow keys: Type =, then use the arrow keys to move to A1, type +, arrow to B1, press Enter

Clicking is the most reliable method when you are starting out because it removes typos. Once you know the layout of your sheet, manual typing gets faster.

Excel Spreadsheet - Microsoft Excel certification study resource

Three Types of Cell References

Written as A1, B2, C3. When you copy the formula down or across, the references shift automatically. =A1+B1 becomes =A2+B2 when copied one row down. This is the default behavior and what you will use 90 percent of the time.

Inputting Functions Like SUM, AVERAGE, and IF

Basic arithmetic gets you only so far. Real spreadsheets use functions — pre-built calculations that handle ranges of cells, conditional logic, lookups, and dates. A function takes the form =FUNCTIONNAME(arguments), where the arguments are the values or cell references the function needs to do its job.

Here are three you will use constantly:

SUM: Adds up a range of cells. Instead of typing =A1+A2+A3+A4+A5, you type =SUM(A1:A5). The colon creates a range. Much faster, especially with hundreds of rows.

AVERAGE: Calculates the mean of a range. =AVERAGE(B2:B20) returns the average of all values in that range. Empty cells are ignored, which is usually what you want.

IF: Returns one value if a condition is true, another if false. =IF(A1>100, "High", "Low") displays the word High when A1 is greater than 100, and Low otherwise. Quotation marks are required around text values.

To input a function, you have three options. The fastest is to type it directly — Excel will autocomplete as you go. The second is to click the fx button next to the formula bar, which opens a wizard with descriptions of each argument. The third is the Function Library on the Formulas tab, which groups functions by category (Financial, Logical, Text, Date and Time, and so on).

Editing and Correcting Formulas

Nobody writes every formula perfectly the first time. You will hit typos, missed parentheses, wrong cell references, and the occasional #REF! error when you delete a column the formula was pointing at. Knowing how to edit smoothly is just as important as knowing how to write.

To edit an existing formula, double-click the cell, or click it and press F2. Excel enters edit mode and color-codes each referenced cell in the worksheet so you can see exactly what the formula is pulling. You can use the arrow keys to navigate within the formula, type new characters, and delete with Backspace or Delete.

When you finish editing, press Enter to commit the change. Press Esc to cancel without saving — useful when you realize you have made things worse and want to bail out.

If a formula returns an error, click the small green triangle that appears in the corner of the cell. Excel will explain what went wrong and offer a fix. The most common errors are #DIV/0! (dividing by zero or an empty cell), #NAME? (Excel does not recognize a function name — usually a typo), #VALUE! (you tried to do math on text), and #REF! (the formula references a cell that no longer exists).

Excellence Playa Mujeres - Microsoft Excel certification study resource

Formula Entry Checklist

  • Start every formula with an equal sign (=)
  • Use cell references instead of hard-coded numbers when possible
  • Match every opening parenthesis with a closing parenthesis
  • Press F4 to add dollar signs for absolute references
  • Use F2 to edit a cell without retyping the whole formula
  • Wrap text values in straight quotation marks
  • Test your formula on a small range before applying it to thousands of rows
  • Save your workbook before running large recalculations

Keyboard Shortcuts That Speed Up Formula Entry

If you are going to input dozens of formulas a day, learning a handful of keyboard shortcuts will save you hours over the course of a month. These work in every version of Excel from 2007 onward and in Excel for the web.

  • = starts a formula (obviously, but worth saying)
  • F2 puts the active cell into edit mode
  • F4 toggles between relative, absolute, and mixed references on the cell reference under the cursor
  • F9 recalculates the entire workbook manually
  • Shift + F3 opens the Insert Function dialog
  • Ctrl + Shift + Enter commits a formula as an array formula (older Excel versions)
  • Alt + = inserts AutoSum at the active cell
  • Ctrl + ` (the backtick) toggles between showing formulas and showing results across the entire sheet
  • Esc cancels the current edit without saving
  • Tab autocompletes a function name when Excel suggests one

The two that will change your life soonest are Alt + = for AutoSum and F4 for cycling reference types. Drill those two until they are automatic.

Typing Formulas vs Using the Function Wizard

Pros
  • +Typing is faster once you know function names
  • +Direct typing keeps your hands on the keyboard
  • +Autocomplete suggests function names as you type
  • +Easier to copy and paste formulas between cells
Cons
  • Easy to mistype function names and get #NAME? errors
  • Hard to remember exact argument order for complex functions
  • No built-in description of what each argument should be
  • Steeper learning curve for absolute beginners

Common Formula Mistakes and How to Fix Them

Even experienced Excel users hit the same handful of formula traps. Knowing what they look like makes them ten times faster to diagnose.

Forgetting the equal sign. You type SUM(A1:A10) and Excel displays it as text. Add an = at the front. Done.

Mixing up commas and colons. A colon defines a range — A1:A10 means cells A1 through A10. A comma separates individual arguments — SUM(A1, A5, A10) adds just those three cells. Using one when you meant the other gives you the wrong answer without any error message.

Circular references. If cell A1 contains =A1+1, you have created a loop. Excel warns you with a dialog and the cell displays a 0. Trace the references back until you find the loop and break it.

Forgetting absolute references when copying down. You build a formula in row 2 that references a tax rate in cell F1. You drag the formula down 100 rows. By row 102, the formula is looking at F101 — an empty cell. Lock the F1 reference with $F$1 before you copy, and it will stay pinned no matter where the formula goes.

Quotation marks. Excel needs straight quotes (") for text values. If you paste a formula from Word or a web page, you may get curly quotes that look right but break the formula. Retype the quotes manually if you see a sudden error after a paste.

One last piece of advice that catches everyone eventually. Save your work often, especially before you experiment with new formulas across large datasets. Press Ctrl + S out of habit every few minutes. Excel does have AutoSave on OneDrive workbooks, but local files rely on you. A five-second keystroke can save hours of redoing complex calculations after a crash.

Excel Questions and Answers

Putting It All Together

Inputting formulas in Excel comes down to a small set of patterns repeated over and over. Start with an equal sign, point at the data you want to calculate, choose the operator or function, and press Enter. That is the entire workflow. Everything else — absolute references, nested functions, error handling — is variation on that core pattern.

The fastest way to get comfortable is to use formulas every day, even for small calculations you could do in your head. Tracking grocery spending, splitting a restaurant bill, calculating gas mileage — any time you reach for a calculator, open Excel instead. Within a week, the equal sign will be muscle memory and you will catch yourself reaching for F4 without thinking about it.

If you are studying for an Excel certification or want a structured way to test your skills, practice tests are the most efficient method. They cover every formula type you will encounter, drill the keyboard shortcuts under time pressure, and surface gaps you did not know you had. The questions mimic the format used on official Microsoft Office Specialist exams and corporate hiring assessments, so practice transfers directly to the real thing.

Bookmark this guide, keep Excel open in another window, and work through each section hands-on. By the time you finish, formula entry will feel less like a chore and more like the keyboard shortcut to getting your real work done. Then take the practice test and see how quickly you can spot the right formula for any scenario thrown at you.

Advanced Formula Tips Worth Bookmarking

Once you have the basics locked in, a handful of intermediate tricks will save you serious time. Named ranges let you assign a friendly name to a cell or range — instead of writing =SUM($A$2:$A$500), you can write =SUM(SalesData). Go to Formulas tab, click Define Name, give your range a label, and use that label anywhere in your workbook. It makes complex formulas readable and reduces errors when you reorganize sheets.

Nested functions let you use the result of one function as the argument of another. A classic example is =IF(AVERAGE(B2:B10)>75, "Pass", "Fail"), which checks the class average and returns a verdict. You can nest up to 64 levels deep in modern Excel, though if you find yourself going past three, it usually means you should split the logic into helper columns for readability.

Array formulas apply a calculation to multiple cells at once. In Microsoft 365 and Excel 2021, dynamic arrays spill results automatically — type =A2:A10*B2:B10 and the products fill down without any extra effort. In older versions, you had to press Ctrl + Shift + Enter to commit, and the formula would be wrapped in curly braces. Same concept, slightly different mechanics depending on your version.

The Evaluate Formula tool on the Formulas tab is a lifesaver when troubleshooting. It steps through your formula one piece at a time, showing the intermediate result at each stage. If a complex nested formula returns an unexpected answer, run it through Evaluate Formula and you will spot exactly where the logic broke down. It is the closest thing Excel has to a debugger.

About the Author

James R. HargroveJD, LLM

Attorney & Bar Exam Preparation Specialist

Yale Law School

James R. Hargrove is a practicing attorney and legal educator with a Juris Doctor from Yale Law School and an LLM in Constitutional Law. With over a decade of experience coaching bar exam candidates across multiple jurisdictions, he specializes in MBE strategy, state-specific essay preparation, and multistate performance test techniques.