#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default Sumproduct?

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Sumproduct?

You've added the two booleans (with the --), rather than allowing SUMPRODUCT
to multiply them.
I guess that instead of
=SUMPRODUCT(--(Start_Rep:Finish_Rep=B4)--(Start:Finish="*Utility - *"))
you may have intended
=SUMPRODUCT(--(Start_Rep:Finish_Rep=B4),--(Start:Finish="*Utility - *")) or
=SUMPRODUCT((Start_Rep:Finish_Rep=B4)*(Start:Finis h="*Utility - *"))
--
David Biddulph

"Looping through" wrote in
message ...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sumproduct?

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.



Looping through wrote:

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


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 69
Default Sumproduct?

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

"David Biddulph" wrote:

You've added the two booleans (with the --), rather than allowing SUMPRODUCT
to multiply them.
I guess that instead of
=SUMPRODUCT(--(Start_Rep:Finish_Rep=B4)--(Start:Finish="*Utility - *"))
you may have intended
=SUMPRODUCT(--(Start_Rep:Finish_Rep=B4),--(Start:Finish="*Utility - *")) or
=SUMPRODUCT((Start_Rep:Finish_Rep=B4)*(Start:Finis h="*Utility - *"))
--
David Biddulph

"Looping through" wrote in
message ...
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




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
NMT NMT is offline
external usenet poster
 
Posts: 6
Default Sumproduct?

Hi,

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

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

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

"David Biddulph" wrote:

You've added the two booleans (with the --), rather than allowing SUMPRODUCT
to multiply them.
I guess that instead of
=SUMPRODUCT(--(Start_Rep:Finish_Rep=B4)--(Start:Finish="*Utility - *"))
you may have intended
=SUMPRODUCT(--(Start_Rep:Finish_Rep=B4),--(Start:Finish="*Utility - *")) or
=SUMPRODUCT((Start_Rep:Finish_Rep=B4)*(Start:Finis h="*Utility - *"))
--
David Biddulph

"Looping through" wrote in
message ...
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




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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
Sumproduct Coley Excel Worksheet Functions 4 October 10th 07 12:09 AM
sumproduct? anand Excel Worksheet Functions 5 September 5th 07 01:02 PM
SumProduct Help Sandy Excel Worksheet Functions 5 August 31st 07 03:53 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM


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