Double indirect

Peter100

Well-known Member
I'm wanting to create a SUM(xx:xx) with both sides of the : being selected from the cell contents of A1 & B1 ie.
If A1 contained the value C7
and
B1 contained the value C50

The SUM(xx:xx) would calculate the sum of C7 to C 50

I (with the thanks of "Jminskey") can now calculate it with one variable using =SUM(INDIRECT(A1&":C50")) but how can I make the second part ie. the C50 be read from B1

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
=SUM(INDIRECT(A1):INDIRECT(B1))

..or:

=SUM(INDIRECT(A1&":"&B1))

I feel a right plxxxxr as usual I was trying the obscure route and ignoring the obvious

Thank you

Peter100 said:
I feel a right plxxxxr as usual I was trying the obscure route and ignoring the obvious

Thank you

And your first question doesn't require INDIRECT...

Replies
16
Views
454
Replies
6
Views
261
Replies
1
Views
235
Replies
1
Views
150
Replies
0
Views
192

1,203,650
Messages
6,056,552
Members
444,873
Latest member
martins23

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.

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

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