Dynamic sum range based on cell value input

leebauman

Board Regular
Joined
Jul 1, 2004
Messages
194
Office Version
  1. 365
Platform
  1. Windows
I need to sum a range of cells and I need the range to be controlled by an input in a cell outside the range. For example:

Book1
HIJ
1Days3
2
3DayQtyFuture Total Qty
41412
52212
63611
74414
85114
96913
10745
11806
1291
13105
Sheet1
Cell Formulas
RangeFormula
J4:J11J4=SUM(I4:I6)


Or, if I change the input to "4", then the range changes to a set of 4 cells:
Book1
HIJ
1Days4
2
3DayQtyFuture Total Qty
41416
52213
63620
74418
85114
96914
107410
1180
1291
13105
Sheet1
Cell Formulas
RangeFormula
J4:J10J4=SUM(I4:I7)


Is this possible? Thank you.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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