Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Sumif on multiple worksheets

Hi I have a formula below that I want to expand to more than one worksheet.
I've played with indirect from other examples but I just don't get it right.

In a summary worksheet I want to bring this total in for all worksheets.
=SUMIF('23050'!B2:B166,"*3220*",'23050'!C2:C166)

the other worksheets are called
23060,23070,23080,23100,23110,23120,23130,23140

I want to expand this to other references than "*3220*" which I'm fine with
but not sure how to use the indirect correctly to cover all the worksheets.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumif on multiple worksheets

List your sheet names in a range of cells:

J1 = 23050
J2 = 23060
J3 = 23070
...
J9 = 23120

Then:

=SUMPRODUCT(SUMIF(INDIRECT("'"&J1:J9&"'!B2:B166"), "*3220*",INDIRECT("'"J1:J9&"'!C2:C166")))

--
Biff
Microsoft Excel MVP


"Fritz" wrote in message
...
Hi I have a formula below that I want to expand to more than one
worksheet.
I've played with indirect from other examples but I just don't get it
right.

In a summary worksheet I want to bring this total in for all worksheets.
=SUMIF('23050'!B2:B166,"*3220*",'23050'!C2:C166)

the other worksheets are called
23060,23070,23080,23100,23110,23120,23130,23140

I want to expand this to other references than "*3220*" which I'm fine
with
but not sure how to use the indirect correctly to cover all the
worksheets.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Sumif on multiple worksheets

Thanks This worked a treat and I wasn't sure if I count reference a list on
another worksheet - tried it and I can so even better!


"T. Valko" wrote:

List your sheet names in a range of cells:

J1 = 23050
J2 = 23060
J3 = 23070
...
J9 = 23120

Then:

=SUMPRODUCT(SUMIF(INDIRECT("'"&J1:J9&"'!B2:B166"), "*3220*",INDIRECT("'"J1:J9&"'!C2:C166")))

--
Biff
Microsoft Excel MVP


"Fritz" wrote in message
...
Hi I have a formula below that I want to expand to more than one
worksheet.
I've played with indirect from other examples but I just don't get it
right.

In a summary worksheet I want to bring this total in for all worksheets.
=SUMIF('23050'!B2:B166,"*3220*",'23050'!C2:C166)

the other worksheets are called
23060,23070,23080,23100,23110,23120,23130,23140

I want to expand this to other references than "*3220*" which I'm fine
with
but not sure how to use the indirect correctly to cover all the
worksheets.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumif on multiple worksheets

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Fritz" wrote in message
...
Thanks This worked a treat and I wasn't sure if I count reference a list
on
another worksheet - tried it and I can so even better!


"T. Valko" wrote:

List your sheet names in a range of cells:

J1 = 23050
J2 = 23060
J3 = 23070
...
J9 = 23120

Then:

=SUMPRODUCT(SUMIF(INDIRECT("'"&J1:J9&"'!B2:B166"), "*3220*",INDIRECT("'"J1:J9&"'!C2:C166")))

--
Biff
Microsoft Excel MVP


"Fritz" wrote in message
...
Hi I have a formula below that I want to expand to more than one
worksheet.
I've played with indirect from other examples but I just don't get it
right.

In a summary worksheet I want to bring this total in for all
worksheets.
=SUMIF('23050'!B2:B166,"*3220*",'23050'!C2:C166)

the other worksheets are called
23060,23070,23080,23100,23110,23120,23130,23140

I want to expand this to other references than "*3220*" which I'm fine
with
but not sure how to use the indirect correctly to cover all the
worksheets.






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
SUMIF across multiple worksheets Fgbdrum Excel Discussion (Misc queries) 5 October 20th 06 06:29 PM
SumIf across multiple worksheets ChrisM Excel Worksheet Functions 4 September 22nd 06 04:20 PM
Sumif Across multiple worksheets Giantrobot Excel Worksheet Functions 2 June 15th 06 08:28 PM
Sumif across multiple worksheets Ted Metro Excel Worksheet Functions 2 December 19th 05 10:40 PM
Sumif with multiple worksheets Cbh35711 Excel Worksheet Functions 3 August 9th 05 02:49 PM


All times are GMT +1. The time now is 04:54 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"