Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 177
Default Using Index to Transpose, Update Reference Cells as you Drag Down

I have this in cell L9.

=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11)

It works great when I drag across, transposing column data on another sheet
into a row.

But how do I get it to work so when I drag the formula down to cell L10,
that it changes to this:

=INDEX(Sheet1!$G$36:$G$51,COLUMN()-11)


Thanks.

And separately, I don't really understand why the -11 works. I viewed
Excel help and didn't understand. I found the -11 works for me by trial and
error. Any more intuitive explanation of choosing the right number like -11
would be great.

SteveC






  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Using Index to Transpose, Update Reference Cells as you Drag Down

I have this in cell L9.
=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11)
And separately, I don't really understand why the -11 works.


The reason -11 works is because you have the formula entered in cell L9 and
column L is column number 12. So:

=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11) =
=INDEX(Sheet1!$F$36:$F$51,12-11) =
=INDEX(Sheet1!$F$36:$F$51,1) =
=F36

As you copy across the COLUMN() increments by 1 and the result of the
subtraction also increments by 1.

So, if you want to transpose the entire range, I'll assume it's F36:H51:

=INDEX(Sheet1!$F$36:$H$51,COLUMNS($A:A),ROWS($1:1) )

Biff

"SteveC" wrote in message
...
I have this in cell L9.

=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11)

It works great when I drag across, transposing column data on another
sheet
into a row.

But how do I get it to work so when I drag the formula down to cell L10,
that it changes to this:

=INDEX(Sheet1!$G$36:$G$51,COLUMN()-11)


Thanks.

And separately, I don't really understand why the -11 works. I viewed
Excel help and didn't understand. I found the -11 works for me by trial
and
error. Any more intuitive explanation of choosing the right number
like -11
would be great.

SteveC








  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 177
Default Using Index to Transpose, Update Reference Cells as you Drag D

Great! Extremely useful formula. Thanks very much for the explanation too.

"Biff" wrote:

I have this in cell L9.
=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11)
And separately, I don't really understand why the -11 works.


The reason -11 works is because you have the formula entered in cell L9 and
column L is column number 12. So:

=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11) =
=INDEX(Sheet1!$F$36:$F$51,12-11) =
=INDEX(Sheet1!$F$36:$F$51,1) =
=F36

As you copy across the COLUMN() increments by 1 and the result of the
subtraction also increments by 1.

So, if you want to transpose the entire range, I'll assume it's F36:H51:

=INDEX(Sheet1!$F$36:$H$51,COLUMNS($A:A),ROWS($1:1) )

Biff

"SteveC" wrote in message
...
I have this in cell L9.

=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11)

It works great when I drag across, transposing column data on another
sheet
into a row.

But how do I get it to work so when I drag the formula down to cell L10,
that it changes to this:

=INDEX(Sheet1!$G$36:$G$51,COLUMN()-11)


Thanks.

And separately, I don't really understand why the -11 works. I viewed
Excel help and didn't understand. I found the -11 works for me by trial
and
error. Any more intuitive explanation of choosing the right number
like -11
would be great.

SteveC









  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Using Index to Transpose, Update Reference Cells as you Drag D

You're welcome. Thanks for the feedback!

Biff

"SteveC" wrote in message
...
Great! Extremely useful formula. Thanks very much for the explanation
too.

"Biff" wrote:

I have this in cell L9.
=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11)
And separately, I don't really understand why the -11 works.


The reason -11 works is because you have the formula entered in cell L9
and
column L is column number 12. So:

=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11) =
=INDEX(Sheet1!$F$36:$F$51,12-11) =
=INDEX(Sheet1!$F$36:$F$51,1) =
=F36

As you copy across the COLUMN() increments by 1 and the result of the
subtraction also increments by 1.

So, if you want to transpose the entire range, I'll assume it's F36:H51:

=INDEX(Sheet1!$F$36:$H$51,COLUMNS($A:A),ROWS($1:1) )

Biff

"SteveC" wrote in message
...
I have this in cell L9.

=INDEX(Sheet1!$F$36:$F$51,COLUMN()-11)

It works great when I drag across, transposing column data on another
sheet
into a row.

But how do I get it to work so when I drag the formula down to cell
L10,
that it changes to this:

=INDEX(Sheet1!$G$36:$G$51,COLUMN()-11)


Thanks.

And separately, I don't really understand why the -11 works. I viewed
Excel help and didn't understand. I found the -11 works for me by
trial
and
error. Any more intuitive explanation of choosing the right number
like -11
would be great.

SteveC











Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell reference update when copied and pasted Dave Excel Worksheet Functions 1 April 5th 06 08:52 PM
Auto update to "tab" in a reference link Missy Excel Worksheet Functions 1 February 4th 06 12:57 PM
Excel should be able to map which cells reference each other. URCHE Excel Worksheet Functions 1 October 11th 05 03:23 AM
Populate multiple cells using the same reference nick Excel Worksheet Functions 0 October 3rd 05 03:33 PM
Removing $$ Reference in cells Castor Excel Worksheet Functions 1 August 13th 05 12:36 AM


All times are GMT +1. The time now is 08:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"