Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help in counting and summing cells based on multiple conditions Dave Excel Worksheet Functions 9 November 13th 09 03:23 PM
Summing Based on Conditions using Array Jamie Excel Discussion (Misc queries) 1 November 6th 09 04:55 PM
Summing on year and text conditions Dave_in_gva Excel Worksheet Functions 6 December 19th 08 04:46 PM
Counting based upon 2 conditions that are text based walkerdayle Excel Discussion (Misc queries) 7 August 22nd 06 01:29 AM
Conditionally summing cells based on conditions in other rows Bert Excel Worksheet Functions 3 June 20th 06 11:06 AM


All times are GMT +1. The time now is 03:26 AM.

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

About Us

"It's about Microsoft Excel"