Sumproduct?

  • Thread starter Looping through
  • Start date
L

Looping through

I am tring to count the number of time a specific text appears in a range.
The following formula counts the total number of entries in my range but is
not seperating the specific text I want. Can anyone help with this?

=SUMPRODUCT(--(Start_Rep:Finish_Rep=B4)--(Start:Finish="*Utility - *"))

Thanks
Peter
 
D

Dave Peterson

Or if you're looking for "Utility - " in that range and it could be buried in
with other text:

=SUMPRODUCT(--(start_rep:Finish_rep=B4),
--ISNUMBER(SEARCH("Utility - ",start:finish)))


=search() is not case sensitive.
=find() is case sensitive.
 
L

Looping through

David, Thanks for your suggestion. However, both formulas you offered return
a "0" when in fact the correct answer is 3. I think the TEXT this formula is
looking for is the problem. "Utility - " is just the begining of the
information in the cell. A typical entry would say Utility - XYZ Distribitor.

Any suggestions.
Peter
 
N

NMT

Hi,

I belive you cannot use a wild card search with Sumproduct.

Try
=SUMPRODUCT((ISNUMBER(SEARCH("Utility",Start:Finish)))*(Start_Rep:Finish_Rep=B4)) i.e if you want to ensure it meets the criterion if not

=SUMPRODUCT((ISNUMBER(SEARCH("Utility",Start:Finish)))--(Start_Rep:Finish_Rep=B4)) if you want only want 1 criteria.
 

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