Imagine staring at a spreadsheet filled with thousands of rows of raw data. Without the right tools, making sense of this information takes hours. But with the right spreadsheet formulas, you can transform that chaos into clarity in seconds.
Whether you are a financial analyst, a marketer, or looking to organize your personal budget, mastering formulas in Microsoft Excel and Google Sheets is the single most high-leverage skill you can learn.
In this guide, we’ll move from basic syntax to advanced logic, providing you with the functional knowledge to automate your workflow.
In a rush? Here are the heavy hitters you'll use 80% of the time.
| Function | Syntax | Best For |
|---|---|---|
| SUM | =SUM(A1:A10) | Adding up totals quickly. |
| VLOOKUP | =VLOOKUP(Value, Range, Col#, FALSE) | Finding data in a list (Legacy). |
| XLOOKUP | =XLOOKUP(Value, SearchRange, ResultRange) | The modern, superior way to find data. |
| IF | =IF(Test, TrueResult, FalseResult) | Making simple decisions. |
| COUNTIF | =COUNTIF(Range, Criteria) | Counting items that meet a condition. |
| CONCATENATE | =CONCATENATE(A1, " ", B1) | Joining text strings together. |
| TODAY | =TODAY() | Inserting the current date. |
| IFERROR | =IFERROR(Formula, "Message") | Hiding ugly error codes like #N/A. |
| TRIM | =TRIM(Text) | Cleaning messy spacing from data. |
| PMT | =PMT(Rate, Nper, Pv) | Calculating loan payments. |
Before copying complex codes, you must understand the grammar of spreadsheets. Every formula begins with an equals sign (=). Without it, your software treats the input as plain text.
References (A1, B2): Point to data locations.
*Operators (+, -, , /): Perform the math.
Functions (SUM, AVG): Pre-built commands.
This is where beginners get stuck. When you copy a formula, cell references change automatically unless you lock them.
Relative (A1): Changes when copied. Use this for patterns (e.g., calculating row-by-row totals).
Absolute ( 1): Stays locked. Use this for fixed constants like a tax rate or a commission percentage.
Mixed ( 1): Locks only the row or column.
Pro Tip: Press
F4(Windows) orCmd+T(Mac) while highlighting a cell reference to cycle through these types instantly.
These functions form the backbone of 90% of spreadsheet work.
Need to summarize data?
SUM: =SUM(A1:A5) – Adds values.
AVERAGE: =AVERAGE(A1:A5) – Finds the mean.
COUNT vs. COUNTA:
COUNT only counts numbers.
COUNTA counts any cell that isn't empty (text or numbers).
Data often comes in messy. Text formulas help you clean it up for reports or use in tools like a Table Maker.
Combine Text: Use & or CONCATENATE.
=A1 & " " & B1 turns "John" and "Smith" into "John Smith".
Clean Text:
=TRIM(A1) removes accidental extra spaces that cause errors in lookups.
=LEFT(A1, 4) grabs the first 4 characters (great for extracting years from date strings).
Dates are just numbers in disguise.
=TODAY() gives you the current date (dynamic).
=DATEDIF(Start_Date, End_Date, "d") calculates the exact days between two dates.
Use Case: Planning a project timeline? Combine date formulas with a visual tool. While formulas calculate deadlines, a Gantt Chart Template helps you visualize them.
Data retrieval is the most sought-after skill in Excel.
Vertical Lookup searches the first column of a range and returns a value in the same row.
Syntax: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
The Trap: You must use FALSE for an exact match, or it will give you approximate (often wrong) results. It also breaks if you insert a new column.
Available in Excel 365 and Excel 2021+, XLOOKUP solves VLOOKUP's headaches.
Syntax: =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found])
Why it wins:
Comparison:
| Feature | VLOOKUP | XLOOKUP |
|---|---|---|
| Direction | Right Only | Any Direction |
| Error Handling | Requires IFERROR | Built-in |
| Robustness | Breaks on column insert | Dynamic |
Logic formulas allow your sheet to make decisions automatically.
=IF(Logical_Test, Value_if_True, Value_if_False)
Example: Grading a test.
=IF(B2>=70, "Pass", "Fail")
What if you have multiple conditions? You used to have to "nest" IF statements inside each other, which gets messy fast.
Old Way: =IF(A1>90, "A", IF(A1>80, "B", "C"))
New Way (IFS): =IFS(A1>90, "A", A1>80, "B", TRUE, "C")
Real-life logic is rarely simple.
AND: All conditions must be true.
=IF(AND(A2>50, B2="Paid"), "Ship Order", "Hold")OR: At least one condition must be true.
Context: Logic formulas are crucial when building automated trackers. For example, in an Assignment Tracker, you might use IF statements to automatically flag tasks as "Overdue" based on today's date.
Don't panic when you see an error. It's just the spreadsheet telling you what's wrong.
| Error | Meaning | How to Fix |
|---|---|---|
| #DIV/0! | Dividing by Zero | Wrap in IFERROR or check your denominator. |
| #N/A | Value Not Available | Usually a VLOOKUP typo or extra space in data. Try TRIM. |
| #REF! | Reference Invalid | You deleted a cell that a formula was reading. Undo! |
| #VALUE! | Wrong Data Type | Trying to do math on text (e.g., "100 USD" instead of 100). |
| #NAME? | Typo | You misspelled a function name (e.g., =SUMM). |
Audit Tip: Use the "Trace Precedents" feature in Excel's Formula tab to draw arrows showing exactly which cells are feeding into your broken formula.
Hard-coding values (typing "0.05" for tax) is bad practice. Instead, create a "Constants" table and reference it. This makes updates instant across the whole sheet.
If you find yourself writing formula strings that are three lines long, stop.
PivotTables: Great for summarizing massive datasets without a single formula.
Power Query: The best tool for cleaning data (removing duplicates, splitting columns) before you even bring it into the grid.
Formulas are powerful, but they are fragile. One broken link can ruin a financial model.
For complex projects involving timelines, rich text, and database linking, consider moving beyond the grid.
Travel Planning: Instead of a static sheet, use a Travel Itinerary Template that combines dates, maps, and checklists.
Chart Making: Visualizing data is often harder in Excel than it needs to be. Tools dedicated to Chart Making can save hours of formatting time.
Q: Can I use Excel formulas in Google Sheets?
A: Yes, about 95% of formulas (SUM, VLOOKUP, IF) work identically. However, Google Sheets has unique functions like GOOGLEFINANCE and IMPORTRANGE that Excel lacks, and Excel has specific dynamic array features.
Q: How do I remove the formula but keep the result?
A: Copy the cell (Ctrl+C), then right-click and choose Paste Special > Values. This "flattens" the dynamic formula into static text.
Q: Why is my formula showing text instead of the result?
A: You likely missed the equals sign (=) at the start, or the cell is formatted as "Text." Change the format to "General" and double-click the cell to reset it.
Mastering spreadsheet formulas is about more than just math—it's about confidence. When you know how to use XLOOKUP to merge tables or IFS to categorize data, you stop fighting the software and start analyzing the story behind the numbers.
Ready to upgrade your workflow?
If you are tired of debugging broken formulas and want a solution that combines the power of a database with the simplicity of a doc, check out AFFiNE. It offers built-in templates for project management, OKRs, and more—no complex syntax required.