SUM across multiple sheets and multiple by weight

br0nc0boy

New Member
Joined
Mar 12, 2009
Messages
27
Hi everyone I am doing an exercise where I am trying to sum across multiple tabs based on the drop down. Summing part I know how to do w/ INDIRECT i.e. =SUM(INDIRECT("'"&Tabs&"'!"&CELL("address")))
where "Tabs" is defined name range.

the curve ball is that each of those tabs has different weight (not sure weight is the right word, but it's more of the company's controlling interest)

so below is very rough example, we would get $1,264 if we apply the weight

Tab1 $1,000 100%
Tab2 $500 33%
Tab3 $300 33%

but it's not just one number, it's the entire P&L and there are several portfolios (based on the drop down they will look at different tabs), so I am looking for perhaps one formula that can solve this problem.

Many thanks in advance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
an example of the layout may help , us with specific
but to get the weighting

=SUMPRODUCT(Value Range, percent range)

i look at an example with a tab and dropdown

not sure how you are getting the address ranges to lookup exactly, so hardcoded in my example

date-text-etaf.xlsx
ABCDE
14
15TABS Dropdownsheet2
16
171264SUMPRODUCT(INDIRECT("'"&B15&"'!A2:A5"),INDIRECT("'"&B15&"'!B2:B5"))
18
19
Sheet1
Cell Formulas
RangeFormula
C17C17=SUMPRODUCT(INDIRECT("'"&B15&"'!A2:A5"),INDIRECT("'"&B15&"'!B2:B5"))


date-text-etaf.xlsx
AB
1
210001
35000.33
43000.33
Sheet2


 
Last edited:
Upvote 0
i'm not sure what the summary stabilised means

so assuming the proportionate means apply the value in B1
then
=IF($B$2="yes",INDIRECT("'"&Summary!$B$1&"'!"&ADDRESS(ROW(),COLUMN()))*INDIRECT("'"&Summary!$B$1&"'!$B$1"),INDIRECT("'"&Summary!$B$1&"'!"&ADDRESS(ROW(),COLUMN())))

But thats not the same as you showed originally

Best way is to provide the link as you did
OR use XL2BB

heres the updated file on dropbox
hopefully its close to what you need - otherwise more explanation is needed


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.

XL2BB - summary and one tab example

example-proportion-ETAF.xlsx
ABCD
1PortfolioSS (JV1)<<< idea is to have this drop down control what tabs get SUM
2ProportionateNo
3
4 Same Store Stabilized
5Sales5001,200
6COGS300600
7Gross Profit200600
80
9Expenses100300
10Net Income100300
11
Summary
Cell Formulas
RangeFormula
C5:C6,C9C5=SUMPRODUCT('JV1 Stab'!B5,'JV1 Stab'!$B$1)+SUMPRODUCT('JV2 Stab'!B5,'JV2 Stab'!$B$1)+SUMPRODUCT('JV3 Stab'!B5,'JV3 Stab'!$B$1)
C7C7=C5-C6
B5:B10B5=IF($B$2="yes",INDIRECT("'"&Summary!$B$1&"'!"&ADDRESS(ROW(),COLUMN()))*INDIRECT("'"&Summary!$B$1&"'!$B$1"),INDIRECT("'"&Summary!$B$1&"'!"&ADDRESS(ROW(),COLUMN())))
C10C10=C7-C9
Cells with Data Validation
CellAllowCriteria
B1ListTotal Same Store,SS (Own),SS (JV1),Total Stabilized,JV1 Stab,JV2 Stab,JV3 Stab
B2ListYes,No


example-proportion-ETAF.xlsx
AB
1Company's Controlling Interest100%
2
3
4P&L
5Sales500
6COGS300
7Gross Profit200
8
9Expenses100
10Net Income100
11
SS (JV1)
Cell Formulas
RangeFormula
B1B1=IF(Summary!$B$2="Yes",30%,1)
B7B7=B5-B6
B10B10=B7-B9
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,286
Members
449,076
Latest member
kenyanscott

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