Skip to main content

Stop Using Excel's INDIRECT Function: Better Alternatives Explained

MyOnlineTrainingHubJuly 15, 202513 min48,361 views
22 connections·36 entities in this video→

The Problems with Excel's INDIRECT Function

  • πŸ’‘ The INDIRECT function converts text into a cell reference, which seems powerful but is a leading cause of spreadsheets breaking, slowing down, and becoming difficult to debug.
  • ⚠️ A key issue is its volatility, causing Excel to recalculate every time any change is made, significantly impacting performance.
  • ⚠️ Renaming sheet tabs breaks formulas that use INDIRECT to reference them, unlike standard cell references.
  • ⚠️ INDIRECT does not work when referencing closed workbooks.

Alternative 1: Power Query for Cross-Sheet Data

  • πŸš€ For consolidating data from multiple sheets (e.g., monthly reports), Power Query is a robust alternative to INDIRECT.
  • πŸ“Š Power Query can connect to tables, clean data (like removing prefixes or changing data types), and combine them into a single table, which can then be used for Pivot Tables or formulas.
  • βœ… New data from added sheets can be incorporated with a single click by refreshing the query, avoiding volatile functions and formula errors.

Alternative 2: SWITCH Function for Defined Names

  • 🎯 When toggling between different defined names (e.g., summing Q1 vs. Q2 sales), the SWITCH function is a non-volatile and more auditable replacement for INDIRECT.
  • πŸ› οΈ While the SWITCH formula might be longer, it clearly shows references, making it easier to troubleshoot than INDIRECT.

Alternative 3: FILTER Function for Dependent Dropdowns

  • 🧩 For creating dependent drop-down lists that change based on another cell's selection, the FILTER function (available in Excel 2021+) is superior to INDIRECT.
  • πŸ”— Combined with XLOOKUP, UNIQUE, SORT, and TRANSPOSE, FILTER can dynamically populate lists for countries and regions, which update automatically as data changes.
  • ⚑ This approach avoids the performance issues associated with volatile functions like INDIRECT, especially with large datasets.

Advanced Alternative: LAMBDA Functions

  • 🧠 For building dynamic and flexible formulas, LAMBDA functions allow users to create their own custom functions, offering a powerful way to enhance Excel workflows.
Knowledge graph36 entities Β· 22 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
36 entities
Chapters6 moments

Key Moments

Transcript52 segments

Full Transcript

Topics13 themes

What’s Discussed

INDIRECT FunctionExcel FormulasPower QueryData ConsolidationSWITCH FunctionDefined NamesFILTER FunctionDependent DropdownsData ValidationXLOOKUP FunctionLAMBDA FunctionsVolatile FunctionsExcel Performance
Smart Objects36 Β· 22 links
ProductsΒ· 21
ConceptsΒ· 14
LocationΒ· 1