How to Make a Formula in Excel: The Complete 2026 Beginner-to-Pro Guide
Learn how to make a formula in Excel step by step, from the equals sign to VLOOKUP, cell references, and error fixes — a complete 2026 beginner guide.

Learning how to make a formula in Excel is the single most valuable skill you can pick up in spreadsheets, because it turns a static grid of numbers into a living calculator that updates itself the moment your data changes. Every formula in Excel begins with the same simple trigger: the equals sign. Type = into any cell, follow it with numbers, cell references, or functions, press Enter, and Excel instantly returns a result. That one keystroke separates a plain label from a calculation engine.
Search interest around Excel skills is enormous and varied. People look up everything from how to merge cells in Excel to how to freeze a row in Excel, and even brand-style phrases like "excellence playa mujeres" sometimes get tangled into autocomplete results. The truth is that mastering formulas underpins all of those tasks. Once you understand the equals sign, operators, and references, the rest of Excel — formatting, filtering, and dropdowns — becomes far easier to navigate and control.
A formula can be as basic as =2+2 or as powerful as a nested vlookup excel lookup that pulls a price from a 10,000-row product table. Both follow the same grammar. You start with the equals sign, you reference data, and you let Excel do the arithmetic. The beauty is that when you change an input cell, every formula that depends on it recalculates automatically, saving hours of manual editing across budgets, invoices, and reports.
This guide walks you through formulas from the ground up. You will learn the four basic math operators, the difference between relative and absolute cell references, how to copy formulas down a column, and how built-in functions like SUM, AVERAGE, and IF expand what a single cell can do. We will also cover the most common errors — like #DIV/0! and #REF! — and exactly how to fix them quickly. If you want a wider reference, our Excel Functions List catalogs every formula worth knowing.
You do not need any prior experience to follow along. If you can click a cell and type, you can build a working formula in the next sixty seconds. We will use plain examples with real numbers — household budgets, sales totals, and grade averages — so each concept connects to something you might actually build at work or home. By the end, you will read and write formulas with confidence rather than fear.
Throughout the article you will find practice quizzes, side-by-side comparisons, and checklists you can apply immediately. Excel rewards repetition, so the more formulas you type by hand, the faster the syntax becomes second nature. Bookmark this page, open a blank workbook beside it, and follow each step live. Hands-on practice beats passive reading every single time when it comes to spreadsheet mastery and long-term retention.
Excel Formulas by the Numbers

