Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Copy drag formula down cells

I have a formula in column D. It references cells from another sheet (Sales)
in the same workbook that are in column C.
I want to drag the formula down column D and have it reference cells moving
across the columns, referencing the same rows from the other sheet.
EG: SUM(Sales!C63:C64)/Sales!C60 becomes SUM(Sales!D63:D64)/Sales!D61.

At the moment, when I drag this formula down the column the row data changes
but the column data remains the same. The opposite to what I want to happen.
--
Thank you,

Colin.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Copy drag formula down cells

EG: SUM(Sales!C63:C64)/Sales!C60 becomes SUM(Sales!D63:D64)/Sales!D61.

Think you meant SUM(Sales!D63:D64)/Sales!D60 ..

If so, try this in the startcell in col D:
=SUM(OFFSET(Sales!C$64,,ROWS($1:1)-1,-2))/OFFSET(Sales!C$60,,ROWS($1:1)-1,)

Above returns:
=SUM(Sales!C63:C64)/Sales!C60

When you copy it down, it'll return:
=SUM(Sales!D63:D64)/Sales!D60

and so on, as desired.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Colin" wrote:
I have a formula in column D. It references cells from another sheet (Sales)
in the same workbook that are in column C.
I want to drag the formula down column D and have it reference cells moving
across the columns, referencing the same rows from the other sheet.
EG: SUM(Sales!C63:C64)/Sales!C60 becomes SUM(Sales!D63:D64)/Sales!D61.

At the moment, when I drag this formula down the column the row data changes
but the column data remains the same. The opposite to what I want to happen.
--
Thank you,

Colin.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Copy drag formula down cells

I'm learning something new every time I ask a question, many thanks for this.
I'm glad I asked 'cause I'd never have worked that one out on my own!
--
Thank you,

Colin.


"Max" wrote:

EG: SUM(Sales!C63:C64)/Sales!C60 becomes SUM(Sales!D63:D64)/Sales!D61.


Think you meant SUM(Sales!D63:D64)/Sales!D60 ..

If so, try this in the startcell in col D:
=SUM(OFFSET(Sales!C$64,,ROWS($1:1)-1,-2))/OFFSET(Sales!C$60,,ROWS($1:1)-1,)

Above returns:
=SUM(Sales!C63:C64)/Sales!C60

When you copy it down, it'll return:
=SUM(Sales!D63:D64)/Sales!D60

and so on, as desired.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Colin" wrote:
I have a formula in column D. It references cells from another sheet (Sales)
in the same workbook that are in column C.
I want to drag the formula down column D and have it reference cells moving
across the columns, referencing the same rows from the other sheet.
EG: SUM(Sales!C63:C64)/Sales!C60 becomes SUM(Sales!D63:D64)/Sales!D61.

At the moment, when I drag this formula down the column the row data changes
but the column data remains the same. The opposite to what I want to happen.
--
Thank you,

Colin.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Copy drag formula down cells

glad it helped, Colin.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Colin" wrote in message
...
I'm learning something new every time I ask a question, many thanks for
this.
I'm glad I asked 'cause I'd never have worked that one out on my own!
--
Thank you,

Colin.



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
Can we drag-copy cells from evry five row to every row JohnDiese Excel Discussion (Misc queries) 3 June 7th 07 08:24 PM
Can I fix a format so it doesn't change when I drag or copy/paste Blah-blah Excel Worksheet Functions 1 February 15th 07 06:17 PM
Drag copy between worksheets gte077g Excel Discussion (Misc queries) 1 November 26th 06 05:03 PM
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
Cannot drag content or formula to another cells Brian Excel Discussion (Misc queries) 2 February 14th 05 11:46 PM


All times are GMT +1. The time now is 07:15 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"