Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Sumif across mutiple sheets

I almost found something here, but not exactly what I need.

I have 20 sheets named (tabbed) after different cities (let's say starts
with "SHA", ends with "SYD"). Their row 10 (from column F to Z) contains when
the sales happens (2008,2009 etc, BUT each has a different start). Row 12
(from column F to Z) has the corresponding sales amount.

I also have a total sheet and in the total sheet I need to sum up the sales
of all the cities by year (from column F=2008 to column Z=2028).

I find a fomula he
=SUM(SUMIF(INDIRECT("Sheet"&{1,2,3}&"!A:A"),"EU",I NDIRECT("Sheet"&{1,2,3}&"!C:C"))).
The only problem is I have 20 sheets and I tried to use "SHA:SYD!F10:Z10" to
replace "Sheet"&{1,2,3}&"!C:C" but it doesn't work. Any idea? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sumif across mutiple sheets

Put the sheet names in M1:M20 and use

=SUMPRODUCT(SUMIF(INDIRECT(M1:M20&"!A:A"),"EU",IND IRECT(M1:M20&"!C:C")))

--
---
HTH

Bob


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



"jwang036" wrote in message
...
I almost found something here, but not exactly what I need.

I have 20 sheets named (tabbed) after different cities (let's say starts
with "SHA", ends with "SYD"). Their row 10 (from column F to Z) contains
when
the sales happens (2008,2009 etc, BUT each has a different start). Row 12
(from column F to Z) has the corresponding sales amount.

I also have a total sheet and in the total sheet I need to sum up the
sales
of all the cities by year (from column F=2008 to column Z=2028).

I find a fomula he
=SUM(SUMIF(INDIRECT("Sheet"&{1,2,3}&"!A:A"),"EU",I NDIRECT("Sheet"&{1,2,3}&"!C:C"))).
The only problem is I have 20 sheets and I tried to use "SHA:SYD!F10:Z10"
to
replace "Sheet"&{1,2,3}&"!C:C" but it doesn't work. Any idea? Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Sumif across mutiple sheets

Thanks a lot! Just for my curiosity, why sumproduct? I tried sum, it didn't
work. I didn't think of using sumproduct at all.

"Bob Phillips" wrote:

Put the sheet names in M1:M20 and use

=SUMPRODUCT(SUMIF(INDIRECT(M1:M20&"!A:A"),"EU",IND IRECT(M1:M20&"!C:C")))

--
---
HTH

Bob


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



"jwang036" wrote in message
...
I almost found something here, but not exactly what I need.

I have 20 sheets named (tabbed) after different cities (let's say starts
with "SHA", ends with "SYD"). Their row 10 (from column F to Z) contains
when
the sales happens (2008,2009 etc, BUT each has a different start). Row 12
(from column F to Z) has the corresponding sales amount.

I also have a total sheet and in the total sheet I need to sum up the
sales
of all the cities by year (from column F=2008 to column Z=2028).

I find a fomula he
=SUM(SUMIF(INDIRECT("Sheet"&{1,2,3}&"!A:A"),"EU",I NDIRECT("Sheet"&{1,2,3}&"!C:C"))).
The only problem is I have 20 sheets and I tried to use "SHA:SYD!F10:Z10"
to
replace "Sheet"&{1,2,3}&"!C:C" but it doesn't work. Any idea? Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sumif across mutiple sheets

SUM should work if array-entered, but my approach was different to yours.

--
---
HTH

Bob


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



"jwang036" wrote in message
...
Thanks a lot! Just for my curiosity, why sumproduct? I tried sum, it
didn't
work. I didn't think of using sumproduct at all.

"Bob Phillips" wrote:

Put the sheet names in M1:M20 and use

=SUMPRODUCT(SUMIF(INDIRECT(M1:M20&"!A:A"),"EU",IND IRECT(M1:M20&"!C:C")))

--
---
HTH

Bob


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



"jwang036" wrote in message
...
I almost found something here, but not exactly what I need.

I have 20 sheets named (tabbed) after different cities (let's say
starts
with "SHA", ends with "SYD"). Their row 10 (from column F to Z)
contains
when
the sales happens (2008,2009 etc, BUT each has a different start). Row
12
(from column F to Z) has the corresponding sales amount.

I also have a total sheet and in the total sheet I need to sum up the
sales
of all the cities by year (from column F=2008 to column Z=2028).

I find a fomula he
=SUM(SUMIF(INDIRECT("Sheet"&{1,2,3}&"!A:A"),"EU",I NDIRECT("Sheet"&{1,2,3}&"!C:C"))).
The only problem is I have 20 sheets and I tried to use
"SHA:SYD!F10:Z10"
to
replace "Sheet"&{1,2,3}&"!C:C" but it doesn't work. Any idea? Thanks!






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
Excel - Summing common cell over mutiple sheets within a file? Bill Excel Worksheet Functions 5 October 12th 09 10:09 PM
Mutiple Spread Sheets ABA Excel Worksheet Functions 0 May 13th 08 10:10 PM
Copy rows of one sheet into mutiple sheets based on column value Wesley Breshears Excel Discussion (Misc queries) 0 October 18th 06 03:19 PM
my sumif statement brings back mutiple answers, how do I fix it? graham Excel Worksheet Functions 2 November 15th 05 08:14 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM


All times are GMT +1. The time now is 02:08 PM.

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

About Us

"It's about Microsoft Excel"