Excel
#9

Consolidating Dynamic Worksheets with the INDIRECT Function

MediumKPMG
Interview Question #9
Asked at KPMG

A workbook has twelve monthly tabs named `Jan`, `Feb`, `Mar`, etc., each having Total Revenue in cell `B10`. On a Summary sheet, cell `A2` contains the text 'Mar'. Write a formula in cell `B2` using INDIRECT to dynamically fetch cell `B10` from the tab named in `A2`.

Input Table: Summary Sheet (A1:A3)
2 rows preview
Month Tab Name (Col A)Total Revenue (Col B)
JanFetch Jan!B10
MarFetch Mar!B10
Expected Output Structure1 rows
Month Tab (A2)Consolidated Revenue (B2)
Mar125400
Interview Context

Asked frequently in data analyst and business analyst technical rounds. Focus on clean filtering, optimal indexing usage, and unambiguous column selection.

Microsoft Excel 365
E2fx
ABCDEF
1
Month Tab Name (Col A)
Total Revenue (Col B)
2
Jan
Fetch Jan!B10
Target [Enter Formula]
3
Mar
Fetch Mar!B10
4
5
6
7
Click on target cell E2 and enter your formula above.Shortcut: Click "Load Solution" to inspect
Chat with us