Which returns the sum of the named range “data” on Sheet1. Once the string is assembled using values in B6 and C6, INDIRECT evaluates and transforms the string into a proper reference. Note you can refer to a named range in a formula without using INDIRECT. For example, the formula in D6 could be written: However, if you want to assemble the reference as text, and have Excel treat the text as a reference, you need to use INDIRECT. Note: The single quotes are added in the formula above so that the formula will work when a sheet name contains spaces.
Dave Bruns
Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.