Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 57
Default How to I sum different data from different sheets

Hello. I have a workbook with 12 sheets. In the first one I have in column A:
x , y, z, x, a, z ....and in column B: 100 $, 300 $, .... In the second sheet
I have in column A: x, a, b, c, y, x.... and in column B: 200 $, 400 $....Ans
so on to the 12th sheet. I want in the 13rd sheet in the column A to have x,
y, z ...(it's not important the order ) and in column B to have sum from all
the sheets for x, y, z.....I want to put an accent: in the sheet values from
column A can repeat.

ex:
sheet 1
A B
1 x 100 $
2 y 300 $
3 z 100 $
4 x 200 $
4 ....

sheet 2
A B
1 x 100 $
2 a 300 $
3 b 200 $
4 a 100 $
5.....

sheet.......

sheet 13
A B
1 x (sum sheet1 + sheet 2+ ....sheet 12 )
2 y (sum sheet1 + sheet 2+ ....sheet 12 )
3 z (sum sheet1 + sheet 2+ ....sheet 12 )
........

thank u,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to I sum different data from different sheets

=SUMPRODUCT(--(SUMIF(INDIRECT("Sheet"&ROW(INDIRECT("1:12"))&"!A2 :A20"),"x",INDIRECT("Sheet"&ROW(INDIRECT("1:12"))& "!B2:B20"))))

etc.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Adrian" wrote in message
...
Hello. I have a workbook with 12 sheets. In the first one I have in column
A:
x , y, z, x, a, z ....and in column B: 100 $, 300 $, .... In the second
sheet
I have in column A: x, a, b, c, y, x.... and in column B: 200 $, 400
$....Ans
so on to the 12th sheet. I want in the 13rd sheet in the column A to have
x,
y, z ...(it's not important the order ) and in column B to have sum from
all
the sheets for x, y, z.....I want to put an accent: in the sheet values
from
column A can repeat.

ex:
sheet 1
A B
1 x 100 $
2 y 300 $
3 z 100 $
4 x 200 $
4 ....

sheet 2
A B
1 x 100 $
2 a 300 $
3 b 200 $
4 a 100 $
5.....

sheet.......

sheet 13
A B
1 x (sum sheet1 + sheet 2+ ....sheet 12 )
2 y (sum sheet1 + sheet 2+ ....sheet 12 )
3 z (sum sheet1 + sheet 2+ ....sheet 12 )
.......

thank u,



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default How to I sum different data from different sheets

Try...

=SUMPRODUCT(SUMIF(INDIRECT("'Sheet"&ROW(INDIRECT(" 1:12"))&"'!A1:A100"),A1
,INDIRECT("'Sheet"&ROW(INDIRECT("1:12"))&"'!B1:B10 0")))

If the actual sheet names differ from Sheet1, Sheet2, Sheet3, etc., try
the following instead...

=SUMPRODUCT(SUMIF(INDIRECT("'"&$G$1:$G$12&"'!A1:A1 00"),A1,INDIRECT("'"&$G
$1:$G$12&"'!B1:B100")))

....where G1:G12 contains the sheet names. Adjust the ranges accordingly.

Hope this helps!

In article ,
Adrian wrote:

Hello. I have a workbook with 12 sheets. In the first one I have in column A:
x , y, z, x, a, z ....and in column B: 100 $, 300 $, .... In the second sheet
I have in column A: x, a, b, c, y, x.... and in column B: 200 $, 400 $....Ans
so on to the 12th sheet. I want in the 13rd sheet in the column A to have x,
y, z ...(it's not important the order ) and in column B to have sum from all
the sheets for x, y, z.....I want to put an accent: in the sheet values from
column A can repeat.

ex:
sheet 1
A B
1 x 100 $
2 y 300 $
3 z 100 $
4 x 200 $
4 ....

sheet 2
A B
1 x 100 $
2 a 300 $
3 b 200 $
4 a 100 $
5.....

sheet.......

sheet 13
A B
1 x (sum sheet1 + sheet 2+ ....sheet 12 )
2 y (sum sheet1 + sheet 2+ ....sheet 12 )
3 z (sum sheet1 + sheet 2+ ....sheet 12 )
.......

thank u,

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default How to I sum different data from different sheets

Or use Pivot Table.
No formulas needed.
Data can be of different size,
at different locations, and PT will
automatically adjust.
Excel 2007, but will convert to 2003.
http://www.savefile.com/files/1513255
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I merge data in 2 sheets matching rows of data by last name? Corb Excel Discussion (Misc queries) 1 March 18th 07 05:32 PM
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA Amaxwell Excel Worksheet Functions 4 August 17th 06 06:23 AM
In 3 active sheets in wkbk, determine& display the # of sheets that have data wrpalmer Excel Discussion (Misc queries) 1 November 4th 05 02:01 PM
Chart sheets cause data sheets to be blank Jacinthe Charts and Charting in Excel 2 April 29th 05 02:18 PM
populating sheets based on data from parent sheets seve Excel Discussion (Misc queries) 2 January 15th 05 09:22 PM


All times are GMT +1. The time now is 05:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"