View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave F Dave F is offline
external usenet poster
 
Posts: 2,574
Default Sum column information based on multiple criteria

Try:

=SUMIF((A1:A4="60010")*(B1:B4="Ideation"),C1:C4) and hit CTRL+SHIFT+ENTER

(note the difference in my formula is you're using the SUMIF function not
the SUM function as in your formula below).

Dave
--
Brevity is the soul of wit.


"GHawkins" wrote:

I tried the following formula:

Col A Col B Col C
660010 Ideation $5
665511 Ideation $2
660010 Concept $6
660010 Ideation $5

=sum(if((A1:A4="660010")*(B1:B4="Ideation"),C1:C4) ), and then using the
Ctrl+Shift+Enter to calculate. This returns 0 instead of the 10 I'm
expecting. Am I doing something wrong?

"Dave F" wrote:

Have you tried entering your formula as an array formula?
--
Brevity is the soul of wit.


"GHawkins" wrote:

I've read the posts on using "sumprodut" instead of "sumif", but I'm either
doing something wrong or using "sumproduct" isn't the right tool for what I'm
doing. Here's my problem:
If $A$8:$A$23 = 660010 and if $B$8:$B$23 = "Ideation", sum $C$8:$C$23.
If the value in column A meets my criteria and the value in column C meets
my criteria, I want to find the corresponding cell in column C and add them
together...

Col A Col B Col C
660010 Ideation $5
665511 Ideation $2
660010 Concept $6
660010 Ideation $5

Based on the above information, I would want my formula to return $10, since
the first and last rows contain the correct criteria. I've tried many things
- sumif (which only allows for one criteria), nested if statements, using ifs
and ands....I've been looking at it so hard that my mind has gone blank. Can
anyone help?

Much appreciated!!