View Single Post
  #8   Report Post  
KL
 
Posts: n/a
Default

Here are my comments:

=SUMPRODUCT(--(A3:A10000="Asia"),--(B3:B10000="9/28/2004"))
Won't work because "9/28/2004" is text not Date Value for Excel. You should
use date serial number, in this case 38258, so that the formula looks as
follows =SUMPRODUCT(--(A3:A10000="Asia"),--(B3:B10000=38258)). The formula
only COUNTS(!!!) exact DATE matches where DEALER is "Asia".

=SUMPRODUCT(--(A3:A10000="Asia"),--(MONTH(B3:B10000)=10))
Works like charm to me. See if list separator on your system is set to ";"
and then change "," by ";".
The formula only COUNTS(!!!) exact MONTH matches where DEALER is "Asia".

=SUMPRODUCT(--(A3:A10000="Asia"),--(MONTH(B3):MONTH(B10000)=10))
Wrong sintax. MONTH(B3):MONTH(B10000)=10 makes no sense and will not work.

what you probably need is the following:
=SUMPRODUCT($C$3:$C$1000,--($A$3:$A$10000="Asia"),--(MONTH($B$3:$B$10000)=10))
The formula SUMS(!!!) SALES, where there are exact MONTH matches combined
with "Asia" for DEALER.


"Saariko" wrote in message
...
Hi Frank,

I usually use your replies with blind eyes, and Bingo. However, I have
tried
this solution of multiple arrays and condition, and a little problem for
me
on this one.

I have 3 colums: A-dealer B-Date C-sale
I want to sum (Pivot Table is not suitable for this part, I use it on a
different worksheet) All sales made be a dealer based on a month.

Asia 9/28/2004 2134
Asia 9/30/2004 2136
Europe 10/1/2004 2137
Europe 10/4/2004 2138
Europe 10/12/2004 2139
Europe 10/12/2004 2140
Asia 10/17/2004 2141
Europe 10/18/2004 2142

The sum would go to a different sheet
MONTH Dealer Total Sales
September Asia ?????
October Europe ?????

Again, I can't use pivot table for this part.

I tried to tweak your funciton:
=SUMPRODUCT(--(A3:A10000="Asia"),--(B3:B10000="9/28/2004"))
=SUMPRODUCT(--(A3:A10000="Asia"),--(MONTH(B3:B10000)=10))
=SUMPRODUCT(--(A3:A10000="Asia"),--(MONTH(B3):MONTH(B10000)=10))

but no luck.

Can you help?

"Frank Kabel" wrote:

Hi
first don't replace the '--'. They coerce the boolean values to real
numbers (TRUE=1/FALSE=0)
for your example if you want to get the sum for one specific account
use
=SUMPRODUCT(--(A1:A4000=account_number),--(C1:C4000="collections"),--(D
1:D4000="michigan"),F1:F4000)

Note: this is case sensitive. You may also consider using a pivot table
for this:
http://www.cpearson.com/excel/pivots.htm
http://peltiertech.com/Excel/Pivots/pivotstart.htm
http://www.contextures.com/xlPivot02.html
http://www.ozgrid.com/Excel/excel-pivot-tables.htm


--
Regards
Frank Kabel
Frankfurt, Germany


dave wrote:
Frank,

Sorry, I got an error. What do I put in where the "--"
are?

Here is a more accurate example of my worksheet.

Column A lists a range of account numbers so I'd like this
range to find all 4000 accounts.

Column C lists a range of departments so I'd like to
find "collections"

column D lists the location so I want "michigan"

Column F has the balances so I want the sum of every
account that meets these 3 criteria.

Thanks,

Dave
-----Original Message-----
Hi
use SUMPRODUCT instead. e.g.
=SUMPRODUCT(--(A1:A100=100),--(B1:B100="manager"),C1:C100)

--
Regards
Frank Kabel
Frankfurt, Germany


Dave Gremaud wrote:
Does anyone use this function or have any suggestions on a
different function that may work. I have a very large
worksheet with multiple data columns. I am trying to sum
multiple cells by using multiple variables. The SUMIF
function works well but I can't insert more than one
criteria. I have tried many times without success. I
would greatly appreciate any assistance.

Here is an example of my need:

I would like a function to read (if column "a" = 100 and
column "b" = "manager" then sum these fields).

I know there must be a solution but it escapes me.

Thanks!

Dave
.