A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

summing based on text conditions



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2010, 12:38 PM posted to microsoft.public.excel.misc
Totteridge Ram[_2_]
external usenet poster
 
Posts: 9
Default summing based on text conditions

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


  #2  
Old April 16th, 2010, 12:52 PM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 8,419
Default summing based on text conditions

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.


"Totteridge Ram" wrote:

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


  #3  
Old April 16th, 2010, 12:53 PM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 8,419
Default summing based on text conditions

The double unary isn't necessary

=SUMPRODUCT((ISERROR(SEARCH("COM",B1:B8)))*(NOT(IS ERROR(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.


"Totteridge Ram" wrote:

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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.