Nesting a sumproduct formula within a sumif formula.

J

jerrymcm

Is this possible?

I want to write a formula that adds the values in column C, if the contents
of the corresponding cells in column A are less than a given value AND the
contents of the corresponding cells in column B contain a given text string.

Eg - Add up column C, if the cell in column A <20072 AND the cell in column
B contains "outlet".

Yesterday I got some great answers as to how to add up cells based on cells
containing a text string rather than equalling it, but now I need to nest
that within a sum if argument.

The formula I was given yesterday was....

=-SUMPRODUCT(ISNUMBER(SEARCH("outlet",B2:B100))*C2:C100)

Is it possible to nest this within a sum if argument, or should I go about
this in a totally different way?
 
P

Peo Sjoblom

=SUMPRODUCT(--(A2:A100<20072),--(ISNUMBER(SEARCH("outlet",B2:B100))),C2:C100)


--


Regards,


Peo Sjoblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top