Sumif changing sum range

ReportingRuth

New Member
Joined
Sep 28, 2010
Messages
8
How do you program a sumif with a variable range?

Code:
=SUMIFS($AE$12:$AE$79,$Y$12:$Y$79,C$10)
Instead of a fixed AE column I would like it to vary like this.

Code:
=ADDRESS(12,ROWS($A$1:$A1)*2+29)
If I substitute address function in the sumif sum range excel yells at me :confused:

Hope you can help,
~RUTH~
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Welcome to the board...

Try

=SUMIFS(INDEX($AE$12:$IV$79,0,ROWS($A$1:$A1)*2+29),$Y$12:$Y$79,C$10)

Hope that helps.


However, judging by your absolute reference to C$10, it appears you're filling formula to the RIGHT, not DOWN.
In that case, you need to use COLUMNS instead of ROWS.

=SUMIFS(INDEX($AE$12:$IV$79,0,COLUMNS($A$1:A$1)*2+29),$Y$12:$Y$79,C$10)
 
Upvote 0
Care to post the formula how does it look like after copying once?

Sure Aladin,

The columns should increase like this inside the sumif.

Code:
=ADDRESS(12,ROWS($A$1:$A1)*2+29)
=ADDRESS(12,ROWS($A$1:$A2)*2+29)
=ADDRESS(12,ROWS($A$1:$A3)*2+29)
...
Hope that is clear for you,
~RUTH~
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,915
Members
452,949
Latest member
beartooth91

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