Change Column Reference When Formula is Dragged Down

billbilliamson

New Member
Joined
May 31, 2018
Messages
5
How can I change the Column reference as a formula is dragged down?

For example,

Sumif(sheet1!CY:CY,

When I drag down the formula, I want it to change to be:

Sumif(sheet1!CZ:CZ,

And so on.

Is it some kind of Indirect or Offset formula?

Thanks!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Offset works. I entered some sample data into a blank worksheet to prove the concept to myself. Use this as a starting point and alter any portions as necessary. The A1, A2, A3, etc. change as I drag down.


Book1
ABCDEF
131111
221112
342222
41133
51
65
71
Sheet1
Cell Formulas
RangeFormula
A1=SUMIF(OFFSET(C:C,0,ROW(A1)-1),"="&1)
A2=SUMIF(OFFSET(C:C,0,ROW(A2)-1),"="&1)
A3=SUMIF(OFFSET(C:C,0,ROW(A3)-1),"="&1)
A4=SUMIF(OFFSET(C:C,0,ROW(A4)-1),"="&1)
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top