Excel - Sumproduct

Asked By bijan
21-Nov-09 03:19 AM
Hi all,
I should make a condition(AND) in my sumproduct formula with date
format(yyyy/mm/dd), why it dosent accept my condition in one column, like
this:
=SUMPRODUCT(($B$30:$B$3000=$A$1)*($G$30:$G$3000>=$B$1)*($G$30:$G$3000<$B$2)*($J$30:$J$3000))

even I dublicate date column(G) and change the formula to :
=SUMPRODUCT(($B$30:$B$3000=$A$1)*($G$30:$G$3000>=$B$1)*($H$30:$H$3000<$B$2)*($J$30:$J$3000))
but it dosen't work again, any idea to solve this problem would be
appreciated.
Bijan
SUMPRODUCT
(1)
BijanI
(1)
Hopes
(1)
Dosent
(1)
Comme
(1)
Yyyy
(1)
  Per Jessen replied to bijan
21-Nov-09 03:50 AM
Hi Bijan

I do not see anyting wrong with your formula.

Instead of multiplying each statement, seperate each statement by a comme
and use double unary to convert true/false to 1/0. Now you can evaluate your
formula. When the formula cell is selected click the equal sign next to the
formula line. Maybe you can see why it does not work now.

=SUMPRODUCT(--($B$30:$B$3000=$A$1),--($G$30:$G$3000>=$B$1),--($G$30:$G$3000<$B$2),$J$30:$J$3000)

Hopes this helps.
...
Per
  bijan replied to Per Jessen
21-Nov-09 05:31 AM
Hi Jessen,
It dosen't work again,it seems I could not use sumproduct function with two
condition in a column at same time or formula/my data have a problem that I
cannot see it?
Bijan
  Per Jessen replied to bijan
21-Nov-09 06:47 AM
Bijan,

Using two or more conditions in one column is no problem, so I guess the
problem is related to you data.

Is the dates in column G and in B1:B2 entered as true dates?

Best regards,
Per
help
General Sumproduct Question Excel When using Sumproduct as a multiple criteria sumif function, I've seen it used two ways: sumproduct(()*()*()) sumproduct(- -(), - -(), ()) My question is are these just two ways of doing the same thing, or does one do something the other does not? Excel Worksheet Discussions Excel (1) SUMPRODUCT (1) Horses (1) Hutch (1) ABC6E613E7DA (1) Multiplies (1) Coerces (1) MONTH (1) Essentially, both for TRUE) or 0 (for FALSE). Here is a link to a great tutorial on SumProduct. It will answer your question in mucj more detail. http: / / www.xldynamic.com / source / xld.SUMPRODUCT.html Hope this helps, Hutch The - - takes a logical value of TRUE or FALSE and the -1 positive - ie. 1. FALSE becomes 0 which is neither negative or positive. Then SUMPRODUCT multiplies the resulting values by the rest of the arguments. The format with the * will
Return text using Sumproduct Excel Looking to return text using sumproduct: = SUMPRODUCT((C5:C9 = A1)*(D5:D9 = A2)*(E5:E9)) where E5:E9 contains text which I want to return. How do I use sumproduct to return text? It keeps giving me #Value! Thanks Excel Worksheet Discussions SUMPRODUCT (1) PRODUCT (1) LOOKUP (1) INDEX (1) MATCH (1) TEXT (1) ISNA (1) ROW (1 a clue that it can only returns numerical values, actually, only a single value per SUMPRODUCT function call; however, you can use that returned value in other formulas to do things will meet the tested for condition) perhaps concatenated together. For the first, you can use SUMPRODUCT as an argument to an INDEX function call, such as like this. . . = INDEX(E1:E9, SUMPRODUCT((C5:C9 = A1)*(D5:D9 = A2)*ROW(E5:E9))) Note the range in the first
SUMPRODUCT Excel I have a sumproduct = SUMPRODUCT(- -(ProblemClosedDate> = $D24), - -(ActionClosedDate<> " which is filtering down on the 3 defined names, all having the but auto populated, hence it is now = IF(AC812 = 1, " ", IF(AE812, AE812, " ")) If the sumproduct was = D24 then it would work but since I need it as > = it returns far to use INdirect and if so should it be in the defined name or the sumproduct, either way have you the text since i don't know the syntax? thx Excel Worksheet Discussions Microsoft Excel (1) SUMPRODUCT (1) ISNUMBER (1) COUNTA (1) OFFSET (1) CELL (1) TEXT (1) ProblemClosedDate (1) It looks crowning place of kings sandymann2@mailinator.com Replace @mailinator.com with @tiscali.co.uk keywords: SUMPRODUCT description: I have a sumproduct = SUMPRODUCT(- -(ProblemClosedDate = $D24), - -(ActionClosedDate ), - -(LOB = $E24)) which is filtering down on the 3 defined names
SUMPRODUCT query Excel Hi I'm using the following sumproduct: = SUMPRODUCT(- -(Costs!$F$12:$F$57 = $B7), - -(MONTH(Costs!$H$12:$H$57) = 1), Costs!$J a column for each month (MONTH = 1 through 12)) Thanks Excel Miscellaneous Discussions Excel (1) SUMPRODUCT (1) January (1) Fictious (1) MONTH (1) Addy (1) Day (1) = SUMPRODUCT(- -(Costs!$F$12:$F$57 = $B7), - -(MONTH(Costs!$H$12:$H$57) = 1), - -(Costs!$H MONTH(0) and returns a 1, the month number of Jan. 0, 1900. Tyro keywords: SUMPRODUCT, query description: Hi I'm using the following sumproduct: = SUMPRODUCT(- -(Costs!$F$12:$F$57 = $B7), - -(MONTH(Costs!$H$12:$H$57) = 1), Costs!$J