Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default SUMIF vs SUMPRODUCT

I was using the SUMIF command as follows (=SUMIF('Active Data'!Z:Z,2,'Active
Data'!AK:AK) ("Active Data" is the previous tab), and the formula works
great!.... until the criteria for the calulation changed.
Now I require 2 sets of criteria before I sum the AK:AK column.
I changed the formula to(SUMPRODUCT(('Active Data'!Z2:Z1000=2)*('Active
Data'!BE2:BE1000=1)*('Active Data'!AK2:AK1000)).
The additional data is coming from column BE.
Apparently the SUMPRODUCT doe not like my referencing the Active Data tab.
This formula returns the ever popular #VALUE! answer.
Column Z is the month code (Feb), column BE is a customer code (1,0 or -1),
and column AK repersents the hours of service.
The formula should result all the hours worked(AK) in Feb(Z) for all the
customers with criteria "1" (BE). (in this case 408 hours worked.)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default SUMIF vs SUMPRODUCT

I suspect this variation of the SUMPRODUCT structure
(in sections) will work for you:

=SUMPRODUCT(--('Active Data'!Z2:Z1000=2),--
('Active Data'!BE2:BE1000=1),('Active Data'!AK2:AK1000))

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"Tim Richards" wrote in message
...
I was using the SUMIF command as follows (=SUMIF('Active
Data'!Z:Z,2,'Active
Data'!AK:AK) ("Active Data" is the previous tab), and the formula works
great!.... until the criteria for the calulation changed.
Now I require 2 sets of criteria before I sum the AK:AK column.
I changed the formula to(SUMPRODUCT(('Active Data'!Z2:Z1000=2)*('Active
Data'!BE2:BE1000=1)*('Active Data'!AK2:AK1000)).
The additional data is coming from column BE.
Apparently the SUMPRODUCT doe not like my referencing the Active Data tab.
This formula returns the ever popular #VALUE! answer.
Column Z is the month code (Feb), column BE is a customer code (1,0
or -1),
and column AK repersents the hours of service.
The formula should result all the hours worked(AK) in Feb(Z) for all the
customers with criteria "1" (BE). (in this case 408 hours worked.)




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF vs SUMPRODUCT

There's nothing wrong with your formula. However, a better way to write it
would be:

=SUMPRODUCT(--('Active Data'!Z2:Z1000=2),--('Active
Data'!BE2:BE1000=1),'Active Data'!AK2:AK1000)

Your error is more than likely coming from column AK which might contain
TEXT. Using the form of SUMPRODUCT that your are will result in a #VALUE!
error. The above form of SUMPRODUCT will ignore any TEXT entries in column
AK.

Also, if you have any #VALUE! errors already in *any* of the ranges you'll
get the #VALUE! error.


--
Biff
Microsoft Excel MVP


"Tim Richards" wrote in message
...
I was using the SUMIF command as follows (=SUMIF('Active
Data'!Z:Z,2,'Active
Data'!AK:AK) ("Active Data" is the previous tab), and the formula works
great!.... until the criteria for the calulation changed.
Now I require 2 sets of criteria before I sum the AK:AK column.
I changed the formula to(SUMPRODUCT(('Active Data'!Z2:Z1000=2)*('Active
Data'!BE2:BE1000=1)*('Active Data'!AK2:AK1000)).
The additional data is coming from column BE.
Apparently the SUMPRODUCT doe not like my referencing the Active Data tab.
This formula returns the ever popular #VALUE! answer.
Column Z is the month code (Feb), column BE is a customer code (1,0
or -1),
and column AK repersents the hours of service.
The formula should result all the hours worked(AK) in Feb(Z) for all the
customers with criteria "1" (BE). (in this case 408 hours worked.)



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
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
SUMIF,SUMPRODUCT litngldy New Users to Excel 2 September 12th 06 08:48 AM
HELP!!!! sumif or sumproduct ??? :( Wally Excel Worksheet Functions 0 July 31st 05 01:43 PM
SUMPRODUCT or SUMIF nfbelo Excel Worksheet Functions 2 May 24th 05 07:18 PM
sumif vs sumproduct ww Excel Worksheet Functions 2 April 5th 05 02:19 AM


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