Indirect sum formula

tasander

Board Regular
Joined
Mar 6, 2009
Messages
67
Hi

I want to have a formula which can look up the row of a certain item and then do a sum on that entire row.

So far i can do a match formula to pull back the row number that i need but i am unable to find a way to map this into another formula. If i was to write the formula out (without calculating the row) it would be

=SUM('[Country file.xls]Austria'!$35:$35)

My formual for working out the row is

=MATCH(B4& " " &D3,'[Country File.xls]Austria'!$A:$A,0)

Can i put the second formula into the first formula (red text) somehow so that if the row changes then the formula will still work.

Many Thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try:
=SUM(INDIRECT("'[Country file.xls]Austria'!"&MATCH(B4& " " &D3,'[Country File.xls]Austria'!$A:$A,0)&":"&MATCH(B4& " " &D3,'[Country File.xls]Austria'!$A:$A,0))
 
Upvote 0
I would recommend INDEX instead of INDIRECT

=SUM(INDEX('[Country file.xls]Austria'!$A:$IV,Match(....),0))
 
Upvote 0
Try:
=SUM(INDIRECT("'[Country file.xls]Austria'!"&MATCH(B4& " " &D3,'[Country File.xls]Austria'!$A:$A,0)&":"&MATCH(B4& " " &D3,'[Country File.xls]Austria'!$A:$A,0))
Note that if using INDIRECT the source file must be open for the formula to work correctly.
 
Upvote 0

Forum statistics

Threads
1,224,562
Messages
6,179,526
Members
452,923
Latest member
JackiG

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