View Single Post
 
Old 03-25-2010, 12:23 AM
ConneXionLost's Avatar
ConneXionLost ConneXionLost is offline Windows XP Office 2003
Simulacrum
 
Join Date: Jan 2010
Location: Victoria, Canada
Posts: 86
ConneXionLost is on a distinguished road
Default

This INDEX function will return any value from a range where the row and column within the range is identified.

The first portion:

Code:
'complaint index'!$G$9:$P$9
refers to the source range. As per your description, it is one row deep and ten columns wide. Note that the dollar signs (absolute reference) must remain in place to prevent the formula from losing it's focus while you auto-fill.

The second portion:

Code:
1
identifies which row of the source range to return.

The third/final portion:

Code:
ROW()-8
does all the work here. It identifies which column of the source range to return. You indicated the destination cell would begin in cell E9, so the ROW() will read that the formula is on the ninth row then subtract 8 from it. As you auto-fill this formula down from the ninth row on the destination sheet, the ROW()-8 will increment 1,2,3,... and provide the formula with a column number. Remember, you're trying to transpose the rows & columns, that's why a row is acting as a column reference.

Hope this helps,

Cheers,
Reply With Quote