Indirect: What Does It Do ?
Indirect: What Does It Do ?
INDIRECT Page 1 of 2 J K
INDIRECT
North South East West Jan 10 40 70 100 Feb 20 50 80 110 Mar 30 60 90 120 G6 80 =INDIRECT(H9)
Type address of any of the cells in the above table, such as G6 : The value in the cell you typed is :
What Does It Do ? This function converts a plain piece of text which looks like a cell address into a usable cell reference. The address can be either on the same worksheet or on a different worksheet. Syntax =INDIRECT(Text) Formatting No special formatting is needed. Example 1 This example shows how data can be picked form other worksheets by using the worksheet name and a cell address. The example uses three other worksheets named NORTH, SOUTH and EAST. The data on these three sheets is laid out in the same cells on each sheet. When a reference to a sheet is made the exclamation symbol ! needs to be placed between the sheet name and cell address acting as punctuation. Type the name of the sheet, such as North : Type the cell to pick data from, such as C8 : The contents of the cell C8 on North is : The =INDIRECT() created a reference to =NORTH!C8 North C8 #REF!
=INDIRECT(G33&"!"&G34)
Example 2 This example uses the same data as above, but this time the =SUM() function is used to calculate a total from a range of cells. Type the name of the sheet, such as South : South Type the start cell of the range, such as C5 : C5 Type the end cell of the range, such as C7 : C7 The sum of the range C5:C7 on South is : #REF! =SUM(INDIRECT(G44&"!"&G45&":"&G46)) The =INDIRECT() created a reference to =SUM(SOUTH!C5:C7)
INDIRECT Page 2 of 2 J K