complex summing of multiple worksheets

simonf

Board Regular
Joined
Jun 18, 2002
Messages
207
Book1
ABCDEFG
1Aug-02Sep-02Oct-02Nov-02Total
2Revenue
3Book2,28815,38929,96546,92694,568
4CD4,9004,8145,3775,58020,671
5DVD250238226214927
6Tape6547588688573,137
7
8GrossRevenue8,09221,19836,43653,578119,303
9
10Expenses
11Bankcharges52856387287
12ConsultingFees4,0007,5208,7409,16829,428
13Depreciation6442257928976
14GeneralOffice5465119
15Professionalfees478555856571,775
16
17TotalExpenses5,1748,4398,96710,00432,584
18
19NetIncome2,91812,75927,46843,57386,719
20
Happy



Hi, I have multiple worksheets each containing a financial statement like the above. Each worksheet has a different company name. Each worksheet's type of revenue and expenses could be different.

I need to combine all of them into a worksheet of predetermined format, thus pivot table is not a consideration. All the worksheets and the summary worksheet is in the same workbook.

In the summary worksheet, I have a check box to select which company I want to be included in the summary. So everytime I check a company, the name would appear in A1:A10. The way the formula is setup now is a multiple IF statements hard coded in each cell. ie. IF A1=HAPPY,HAPPY!D14,0)+IF(A2=SAD,SAD!D14,0+IF(A3=MAD,MAD!D14,0)+IF(A4=JOY,JOY!D14,0)

So the more companies I have, the more IF I have to add-on. Now, I can use the INDEX(MATCH()) to grab the info I need from each company to the summary worksheet.

The problem is how to sum each number according to which companies are selected.

I hope I'm explaining it clearly. Is there a formula or VBA procedure to look at a range of worksheet names and sum a particular cells from the different worksheets?
 
Just numbers. Can range from 0 to whatever. Row headings are revenue/expense categories and column headings are months. Thanks.
 
Upvote 0

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.
On 2002-10-29 16:29, simonf wrote:
Just numbers. Can range from 0 to whatever. Row headings are revenue/expense categories and column headings are months. Thanks.

How do you suppose to compute the cell to consolidate from the target/selected worksheets at from such numbers?
 
Upvote 0
One question regarding THREED function: If i have Sheet1 to Sheet6, I can't seem to get it to work if I only want to SUMPRODUCT Sheet1 to Sheet4. It'll only do it for Sheet1 to Sheet6. Kind of a all or nothing deal. Is this correct? Thanks.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

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