Complete Excel Formulas Cheat Sheet for Office, Students & Small Business
Most spreadsheet mistakes happen not because Excel is hard, but because people remember half of a formula's argument order and then waste twenty minutes staring at #N/A or #VALUE!. Whether you manage GST invoices, monthly family budgets, student attendance rosters, or wholesale inventory, mastering roughly twenty core formulas eliminates 90% of manual copy-pasting and calculator errors.
Every formula below works identically in desktop Microsoft Excel, Google Sheets, LibreOffice Calc, and our zero-login Free Online Excel Editor — so you can test each expression live in seconds without installing Microsoft 365.
1. Conditional Totals & Counting: SUMIF, SUMIFS, COUNTIFS
In real business sheets, you rarely want the total of an entire column — you want the total of Paid invoices in the North region, or expenses above ₹5,000. That is where conditional aggregation formulas shine.
- Single condition sum:
=SUMIF(B2:B50,"Paid",D2:D50)checks column B for the word "Paid" and adds the matching amounts in column D. - Multi-condition sum (notice the reversed argument order!):
=SUMIFS(D2:D50,B2:B50,"Paid",C2:C50,"North")places the sum range first, followed by pairs of criteria ranges and criteria. Mixing up the first argument betweenSUMIFandSUMIFSis the #1 bug in office workbooks. - Wildcard matching: Add
*to match partial text, such as=COUNTIF(A2:A100,"*Laptop*")to count every SKU containing the word "Laptop" regardless of model number.
2. Modern Lookups: XLOOKUP vs VLOOKUP vs INDEX + MATCH
For decades, VLOOKUP forced analysts to keep lookup IDs in the leftmost column and count column numbers by hand — meaning inserting one extra column silently broke every report. Modern XLOOKUP solves every single weakness of VLOOKUP in one readable expression.
| Formula | Syntax Example | Best Use Case |
|---|---|---|
| XLOOKUP | =XLOOKUP(A2,A2:A50,D2:D50,"Not Found") | Looks left or right, never breaks when inserting columns, includes built-in fallback text. |
| VLOOKUP | =VLOOKUP(A2,A2:E50,4,FALSE) | Legacy compatibility with older Excel 2016 workbooks; always pass FALSE for exact match. |
| INDEX + MATCH | =INDEX(B2:B50,MATCH(F2,D2:D50,0)) | Two-way dynamic lookups and backward compatibility when lookup key sits right of return column. |
3. Financial, GST Tax & Loan EMI Calculations
Financial formulas remove floating-point rounding drift that otherwise causes invoices to be off by ₹0.01 during reconciliation.
- Exact 18% GST rounded to 2 decimals:
=ROUND(E2*0.18,2)ensures CGST (9%) + SGST (9%) matches your invoice grand total down to the last paisa. - Monthly Loan EMI with PMT:
=ROUND(ABS(PMT(0.09/12,36,500000)),2)calculates the exact monthly payment on a ₹5,00,000 loan at 9% annual interest over 36 months. Always divide annual interest by 12 when periods are in months! - Safe Profit Margin without #DIV/0!:
=IFERROR((Sell-Cost)/Sell,0)prevents ugly division errors on empty rows before sales data is entered.
4. Date, Payroll & Text Cleaning Formulas
HR attendance trackers and imported CRM exports almost always contain irregular spacing, combined names, or date ranges.
- Business working days between dates:
=NETWORKDAYS("2026-11-01","2026-11-30")counts Monday–Friday days automatically, skipping weekends. - Exact age or tenure in years:
=DATEDIF(B2,TODAY(),"Y")computes completed years cleanly. - Month-end due dates:
=EOMONTH(A2,0)returns the last calendar day of the invoice month (handling 28/29/30/31 automatically). - Splitting emails or names:
=TEXTBEFORE(A2,"@")extracts usernames while=PROPER(TRIM(A2))removes extra whitespace and fixes messy all-caps names.
5. Fixing the 5 Most Common Excel Errors Quickly
| Error Code | Root Cause | Fastest Fix |
|---|---|---|
#DIV/0! | Formula divides by zero or an empty cell. | Wrap with =IFERROR(formula, 0). |
#N/A | Lookup value was not found (often extra trailing space!). | Run TRIM() on keys or provide XLOOKUP 4th fallback argument. |
#VALUE! | Math operator received text (like "1,200 INR") instead of a number. | Strip currency text and use number formatting instead of typing symbols inside data cells. |
#REF! | Referenced row/column was deleted. | Press Ctrl+Z immediately or update the broken range reference. |
#NAME? | Typo in function name or missing quotes around text like Paid. | Check spelling and wrap literal text criteria in double quotes: "Paid". |
6. Locking Cell References ($A$1) Before Dragging the Fill Handle
When you drag a formula down using the green corner Fill Handle or press Ctrl+D, relative references like B2 automatically shift to B3, B4, and B5. If your tax rate sits in a single cell $F$1, adding dollar signs locks that cell so every copied row multiplies against $F$1 instead of drifting into empty cells below it.
Frequently Asked Questions
What is the difference between SUMIF and SUMIFS?
SUMIF checks one condition and puts the sum range last: =SUMIF(criteria_range, criteria, sum_range). SUMIFS checks multiple conditions and puts the sum range FIRST: =SUMIFS(sum_range, range1, crit1, range2, crit2).
Why should I switch from VLOOKUP to XLOOKUP?
XLOOKUP lets you look up values in any direction (left or right), defaults to exact match without needing FALSE, won't break if someone inserts a column, and includes a built-in fallback message when no match exists.
Do formulas stay live when I export .XLSX from ihatepaid?
Yes. Clicking Save .XLSX writes real formula strings alongside evaluated values so your workbook continues recalculating inside desktop Microsoft Excel, Google Sheets, and LibreOffice.