Formulas are the heart of Excel's power. They enable you to perform calculations, manipulate text, analyze data, and automate tasks. This guide takes you from basic formulas to advanced techniques that will make you a formula expert.
Every Excel formula starts with an equals sign (=):
=SUM(A1:A10)
=AVERAGE(B2:B20)
=IF(C1>100, "High", "Low")
Excel uses three types of cell references:
Relative References (A1):
=A1+B1 → when copied down becomes =A2+B2Absolute References ($A$1):
=$A$1+B1 → when copied down becomes =$A$1+B2Mixed References (A$1 or $A1):
=$A1 → column fixed, row adjusts=SUM(A1:A10) // Add all values
=AVERAGE(A1:A10) // Calculate average
=MIN(A1:A10) // Find minimum value
=MAX(A1:A10) // Find maximum value
=COUNT(A1:A10) // Count numbers
=IF(A1>100, "Yes", "No") // Conditional logic
=AND(A1>50, A1<100) // All conditions true
=OR(A1>100, A2>100) // Any condition true
=IFS(A1>90, "A", A1>80, "B", A1>70, "C") // Multiple conditions
=VLOOKUP(A1, D1:F20, 3, FALSE) // Vertical lookup
=HLOOKUP(A1, D1:F20, 3, FALSE) // Horizontal lookup
=XLOOKUP(A1, D1:D20, F1:F20) // Modern lookup (Excel 365)
=INDEX(D1:D20, 5) // Get value by position
=MATCH(A1, D1:D20, 0) // Find position
=LEFT(A1, 5) // Extract left characters
=RIGHT(A1, 5) // Extract right characters
=MID(A1, 3, 5) // Extract middle characters
=CONCATENATE(A1, " ", B1) // Join text (old)
=CONCAT(A1, " ", B1) // Join text (new)
=TEXT(A1, "mm/dd/yyyy") // Format number as text
=TODAY() // Current date
=NOW() // Current date & time
=DATE(2024, 11, 1) // Create date
=YEAR(A1) // Extract year
=MONTH(A1) // Extract month
=DAY(A1) // Extract day
=DATEDIF(A1, A2, "d") // Date difference
Combine multiple functions for powerful results:
=IF(AND(A1>50, A1<100), "Valid", "Invalid")
=SUM(IF(A1:A10>50, A1:A10, 0))
=LEFT(MID(A1, 5, 10), 3)
Perform calculations on multiple items:
=SUM(A1:A10*B1:B10) // Array multiplication
=FILTER(A1:A10, B1:B10>100) // Filter array
=SORT(A1:A10) // Sort array
Make formulas more readable:
// Define: Sales = A1:A100
=SUM(Sales) // Instead of =SUM(A1:A100)
=AVERAGE(Sales) // Much clearer!
Excel 365 formulas automatically spill results:
=UNIQUE(A1:A100) // Returns unique values
=SORT(A1:A100) // Returns sorted array
=FILTER(A1:A100, B1:B100>50) // Returns filtered array
Prevent and handle errors gracefully:
=IFERROR(VLOOKUP(A1, D1:F20, 3, FALSE), "Not Found")
=IFNA(VLOOKUP(A1, D1:F20, 3, FALSE), "No Match")
=ISERROR(A1/B1) // Check for errors
Combine multiple functions for advanced lookups:
=INDEX(D1:D20, MATCH(1, (A1:A20="Product A")*(B1:B20>100), 0))
=XLOOKUP(A1&B1, C1:C20&D1:D20, E1:E20)
Break complex formulas into multiple steps for clarity.
Add comments explaining complex logic:
❌ Don't hard-code values in formulas:
=SUM(A1:A10*1.15) // Don't do this
✅ Do reference cells:
=SUM(A1:A10*TaxRate) // Much better!
❌ Don't ignore errors:
=VLOOKUP(A1, D1:F20, 3, FALSE) // Shows #N/A on error
✅ Do handle errors:
=IFERROR(VLOOKUP(A1, D1:F20, 3, FALSE), 0) // Returns 0 on error
=IFS(A1>=90, "A", A1>=80, "B", A1>=70, "C", A1>=60, "D", TRUE, "F")
=IF(A1>10000, A1*0.1, IF(A1>5000, A1*0.05, 0))
=YEAR(TODAY())-YEAR(A1)-(MONTH(TODAY())<MONTH(A1))
Mastering Excel formulas is a journey that transforms you from a basic user to a power user. Start with the fundamentals, practice regularly, and gradually work your way to advanced techniques.
Remember: The best way to learn formulas is through hands-on practice. Experiment, make mistakes, and learn from them!
Happy formula building!
Explore our comprehensive Excel resources:
🎉 LIMITED TIME OFFER! 🎉
FREE FOR THIS YEAR ONLY!
Start your Excel journey today - no credit card required!
Powered by Solver360°
Your complete Excel learning solution