summing based on text conditions

T

Totteridge Ram

Hi all

I want to sum my "Value" column based on the text condition in my
"Description" column. Whenever the description contains "CRDML" and does NOT
contain "COM", I want to sum the Values.

I've tried using combinations of Sumproduct, Find, Isnumber, all to no avail.

Can you help?



Date Description
Value
30/10/2009 ΑΚΥΡΩΣΗ ΠΙΣΤΩΣΗΣ -500
14/10/2009 COM PO EUR475000.00 TO CRDMLUL -50
14/10/2009 PO EUR475000.00 TO CRDMLULL -475,000.00
06/10/2009 ΑΚΥΡΩΣΗ ΠΙΣΤΩΣΗΣ -128
25/11/2009 ΑΚΥΡΩΣΗ ΠΙΣΤΩΣΗΣ -100
08/12/2009 ΠΡΕΙΕΜΒEUR295.00 FROM PIRBGRAA -3
04/12/2009 COM PO EUR410000.00 TO CRDMLUL -50
04/12/2009 PO EUR410000.00 TO CRDMLULL -410,000.00
 
M

Mike H

Hi,

Try this

=SUMPRODUCT(--(ISERROR(SEARCH("COM",B1:B8)))*(NOT(ISERROR(SEARCH("CRDML",B1:B8)))*(C1:C8)))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
M

Mike H

The double unary isn't necessary

=SUMPRODUCT((ISERROR(SEARCH("COM",B1:B8)))*(NOT(ISERROR(SEARCH("CRDML",B1:B8)))*(C1:C8)))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

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