How to Write Formula in Excel

There are two ways to “write formula in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: type = in the cell, then build the calculation by clicking the cells you want rather than typing their addresses, and press Enter.

On this page7
▤Annotated stepsExcel
1

Select the cell where the answer belongs, not the cell holding the data.

2

Type = and then click the first cell you want to use.

3

Type an operator, click the next cell, and repeat; wrap parts in brackets when the order of evaluation matters.

4

Press Enter to commit; the cell shows the result while the formula bar keeps showing the formula.

5

Double-click the fill handle at the bottom-right corner to copy it down as far as the neighbouring column has data.

=B2*C2
Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

Every formula starts with an equals sign, which is what tells Excel the rest of the entry is to be computed rather than stored. After that it is a mix of references (B2), operators (+ - * / ^ &), numbers, and functions such as SUM or IF. Clicking a cell while typing inserts its reference, which is both faster and the only way to avoid the mis-typed address that produces a plausible wrong answer. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “write formula in excel”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the outcome you expected before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Quantity 12 sits in B2 and unit price 4.75 in C2. Select D2, type =, click B2, type *, click C2 and press Enter: D2 shows 57. Extending it to =B2*C2*(1-E2) applies the discount in E2, and double-clicking the small square at the corner of D2 fills the formula down the whole column. A workbook full of typed constants looks identical to one full of formulas until the inputs change, and only one of them is still right afterwards. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “write formula in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Typing values into the formula (=12*4.75) instead of references, so the answer stops being connected to the data.
  • Forgetting the leading =, which leaves the text sitting in the cell as a label.
  • Entering a formula in a cell already formatted as Text, where it is stored as a string and never calculates.
  • Relying on the default order of operations for mixed arithmetic instead of making it explicit with brackets.

Frequently asked questions

Why does my formula display instead of calculating?

The cell is formatted as Text, or Show Formulas is on. Set the format to General and re-enter it, or press Ctrl+` to switch Show Formulas off.

What is the difference between a formula and a function?

A formula is the whole entry after the =. A function is a named building block, such as SUM, that a formula can use.

How do I stop a reference changing when I copy it?

Make it absolute with dollar signs, $B$2. Pressing F4 while editing cycles through the options.

Which operators does Excel use?

+ - * / for arithmetic, ^ for powers, & to join text, and = <> > < >= <= for comparison.

Other ways people ask this

This is also commonly searched as “how to write formulas in excel”, “how do i write a formula in excel”, “how do you write a formula for excel” and “how to write an excel formula”. They describe the identical operation, so you are in the right place no matter how you phrased it.

Why do people search for this in so many different ways?

Because the same task has many names. “how to write formulas in excel”, “how do i write a formula in excel”, “how do you write a formula for excel” all point at the one operation explained on this page, which is why they all lead here.