Steps to Build Your First Formula
Select a Cell
Type the Equals Sign
Enter Values or References
Add a Function (Optional)
Press Enter
Once you can build a one-cell formula, the next leap is understanding the building blocks that make formulas powerful: operators and cell references. Excel supports four core arithmetic operators — the plus sign for addition, the minus sign for subtraction, the asterisk for multiplication, and the forward slash for division. So =10*3 returns 30, and =20/4 returns 5. You can also use the caret symbol for exponents, where =2^3 returns 8. These operators follow standard math order of operations.
Order of operations matters more than beginners expect. Excel evaluates parentheses first, then exponents, then multiplication and division, and finally addition and subtraction. That means =2+3*4 returns 14, not 20, because multiplication happens before addition. If you want the addition first, wrap it in parentheses: =(2+3)*4 returns 20. Getting parentheses right is one of the most common sources of wrong answers in real-world spreadsheets, so always double-check your grouping.
Cell references are where formulas earn their keep. Instead of typing =50+30, you type =A1+B1 so the formula reads live values. Change A1 from 50 to 500 and the result updates instantly. References come in two flavors: relative and absolute. A relative reference like A1 shifts when you copy the formula to another cell. An absolute reference like $A$1 stays locked no matter where you paste it.
The dollar signs are the secret. $A$1 locks both the column and the row. $A1 locks only the column, and A$1 locks only the row. These are called mixed references, and they are essential when you build multiplication tables or apply a single tax rate cell across many rows. Press the F4 key while editing a reference to cycle through the four lock combinations quickly instead of typing dollar signs manually.
Copying formulas is what makes spreadsheets scale. Write =A2*B2 in cell C2, then grab the small square at the bottom-right corner of the cell — the fill handle — and drag it down. Excel automatically adjusts relative references so C3 becomes =A3*B3, C4 becomes =A4*B4, and so on. This single feature lets you calculate a thousand rows in seconds rather than typing a thousand separate formulas one by one.
Ranges let functions act on many cells at once. The colon defines a range, so A1:A10 means every cell from A1 through A10. A comma lists individual cells, as in =SUM(A1,A5,A9). You can mix both: =SUM(A1:A10,C1:C10) adds two separate blocks. Learning range syntax early pays off because nearly every powerful function — SUM, AVERAGE, COUNTIF, and beyond — relies on you feeding it a clean, correctly typed range.
If you plan to build financial models, references and ranges become even more important. Our Excel Finance Functions Guide shows how PMT, NPV, and IRR formulas combine locked rate cells with relative payment ranges to build loan schedules. The same reference rules you just learned scale directly into those professional models, so the time you invest understanding dollar signs now repays itself many times over down the road.
Mastering VLOOKUP Excel and Lookup Formulas
The vlookup excel function searches for a value in the first column of a table and returns a value from another column in the same row. Its syntax is =VLOOKUP(lookup_value, table_array, col_index_num, range_lookup). For example, =VLOOKUP("Apple",A2:C100,3,FALSE) finds Apple in column A and returns the matching value from the third column.
Always use FALSE as the last argument for an exact match, which is what you want in most real situations like prices, IDs, or names. Using TRUE triggers an approximate match that requires your data to be sorted and can return wrong results silently. Beginners lose hours to this single argument, so memorize FALSE for exact lookups every time you build one.

VLOOKUP vs XLOOKUP: Which Lookup Should You Use?
- +XLOOKUP searches in any direction, including leftward lookups VLOOKUP cannot do
- +Built-in if-not-found argument removes the need for IFERROR wrapping
- +No column index number to count, so adding columns never breaks the formula
- +Defaults to exact match, preventing the silent errors VLOOKUP's TRUE causes
- +Can return entire rows or arrays in a single spill formula
- +Runs faster and is easier to read on large datasets
- −XLOOKUP only works in Excel 365 and Excel 2021 or newer versions
- −Older shared workbooks may break if colleagues use Excel 2019 or earlier
- −VLOOKUP has 25 years of tutorials, templates, and community support
- −Many corporate environments still standardize on VLOOKUP for compatibility
- −XLOOKUP arrays can spill and overwrite data if cells below are occupied
- −Certification exams may still test VLOOKUP syntax specifically
Formula-Building Checklist for Beginners
- ✓Always start every formula with the equals sign before typing anything else
- ✓Click cells to reference them instead of typing values manually
- ✓Use parentheses to control the order of operations in mixed calculations
- ✓Press F4 to add dollar signs and lock absolute references quickly
- ✓Use the colon to define ranges, as in A1:A10 for ten cells
- ✓Drag the fill handle to copy formulas down a column automatically
- ✓Wrap lookups in IFERROR to replace ugly error codes with clear messages
- ✓Choose FALSE for exact matches in VLOOKUP to avoid silent errors
- ✓Check the formula bar to confirm a cell holds a formula, not text
- ✓Use SUM, AVERAGE, and COUNT functions instead of long manual chains
- ✓Name important cells or ranges to make formulas easier to read
- ✓Test your formula with known numbers before trusting it on real data
Master the F4 key for absolute references
When editing a formula, place your cursor on a cell reference and press F4. Excel cycles through $A$1, A$1, $A1, and back to A1. This single shortcut eliminates the most common copy-paste error: references shifting when they should stay locked. Lock your tax rate, your exchange rate, or your header cell once, then copy the formula across hundreds of rows without breaking it.
Even experienced users hit formula errors, and learning to read them turns frustration into a quick fix. Excel shows errors as short codes beginning with the pound sign. The most common is #DIV/0!, which appears when a formula divides by zero or by an empty cell. The fix is usually to check your denominator, or wrap the formula in IFERROR like =IFERROR(A1/B1,0) so an empty divisor returns a clean zero instead of an alarming red error message.
The #REF! error means a reference is no longer valid, almost always because you deleted a row, column, or cell that a formula pointed to. When you see #REF!, click the cell and read the formula bar — Excel literally writes the word REF where the missing reference used to be. The cleanest fix is undoing the deletion with Ctrl+Z, then rebuilding your structure more carefully, or pointing the formula at the correct surviving cells.
A #VALUE! error signals a data type mismatch, such as trying to add a number to text. If cell A1 contains the word "five" instead of the number 5, then =A1+10 returns #VALUE!. Inspect the cells your formula references and confirm they actually hold numbers. Numbers stored as text often hide an apostrophe at the start or align to the left instead of the right, which is a quick visual clue.
The #NAME? error usually means you misspelled a function name or forgot quotation marks around text. Typing =SUME(A1:A10) triggers #NAME? because SUME is not a real function. Excel's formula autocomplete dropdown helps here: start typing a function name and pick it from the list rather than spelling it yourself. The same error appears if you reference a named range that no longer exists in the workbook.
The #N/A error is most associated with lookup functions and means the value was not found. We covered this with VLOOKUP, but it also appears with MATCH and XLOOKUP. The friendly fix is the same: wrap the function in IFERROR or use XLOOKUP's built-in if-not-found argument. Before assuming the value is truly missing, check for hidden spaces with the TRIM function, which strips extra spaces that block exact matches.
Finally, the ##### display is not really an error at all — it simply means the column is too narrow to show the number. Double-click the boundary between column headers to auto-fit the width, and the value appears normally. This catches beginners off guard because it looks broken, but your formula is working perfectly. Widening the column reveals the result with no change to the underlying calculation whatsoever.
Building a habit of reading errors rather than fearing them transforms your speed. Each code points to a specific problem with a specific fix. Keep a mental map: #DIV/0! means denominator, #REF! means deleted reference, #VALUE! means wrong data type, #NAME? means typo, #N/A means not found, and ##### means widen the column. With that map, you will debug formulas in seconds instead of staring blankly at the screen.

