Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Copy formula - how to keep row the same but incrament the column

I am trying to copy a formula but I want to keep the row the same and have
the column incrament by one.

Here is an example of what I would like excel to do when I copy the formula
to the cells below.
=+Sheet4!B3
=+Sheet4!C3
=+Sheet4!D3
=+Sheet4!E3

Instead it does this.
=+Sheet4!B3
=+Sheet4!B4
=+Sheet4!B5
=+Sheet4!B6


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Copy formula - how to keep row the same but incrament the column

You could do it this way:

=INDIRECT("Sheet4!"&CHAR(ROW(A1)+65)&"3")

This will start at column B and will work up to column Z - just copy
it down.

Hope this helps.

Pete

On Jan 21, 12:16*am, Craig wrote:
I am trying to copy a formula but I want to keep the row the same and have
the column incrament by one.

Here is an example of what I would like excel to do when I copy the formula
to the cells below.
=+Sheet4!B3
=+Sheet4!C3
=+Sheet4!D3
=+Sheet4!E3

Instead it does this.
=+Sheet4!B3
=+Sheet4!B4
=+Sheet4!B5
=+Sheet4!B6


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Copy formula - how to keep row the same but incrament the column

Maybe...

=+INDIRECT(ADDRESS(3,ROWS($1:2),4,1,"Sheet4"))

Ken Johnson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Copy formula - how to keep row the same but incrament the colu

Hi Ken,

This works perfectly. Could you explain a little bit about the ROWS($1:2)
part of it. I know it refers to the column_num part of the ADDRESS command.
I just don't quite understand how it works.

Thanks,

Craig

"Ken Johnson" wrote:

Maybe...

=+INDIRECT(ADDRESS(3,ROWS($1:2),4,1,"Sheet4"))

Ken Johnson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Copy formula - how to keep row the same but incrament the colu

Hi Craig,

ROWS($1:2) returns the number of rows in the range $1:2 which is 2
(row 1 and row 2). The column is then the 2nd column or column B.
When the formula is filled down to the next row it changes to ROWS
($1:3) since the $ freezes the 1 and the 2 without the $ is
incremented to 3. Then ROWS($1:3) returns 3 (rows 1, 2 and 3) and the
column is then the 3rd column or column C. And so on down the column.

Hope this makes sense.

Ken Johnson




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
Copy a Formula from a Column to a Row Jon[_7_] Excel Discussion (Misc queries) 2 September 10th 08 12:04 AM
COPY FORMULA DOWN A COLUMN Duncan Excel Discussion (Misc queries) 2 September 6th 07 01:26 AM
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
How do I copy a formula all the way down a column........ lucdol Excel Worksheet Functions 6 February 12th 07 12:23 AM
Copy a formula down a column Otto Moehrbach Excel Worksheet Functions 3 April 13th 06 04:44 PM


All times are GMT +1. The time now is 02:31 AM.

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

About Us

"It's about Microsoft Excel"