Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cbh35711
 
Posts: n/a
Default Sumif with multiple worksheets

I've got a file with many worksheets and a summary page in the beginning.
I'd like to be able to use the SUMIF function, or another, to add certain
worksheets and not others. I keep getting #value errors. This is the
formula I'm using. =SUMIF(Start:Finish!L3,"IPA",Start:Finish!F3)
Start and finish are worksheets i used to group the others together.
This is what I'm hoping this formula will do.
Look at all the worksheets in cell L3, if that worksheet has IPA in that
cell add the value of F3 in the cell that the formula is located.
Am I using the correct formula and just typing it wrong or should I be using
a different type of formula altogether?
Thanks for any help

Cbh35711
  #2   Report Post  
Matt Lunn
 
Posts: n/a
Default

Hi,

Unfortunately SUMIF cannot be used across sheets.
Assuming you want to put the result in Start, a workaround would be to
select all sheets except Sheet1 and enter the following formula in cell A1
(or the cell of your choice) :-
=IF(L3="IPA",F3,0)

Then enter in A1 in Start :-
=IF(L3="IPA",F3,0)+SUM(Start:Finish!A1)


Hope this helps,
Matt
"Cbh35711" wrote:

I've got a file with many worksheets and a summary page in the beginning.
I'd like to be able to use the SUMIF function, or another, to add certain
worksheets and not others. I keep getting #value errors. This is the
formula I'm using. =SUMIF(Start:Finish!L3,"IPA",Start:Finish!F3)
Start and finish are worksheets i used to group the others together.
This is what I'm hoping this formula will do.
Look at all the worksheets in cell L3, if that worksheet has IPA in that
cell add the value of F3 in the cell that the formula is located.
Am I using the correct formula and just typing it wrong or should I be using
a different type of formula altogether?
Thanks for any help

Cbh35711

  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

Cbh35711 wrote...
I've got a file with many worksheets and a summary page in the beginning.
I'd like to be able to use the SUMIF function, or another, to add certain
worksheets and not others. I keep getting #value errors. This is the
formula I'm using. =SUMIF(Start:Finish!L3,"IPA",Start:Finish!F3)
Start and finish are worksheets i used to group the others together.
This is what I'm hoping this formula will do.
Look at all the worksheets in cell L3, if that worksheet has IPA in that
cell add the value of F3 in the cell that the formula is located.
Am I using the correct formula and just typing it wrong or should I be using
a different type of formula altogether?


Unfortunately you can't do this in a general way unless you use an
add-in. You can do it in a hard-coded way by using a list of worksheet
names. If you have the desired worksheet names in a range or array
named WSLst, you could use a formula like

=SUMPRODUCT(SUMIF(INDIRECT("'"&WSLst&"'!L3"),"IPA" ,INDIRECT("'"&WSLst&"'!F3")))

Calling INDIRECT with an array argument returns something that
functions like an array of range references. SUMIF and COUNTIF accept
such objects and in turn return array results. The SUMPRODUCT call sums
the array of SUMIF results.

The general/add-in approach requires Laurent Longre's MOREFUNC.XLL
add-in, which is freely available from

http://xcell05.free.fr/english/

It provides an add-in function named THREED which could be used in
formulas like

=SUMPRODUCT(--(THREED(First:Last!L3)="IPA"),THREED(First:Last!F3 ))

  #4   Report Post  
Cbh35711
 
Posts: n/a
Default

Great, thanks for the help.

Cbh35711
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
What is the quickest method to insert & name multiple worksheets . clyonesse Excel Worksheet Functions 8 September 20th 05 10:55 PM
Adding multiple worksheets Craig Excel Worksheet Functions 1 July 6th 05 07:21 PM
Sort rows across multiple worksheets - Excel 2003 Stamdale Excel Worksheet Functions 2 July 5th 05 04:30 PM
how do I arrange multiple worksheets from the same workbook skytags Excel Discussion (Misc queries) 2 April 28th 05 06:46 PM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


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