Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default sum across worksheets conditionally

I have about 50+ worksheets in a file that I need to sum. However, I only
want to sum some of the sheets if it meets a certain criteria. This criteria
is located in a separate worksheet in the file that lists each worksheet name
in one column and in the next column it list the type of worksheet. If a
worksheet is of a certain type I need the sum of those types.


Celia
  #2   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default sum across worksheets conditionally


http://boisgontierjacques.free.fr/fi.../Sum3DCond.xls

Named range
cond $H$2:$H$8
nf $G$2:$G$8
nfCond =OffSet($J$2,,,CountIf($J$2:$J$12,"<"&""))

=SumProduct(SumIfI(INDIRECT("'"&nfCond &"'!B2"),"<0"))

JB
http://boisgontierjacques.free.fr/

On 18 mar, 03:17, Celia wrote:
I have about 50+ worksheets in a file that *I need to sum. *However, I only
want to sum some of the sheets if it meets a certain criteria. *This criteria
is located in a separate worksheet in the file that lists each worksheet name
in one column and in the next column it list the type of worksheet. *If a
worksheet is of a certain type I need the sum of those types.

Celia


  #3   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default sum across worksheets conditionally

or

=SumProduct(N(INDIRECT(nfCond&"!B2")))

JB

On 18 mar, 07:18, JB wrote:
http://boisgontierjacques.free.fr/fi.../Sum3DCond.xls

Named range
cond * *$H$2:$H$8
nf * * *$G$2:$G$8
nfCond *=OffSet($J$2,,,CountIf($J$2:$J$12,"<"&""))

=SumProduct(SumIfI(INDIRECT("'"&nfCond &"'!B2"),"<0"))

JBhttp://boisgontierjacques.free.fr/

On 18 mar, 03:17, Celia wrote:



I have about 50+ worksheets in a file that *I need to sum. *However, I only
want to sum some of the sheets if it meets a certain criteria. *This criteria
is located in a separate worksheet in the file that lists each worksheet name
in one column and in the next column it list the type of worksheet. *If a
worksheet is of a certain type I need the sum of those types.


Celia- Masquer le texte des messages précédents -


- Afficher le texte des messages précédents -


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default sum across worksheets conditionally

Thank you so much. I am not sure if I completely understands how or why it
works but I really appreciate your help.


--
Celia


"JB" wrote:


http://boisgontierjacques.free.fr/fi.../Sum3DCond.xls

Named range
cond $H$2:$H$8
nf $G$2:$G$8
nfCond =OffSet($J$2,,,CountIf($J$2:$J$12,"<"&""))

=SumProduct(SumIfI(INDIRECT("'"&nfCond &"'!B2"),"<0"))

JB
http://boisgontierjacques.free.fr/

On 18 mar, 03:17, Celia wrote:
I have about 50+ worksheets in a file that I need to sum. However, I only
want to sum some of the sheets if it meets a certain criteria. This criteria
is located in a separate worksheet in the file that lists each worksheet name
in one column and in the next column it list the type of worksheet. If a
worksheet is of a certain type I need the sum of those types.

Celia


.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default sum across worksheets conditionally

I used the formula and it worked for one cell in the worksheet. THere is a
whole bunch of data that I want to sum in each of the worksheets. How do I
get the Cell B2 in your example to auto change as I copy the formula ex. so
that I can sum b3, b4 ,b5, ....
--
Celia


"JB" wrote:


http://boisgontierjacques.free.fr/fi.../Sum3DCond.xls

Named range
cond $H$2:$H$8
nf $G$2:$G$8
nfCond =OffSet($J$2,,,CountIf($J$2:$J$12,"<"&""))

=SumProduct(SumIfI(INDIRECT("'"&nfCond &"'!B2"),"<0"))

JB
http://boisgontierjacques.free.fr/

On 18 mar, 03:17, Celia wrote:
I have about 50+ worksheets in a file that I need to sum. However, I only
want to sum some of the sheets if it meets a certain criteria. This criteria
is located in a separate worksheet in the file that lists each worksheet name
in one column and in the next column it list the type of worksheet. If a
worksheet is of a certain type I need the sum of those types.

Celia


.



  #6   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default sum across worksheets conditionally

Formula in B2:
=SumProduct(N(Offset(INDIRECT(nfCond&"!B2"),Row()-2,Column()-2)))

http://boisgontierjacques.free.fr/fi...Sum3DCond2.xls

JB


On 18 mar, 20:10, Celia wrote:
I used the formula and it worked for one cell in the worksheet. *THere is a
whole bunch of data that I want to sum in each of the worksheets. *How do I
get the Cell B2 in your example to auto change as I copy the formula ex. so
that I can sum b3, b4 ,b5, ....
--
Celia



"JB" wrote:

http://boisgontierjacques.free.fr/fi.../Sum3DCond.xls


Named range
cond * * * $H$2:$H$8
nf $G$2:$G$8
nfCond * * =OffSet($J$2,,,CountIf($J$2:$J$12,"<"&""))


=SumProduct(SumIfI(INDIRECT("'"&nfCond &"'!B2"),"<0"))


JB
http://boisgontierjacques.free.fr/


On 18 mar, 03:17, Celia wrote:
I have about 50+ worksheets in a file that *I need to sum. *However, I only
want to sum some of the sheets if it meets a certain criteria. *This criteria
is located in a separate worksheet in the file that lists each worksheet name
in one column and in the next column it list the type of worksheet. *If a
worksheet is of a certain type I need the sum of those types.


Celia


.- Masquer le texte des messages précédents -


- Afficher le texte des messages précédents -


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
Conditionally delete James[_4_] Excel Discussion (Misc queries) 2 November 6th 07 05:55 PM
.FontSize conditionally John C Excel Worksheet Functions 6 December 24th 06 05:45 PM
Conditionally Formatting phmckeever Excel Worksheet Functions 1 August 25th 06 03:00 PM
How can I conditionally link worksheets? JessJ Excel Discussion (Misc queries) 0 October 4th 05 07:49 PM
Is there a way to conditionally hide a row? Maxwell Sprinkler Excel Discussion (Misc queries) 1 June 1st 05 12:56 AM


All times are GMT +1. The time now is 10:05 AM.

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"