JcHub
Cheat sheetFree, no sign-upPDF

Excel Formulas Cheat Sheet: Essential Functions

Essential Excel formulas for searching, filtering, and analyzing spreadsheet data accurately.

Updated on November 30, 2026

Classic Lookup (VLOOKUP)

  • =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Searches the first column of a range and returns a value. Pitfall: lookup value must always be located in the left-most column.
  • =VLOOKUP(A2, Clients!A:D, 3, FALSE)Looks up A2 in column A and returns column C. Set FALSE for exact matches to avoid unexpected or incorrect lookup results.
  • =VLOOKUP(A2, $A$2:$D$100, 2, FALSE)Lock your range with dollar signs ($) so it does not shift when dragging the formula down through other rows.
  • =IFERROR(VLOOKUP(A2, B:C, 2, FALSE), "Not found")Prevents N/A errors when a value is missing by displaying a custom fallback message instead of a broken formula.

Modern Lookup (XLOOKUP)

  • =XLOOKUP(lookup_value, lookup_array, return_array)Replaces VLOOKUP. It can look to the left or right without needing to count column indexes.
  • =XLOOKUP(A2, B2:B100, C2:C100, "Unknown")Looks up A2 in B and returns the matching row from C. Allows specifying fallback text directly inside the function.
  • =XLOOKUP(A2, B2:B100, C2:E100)Returns multiple adjacent columns at once (C, D, and E) for the matched row without duplicate formulas.
  • =XLOOKUP(A2, B2:B100, C2:C100, , 0, -1)Searches from bottom to top to retrieve the last occurrence of an item in your data list.

Combining INDEX and MATCH

  • =MATCH(lookup_value, lookup_array, 0)Returns the relative row or column position of a value. The 0 parameter forces an exact match.
  • =INDEX(array, row_num, [column_num])Returns the value at the intersection of a specific row and column within a target array.
  • =INDEX(A2:A100, MATCH(B2, C2:C100, 0))Classic dynamic lookup: searches B2 inside column C and retrieves the corresponding row from column A.
  • =INDEX(C2:E100, MATCH(A2, B2:B100, 0), 2)Retrieves data from the 2nd column of array C2:E100 for the specific row matched by the function.

Logic & Conditions (IF, AND, OR)

  • =IF(logical_test, value_if_true, value_if_false)Tests a logical condition and returns one value if true, and a different value if false.
  • =IF(AND(A2>=5000, B2="Dakar"), "Approved", "Pending")Combines multiple conditions that must ALL be true simultaneously to trigger the true branch.
  • =IF(OR(A2="Orange", A2="MTN"), "Mobile Money", "Bank")Returns the true value as long as at least ONE of the specified conditions is met.
  • =IFS(A2>=18, "Adult", A2>=12, "Teen", TRUE, "Child")Avoids complex nested IF statements. Evaluates conditions in sequence and stops at the first true result.

Conditional Aggregations (SUMIFS)

  • =SUMIFS(sum_range, criteria_range1, criteria1)Adds cells that meet one or more criteria. Pay attention to range sizes: all ranges must be equal.
  • =SUMIFS(C2:C100, A2:A100, "Brazzaville", B2:B100, ">1000")Sums range C2:C100 only if column A equals Brazzaville and column B exceeds 1000.
  • =COUNTIFS(A2:A100, "Paid", B2:B100, "Mobile Money")Counts the number of rows that satisfy all provided filter criteria without summing values.
  • =AVERAGEIFS(C2:C100, A2:A100, "Approved")Calculates the average of numeric cells meeting criteria. Automatically ignores empty cells.

Text Cleaning & Error Handling

  • =IFERROR(formula, "Error text")Catches all formula errors (#N/A, #VALUE!, #DIV/0!) and returns a clean alternative value.
  • =TRIM(text)Removes leading, trailing, and extra internal spaces. Crucial before running lookup functions.
  • =CLEAN(text)Removes non-printable line breaks and special control characters imported from raw text or CSV.
  • =TEXT(A2, "YYYY-MM-DD")Converts a date or number into a custom formatted string without losing key formatting upon merge.

Other resources

Need help with your website?

I build your custom website.

Showcase site, online shop, management tool: let’s talk about your project.

See the services