A circular reference happens when a formula refers to its own cell, directly or through a chain — for example, putting =A1+B1 inside cell A1. Excel warns you with a status-bar message and usually returns zero. Trace the loop using Formulas, Error Checking, Circular References, and break the chain by pointing the formula at a different cell.
Once the basics feel comfortable, a handful of advanced habits will make your spreadsheets faster, cleaner, and far easier for other people to trust. Start by learning the IF function, which adds decision-making to your formulas. The syntax is =IF(condition, value_if_true, value_if_false). So =IF(A1>=60,"Pass","Fail") returns Pass when the score reaches 60 and Fail otherwise. You can nest IF statements or, in modern Excel, use the cleaner IFS function to handle several conditions in a single readable formula.
Conditional aggregation functions are workhorses in real reports. SUMIF adds only the cells that meet a condition, as in =SUMIF(B2:B100,"West",C2:C100) to total sales for the West region. COUNTIF counts cells that match a criterion, and AVERAGEIF averages them. Their plural cousins — SUMIFS, COUNTIFS, and AVERAGEIFS — handle multiple conditions at once, letting you total West-region sales above $1,000 from a single compact formula without any helper columns.
Text functions clean messy data that arrives from other systems. CONCAT or the ampersand operator joins text, so =A1&" "&B1 combines a first and last name with a space between them. LEFT, RIGHT, and MID extract characters, while TRIM removes stray spaces and UPPER, LOWER, and PROPER fix capitalization. These functions turn an afternoon of manual retyping into a one-second formula you can copy down an entire imported column.
Named ranges make complex formulas readable. Instead of =C2*$F$1, you can name cell F1 "TaxRate" and write =C2*TaxRate. Anyone reading the workbook understands the intent immediately, and the absolute reference is built in automatically. To create one, select the cell, click the Name Box, type a name with no spaces, and press Enter. Named ranges shine in long financial models where dozens of formulas reference the same key inputs repeatedly.
Excel Tables, created with Ctrl+T, supercharge formulas with structured references. Inside a table, a formula like =[@Quantity]*[@Price] reads naturally and copies itself down automatically as you add rows. Tables also give you instant filtering, banded row formatting, and a total row you toggle with one click. They pair beautifully with lookup functions, and our Excel Merge Tables guide shows how to combine several tables into one clean dataset.
Keyboard shortcuts compound your speed over time. Ctrl+C and Ctrl+V copy and paste, but Ctrl+Shift+V or the Paste Special menu lets you paste values only, stripping formulas when you want frozen results. Pressing Ctrl+` toggles between showing formulas and showing results across the whole sheet, which is invaluable when auditing someone else's work. F9 recalculates, and Alt+= instantly inserts a SUM formula for the selected range above.
Finally, document and protect your work. Add comments to explain unusual formulas, use consistent colors for input cells versus calculated cells, and lock the formula cells so collaborators do not overwrite them by accident. Protecting formulas prevents the most common cause of broken spreadsheets: a well-meaning teammate typing a number over a calculation. A few minutes of structure now saves hours of debugging when the workbook grows large and gets shared.
The fastest way to internalize formulas is deliberate, repeated practice on small realistic projects. Build a personal budget where column A lists expenses, column B holds amounts, and a single SUM formula totals them at the bottom. Add a percentage column that divides each expense by the total using an absolute reference for the grand total. In one short exercise you will touch SUM, division, absolute references, and percentage formatting — the core toolkit reused everywhere.
Next, recreate a small gradebook. List student names in column A, test scores across columns B through E, and use AVERAGE to compute each student's mean. Add an IF formula in the next column that prints "Pass" or "Fail" based on that average. This single project combines ranges, functions, and logical tests, and it mirrors exactly the kind of practical work that Excel certification exams and job interviews love to assess in candidates.
When you feel ready, build a mini sales report that uses VLOOKUP or XLOOKUP to pull product prices from a lookup table into an order sheet, then multiply quantity by price for line totals. Wrap the lookup in IFERROR so missing products show a clean message. This exercise rehearses the most in-demand formula skill on the market, since vlookup excel remains one of the most searched and tested Excel topics worldwide.
Type formulas by hand rather than copying them from tutorials whenever possible. Muscle memory for the equals sign, parentheses, colons, and commas develops only through repetition. When a formula breaks, resist the urge to delete and retype blindly. Instead, read the error code, check the formula bar, and trace each reference. This debugging discipline is what separates someone who memorizes formulas from someone who genuinely understands them and adapts.
Use Excel's built-in help generously. The formula autocomplete dropdown shows function arguments as you type, and hovering over a function name reveals a tooltip explaining each parameter. The Formulas tab includes Evaluate Formula, which steps through a complex calculation one piece at a time so you can see exactly where a result goes wrong. These tools are faster than any web search when you are mid-formula and need a quick reminder.
Set yourself a weekly micro-goal: learn one new function every week and use it in a real file. In ten weeks you will command SUM, AVERAGE, IF, COUNTIF, SUMIF, VLOOKUP, XLOOKUP, CONCAT, TRIM, and IFERROR — enough to handle the vast majority of everyday spreadsheet tasks. Pair each new function with a short practice quiz to lock it into long-term memory rather than letting it fade after a single use.
Finally, treat the free practice quizzes on this site as a feedback loop. They surface gaps you did not know you had, especially around error handling and reference locking, which are the topics beginners most often skip. Combine reading, hands-on building, and quizzing, and within a month you will write formulas fluently — confident enough to teach a colleague how to make a formula in Excel from scratch yourself.
Excel Questions and Answers
About the Author
Business Consultant & Professional Certification Advisor
Wharton School, University of PennsylvaniaKatherine Lee earned her MBA from the Wharton School at the University of Pennsylvania and holds CPA, PHR, and PMP certifications. With a background spanning corporate finance, human resources, and project management, she has coached professionals preparing for CPA, CMA, PHR/SPHR, PMP, and financial services licensing exams.