Need Help Using the outcome of the Address Function in the Sum Function

PleaseHelp2

New Member
Joined
Jul 1, 2011
Messages
2
I've used the following formula to get the column location of a given piece of data (in cell B1) in another sheet.

=ADDRESS(35,MATCH(B1,'Sheet2'!A4:AE4,0),4)

So L35 is displayed in the cell (lets say it's cell B3)

Now I want to use L35 in the sum function, and I'm stuck.

I need the result of =SUM(Sheet2!B35:L35), but I need to pull the L35 parameter from cell B3 where it is displayed, or using the formula above. The sum will always start with B35, but where the sum function ends is dependent on the Address formula above.

Can anyone help me. I feel like this should be easy, but I can't get it to work.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the board.

Try:
Code:
=SUM(Sheet2!B35:(INDIRECT(B3)))
 
Upvote 0
Rather than get the address as text and then convert that with INDIRECT you could do the whole thing in one go using INDEX function, i.e.

=SUM(Sheet2!B35:INDEX('Sheet2'!A35:AE35,MATCH(B1,'Sheet2'!A4:AE4,0)))
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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