Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Robert Brown
 
Posts: n/a
Default Two Criteria with the COUNTIF function or somthing else?

I need a function that adds up a column of part of a string(ex. this_that,
and i just need to make sure "this" is in the string) and then another column
also has to be equal to "Closed". I haven't been able to get anything to
work, any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Billigmeier
 
Posts: n/a
Default Two Criteria with the COUNTIF function or somthing else?

Assume A is your first column (the one that has this_that) and B is your
second column (the one with Closed in it):

=SUMPRODUCT(--ISNUMBER(SEARCH("this",A1:A10)),--(B1:B10="Closed"))

Just modify that to the range your data is actually in.
Does that help?
--
Regards,
Dave


"Robert Brown" wrote:

I need a function that adds up a column of part of a string(ex. this_that,
and i just need to make sure "this" is in the string) and then another column
also has to be equal to "Closed". I haven't been able to get anything to
work, any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Robert Brown
 
Posts: n/a
Default Two Criteria with the COUNTIF function or somthing else?

IT almost worked, but with the information you gave me i was able to work it
out. ISNUMBER gives true/false and so does B1:B10="Closed". So instead of
adding those together, multiply (true*true=1,true*false=0,ect.), so it would
look like this :

=SUMPRODUCT(ISNUMBER(SEARCH("this",A3:A30))*(J3:J3 0="closed"))

This gave me what i needed
So thank you for the help!


"David Billigmeier" wrote:

Assume A is your first column (the one that has this_that) and B is your
second column (the one with Closed in it):

=SUMPRODUCT(--ISNUMBER(SEARCH("this",A1:A10)),--(B1:B10="Closed"))

Just modify that to the range your data is actually in.
Does that help?
--
Regards,
Dave


"Robert Brown" wrote:

I need a function that adds up a column of part of a string(ex. this_that,
and i just need to make sure "this" is in the string) and then another column
also has to be equal to "Closed". I haven't been able to get anything to
work, any ideas?

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
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Using ADD function within DCOUNT criteria DaveF2002 Excel Discussion (Misc queries) 4 June 19th 05 09:48 PM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM


All times are GMT +1. The time now is 09:59 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"