Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can we drag-copy cells from evry five row to every row | Excel Discussion (Misc queries) | |||
Can I fix a format so it doesn't change when I drag or copy/paste | Excel Worksheet Functions | |||
Drag copy between worksheets | Excel Discussion (Misc queries) | |||
Copy an Drag cell Formula Problem | Excel Discussion (Misc queries) | |||
Cannot drag content or formula to another cells | Excel Discussion (Misc queries) |