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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
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,216,005
Messages
6,128,231
Members
449,435
Latest member
Jahmia0616

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