Need to SUM a dynamic range

calebsg

New Member
Joined
Sep 12, 2002
Messages
3
Hi folks,

I thought I knew something about Excel, but this one has me beat.

I have this function: SUM(Sheet1:Sheet10!C68) and it works. But, I need the H68 part to be dynamically generated. I have a cell (A4) where a date is entered, then that date should be matched against Sheet 1 and the cell reference is grabbed. The cell reference won't change from page to page, but the value of the cell will.

I can look up and grab the cell reference corresponding to the date with ADDRESS(MATCH(A4,Sheet1!A1:A94,0)-1,7,4,TRUE) to return the cell C68 on the first sheet.

When I try to put the SUM and ADDRESS/MATCH functions together like this:
SUM(Sheet1:Sheet10!ADDRESS(MATCH(A4,Sheet1!A1:A94,0)-1,7,4,TRUE))
I get an error message saying my formula contains an error. What can I do?

If I need to clarify a point just say so.

Thanks in Advance.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I'm at home with no resources... but try:

SUM("Sheet1:Sheet10!" & ADDRESS(MATCH(A4,Sheet1!A1:A94,0)-1,7,4,TRUE))

or

SUM(Sheet1:Sheet10! & ADDRESS(MATCH(A4,Sheet1!A1:A94,0)-1,7,4,TRUE))

Hope this helps
 
Upvote 0
beg your pardon, the first one gives a #VALUE error. I stripped out the ADDRESS(MATCH()) portion and it returns a value of G68. I checked G68 on the pages and they all have numbers in them.
 
Upvote 0
On 2002-09-13 15:47, calebsg wrote:
beg your pardon, the first one gives a #VALUE error. I stripped out the ADDRESS(MATCH()) portion and it returns a value of G68. I checked G68 on the pages and they all have numbers in them.

I don't believe constructing 3d refs bit by bit is possible.
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,792
Members
449,048
Latest member
greyangel23

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