In this case, we want to find out of a particular sheet exists in a workbook, so we construct a full reference by concatenating the sheet names in column B with an exclamation mark and “A1”: This returns the text: which goes into the INDIRECT function. INDIRECT then tries to evaluate the text as a reference. When INDIRECT succeeds, the reference is passed into ISREF which returns TRUE. When INDIRECT can’t create a reference, it throws a #REF error, and ISREF returns FALSE.

Dealing with spaces and punctuation in sheet names

If sheet names contain spaces, or punctuation characters, you’ll need to adjust the formula to wrap the sheet name in single quotes like this:

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.