Microsoft Excel formulas are equations you type into a cell to calculate, compare, join or look up data automatically. Every formula starts with an equals sign (=), and when you press Enter, Excel evaluates it and shows the result instead of the text you typed. Below is the practical route from a first simple formula to fixing the errors that stop formulas working, including regional settings issues many Indian and other non-US users run into when typing formulas on a device set to English (India) or another non-US locale.
What You'll Need
- Microsoft Excel on Windows, Mac, or the free Excel web app (the steps here are written for the desktop app; web and mobile label some buttons slightly differently)
- A workbook with some data, or a blank one for practice
- A decimal separator setting you know, because the US convention uses a full stop (1.5) while many regions use a comma (1,5) — one setting is used for both typed decimals and the commas Excel expects to separate formula arguments
Step-by-Step
- Pick a cell and start with =. Click an empty cell, type
=, and you will see Excel switch into formula entry mode. Nothing else typed before the equals sign will be treated as a formula — leading text makes it a label. - Type the simplest calculation. Enter something like
=2+3and press Enter. The cell shows 5. Click the cell again and the formula bar at the top shows=2+3, so you can always check what a cell is really doing. - Reference cells instead of hard numbers. Put 10 in A1 and 25 in A2. In A3 type
=A1+A2and press Enter. Now changing A1 or A2 updates A3 automatically. This is the core of spreadsheet work: references recalculate, typed totals do not. - Use a built-in function. For a sum of a column, click below the numbers and type
=SUM(. Drag across the cells you want or type the range, e.g.=SUM(B2:B50), then close the bracket and press Enter. A colon means "from ... to"; a semicolon or comma separates separate arguments depending on your regional setting, which is covered in Troubleshooting. - Let the Formula AutoComplete and tooltip help you. As you type a function name, Excel lists matching names; use the down arrow and Tab to pick one, and the tooltip shows the argument order. Get the argument order right first, because
IF,VLOOKUPandSUMIFall fail in confusing ways when arguments are swapped. - Build a conditional formula. Example: in C2 type
=IF(B2>=50,"Pass","Fail"). This reads "if B2 is at least 50, show Pass, otherwise show Fail". Text results must go in double quotation marks; numbers do not. Drag the small square at the bottom-right of the cell (the fill handle) down to apply the same logic to other rows, and relative references shift accordingly. - Learn the difference between relative and absolute references.
A1shifts when copied down or across;$A$1stays locked. When a formula must always point at one control cell (a tax rate or a target figure), write it with dollar signs, or press F4 on Windows (Fn+F4 on many Macs) after clicking the reference to cycle the dollar-sign options. - Copy and paste the formula, then check it. Copy with Ctrl+C and paste with Ctrl+V, or use
Ctrl+Dto fill down from the cell above on Windows. After pasting, click a few of the copied cells and read the formula bar to confirm the references landed where you expected. - Check errors with the audit tools. If a formula returns an error, use Formulas > Evaluate Formula to step through it one calculation at a time, or Formulas > Trace Precedents to see which cells feed a formula. Menu names can differ slightly between versions and platforms.
- Save before sharing. Save as .xlsx so formulas stay live. If you need to send someone the values only, copy the cells and use Paste Special > Values so they see numbers rather than formulas that may break elsewhere.
Common Mistakes
Forgetting the equals sign. Typing 2+3 without = leaves the text in the cell exactly as typed. If you already have a block of such entries, you cannot fix an entire range by editing one cell — simplest is to retype with the equals sign, or use Find and Replace to add it consistently.
Using the wrong separator character. On a device set to a region that uses the comma as decimal separator, the full stop may be rejected and a comma inside a formula may mean a decimal rather than argument separation. If =SUM(A1,A2) is refused, try the semicolon separator your locale expects, or check the decimal separator setting in your operating system's regional settings.
Copying a formula without locking the right reference. Filling down a lookup formula that should always check one table on another sheet is the single most common cause of wrong results — the reference slides off the table after a few rows.
Missing quotation marks around text. =IF(A1>0,Yes,No) returns an error or an unexpected name error because Yes and No are read as cell or function names. Wrap text results in double quotes.
Hard-coding totals. Typing a sum by hand rather than using SUM means the figure goes stale the moment a source cell changes.
Tips
Use the Name Box to jump to a cell or range quickly, and define a named range for frequently referenced blocks (Formulas > Define Name) so formulas read as =SUM(Sales) rather than =SUM(Sheet2!B2:B400).
Press Ctrl+` (the backtick key, next to the 1 key) on Windows to toggle showing formulas instead of results — useful for auditing a sheet someone else built. Press it again to switch back.
Keep one formula per column consistent all the way down. Mixed formulas in a column make errors hard to spot and sorting unreliable.
Use structured references when your data is formatted as an Excel Table (Insert > Table), because they expand automatically as rows are added.
When sharing a workbook widely, consider protecting formula cells (Review > Protect Sheet) after unlocking the input cells, so users can type data without overwriting the logic.
Troubleshooting
If the cell shows the formula as text: confirm the cell format is not set to Text. Select the cell, set the number format to General, then re-enter the formula and press Enter. Changing the format alone does not re-evaluate an already-entered formula.
If you see #NAME?: a function name is misspelled, or a text argument is missing its quotation marks. Check both, and confirm the function actually exists in your version of Excel — some newer functions are unavailable in older releases.
If you see #REF!: a referenced cell or sheet was deleted or the formula was pasted somewhere the reference cannot reach. Undo (Ctrl+Z) if the deletion was recent, or rewrite the reference.
If you see #DIV/0!: the formula divides by zero or by an empty cell. Wrap it in IFERROR, for example =IFERROR(A1/B1,""), to show a blank instead of an error.
If you see #####: the column is too narrow to display the result. Widen the column; the calculation itself is fine.
If results will not update: the workbook may be set to manual calculation. Look in Formulas > Calculation Options and choose Automatic. Then press F9 on Windows to force a recalculation.
If a formula worked on one computer and fails on another: regional and language settings differ between the two machines. Re-enter the formula on the second machine with that machine's separators rather than assuming the file is corrupt.
Frequently Asked Questions
Do I have to type formulas in uppercase?
No. Excel treats sum and SUM identically and usually capitalises function names for you. Capitalising makes long formulas easier to read.
Can I write a formula in a different language?
Function names are localised in some language versions of Excel, so a formula copied from an English source may not open correctly in, for example, a Spanish-language install. Describing the intent (sum a range, look up a value) helps you rebuild it with the local function names.
What is the difference between a formula and a function?
A formula is any calculation starting with =. A function is a built-in operation such as SUM or IF that you call inside a formula. Most real-world formulas combine both.
Why does my formula change when I copy it?
Because relative references shift by design. Add dollar signs to lock the parts that must not move. This behaviour is what makes fill-down useful in the first place.
Can I see all formulas at once?
Yes, on Windows press Ctrl+` to toggle formula view. On Mac, use the same shortcut if your keyboard layout allows, or open the Formulas area and look for Show Formulas.