Page 148

30 EXCEL FUNCTIONS IN 30 DAYS – PAGE 145

• If the INDIRECT function creates a reference to a range outside the row and column limit, the formula will result in a #REF! error. (Excel 2007 and Excel 2010) • The INDIRECT function cannot resolve a reference to a dynamic named range

Example 1: Create starting reference that doesn't shift In the first example, there are identical numbers in columns C and E, and the totals are the same, using the SUM function. However, the formulas are slightly different. In cell C8, the formula is: =SUM(C2:C4) In cell E8, the INDIRECT function creates a reference to the starting cell, E2: =SUM(INDIRECT("E2"):E4)

Later, if a row is inserted at the top of the lists, and January amounts are entered, the column C total doesn't change. The formula adjusts to the inserted row, shifting down: =SUM(C3:C5) However, the INDIRECT function locks the starting cell to E2, so January is included in the column E total. The ending cell changed, but the starting cell wasn't affected. =SUM(INDIRECT("E2"):E5)

www.contextures.com

30 Excel Functions in 30 days  
30 Excel Functions in 30 days  
Advertisement