Vlookup and Sum Across Multiple Tabs?

Dean99

New Member
Joined
May 4, 2012
Messages
9
Hi Everyone-

I currently have a tax workbook with 50+ tabs (at least one for each State), and in each tab there are tables with many divisions and the amount of taxes paid. I'm trying to figure out a way to do a vlookup and sum in a main summary worksheet such that I can get the total taxes paid by each division (it would need to vlookup each of the 50+ tabs, and then sum). Is there a way to do this? I'm not very good with VBA so please be gentle if that's what is required . . .

Thanks in advance for your help!
 
Or if you have at the top of your page:
Manager A and total from that page with:

Excel 2007
ABCDEFG
2Manager A930Manager B325Manager C125
3
4Manager A900
5Manager A15
6Manager B25
7Manager C25
8Manager A15
9Manager B200
10Manager B100
11Manager C100
Sheet1
Cell Formulas
RangeFormula
C2=SUMIF($A$4:$A$11,B2,$B$4:$B$11)
E2=SUMIF($A$4:$A$11,D2,$B$4:$B$11)
G2=SUMIF($A$4:$A$11,F2,$B$4:$B$11)


Then use a formula I listed before.
That is easeist
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
I think I'm doing something wrong . . . I defined list to be

=Sheet1!$A$1:$B$10,Sheet2!$A$1:$B$10,Sheet3!$A$1:$B$10

and then I typed in the formula on my summary tab as

=SUMPRODUCT(SUMIF(INDIRECT("'"&list&"'!A1:A10"),A1,INDIRECT("'"&list&"'!B1:B10")))

What am I doing wrong? I apologize if I'm not getting this fast enough . . .
 
Upvote 0
Your list should be in one column, as one range.
Please see my example-the last line in my previous post.
 
Upvote 0
Ok I'm still not getting it, but I understand conceptually . . . why can't I just do it this way?

Define Test1 =Sheet1!$A:$A,Sheet2!$A:$A
Define Test2 =Sheet1!$B:$B,Sheet2!$B:$B

Then in my summary tab, to sum A for sheets 1 and 2 I use

=SUMIF(Test1,"A",Test2)

When I try that, I get an error . . . why?
 
Upvote 0
You are listing sheets name not the ranges.
Why you are getting error?
Becouse SUMIF does not work this why..I 'm sure there is not formula that work like this.(multiple ranges)
 
Upvote 0
Is there any way you can send me a working spreadsheet so I can see what you are doing in action? I seriously cannot figure out what I'm doing wrong . . . .
 
Upvote 0
If you had faloow the links I have posted you woudl get this
Excel 2010
AB
ManagerSales
Manager A
Manager B
Manager C

<colgroup><col style="background-color: #DAE7F5"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]$900 [/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]$600 [/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]$500 [/TD]

</tbody>
Sheet1




Excel 2010
AB
ManagerSales
Manager C
Manager D
Manager A

<colgroup><col style="background-color: #DAE7F5"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]$200 [/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]$500 [/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]$100 [/TD]

</tbody>
Sheet2



Excel 2010
AB
ManagerSales
Manager C
Manager A
Manager D

<colgroup><col style="background-color: #DAE7F5"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]$200 [/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]$5 [/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]$70 [/TD]

</tbody>
Sheet3
Excel 2010
ABCDEF
ManagerSales
Manager ASheet1
Manager BSheet2
Manager CSheet3
Manager D

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]1005[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]600[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]900[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]570[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Summary

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]B2[/TH]
[TD="align: left"]=SUMPRODUCT(SUMIF(INDIRECT("'"&list&"'!A2:A100"),A2,INDIRECT("'"&list&"'!B2:b100 ")))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Workbook Defined Names[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Name[/TH]
[TH="align: left"]Refers To[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]list[/TH]
[TD="align: left"]=Summary!$F$2:$F$4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]



I'm trying to do the same thing only summing the daily totals of my business expenses. Each day being a sheet and a monthly summary sheet. You lost me at &List&. I downloaded the file you uploaded to drop box as well. I understand making the list of sheets, which I did. My question is how do I define that as my &List&?
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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