Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Sumproduct for partial text

I am using the following Sumproduct command and it has been working great.

=SUMPRODUCT(--('[Past Dues Aug.xls]Sheet1'!$A$1:$A$5000="Tom
Bonnette"),'[Past Dues Aug.xls]Sheet1'!$B$1:$B$5000)

However, the Past Dues sheet I am pulling information from, the names in
column A have been changed. So now the example above looks like Tom Bonnette
(24). There is a likely hood that the 24 could change. How can I change my
expression to still pull all occurrences of Tom Bonnette regardless of what
number is behind? I have tried using the wildcards, but it is not working.
Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Sumproduct for partial text

Try this:

=SUMPRODUCT(--(ISNUMBER(SEARCH("Tom Bonnette",'[Past Dues
Aug.xls]Sheet1'!$A$1:$A$5000))),'[Past Dues Aug.xls]Sheet1'!$B$1:$B$5000)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Jasmine" wrote in message
...
I am using the following Sumproduct command and it has been working great.

=SUMPRODUCT(--('[Past Dues Aug.xls]Sheet1'!$A$1:$A$5000="Tom
Bonnette"),'[Past Dues Aug.xls]Sheet1'!$B$1:$B$5000)

However, the Past Dues sheet I am pulling information from, the names in
column A have been changed. So now the example above looks like Tom

Bonnette
(24). There is a likely hood that the 24 could change. How can I change my
expression to still pull all occurrences of Tom Bonnette regardless of

what
number is behind? I have tried using the wildcards, but it is not working.
Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Sumproduct for partial text

try:

=SUMPRODUCT(--(ISNUMBER(FIND("Tom Bonnette",$A$1:$A$5000))),$B$1:$B$5000)

"Jasmine" wrote:

I am using the following Sumproduct command and it has been working great.

=SUMPRODUCT(--('[Past Dues Aug.xls]Sheet1'!$A$1:$A$5000="Tom
Bonnette"),'[Past Dues Aug.xls]Sheet1'!$B$1:$B$5000)

However, the Past Dues sheet I am pulling information from, the names in
column A have been changed. So now the example above looks like Tom Bonnette
(24). There is a likely hood that the 24 could change. How can I change my
expression to still pull all occurrences of Tom Bonnette regardless of what
number is behind? I have tried using the wildcards, but it is not working.
Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Sumproduct for partial text

Change
(--('[Past Dues Aug.xls]Sheet1'!$A$1:$A$5000="Tom Bonnette")
to
(--(LEFT('[Past Dues Aug.xls]Sheet1'!$A$1:$A$5000,12 )="Tom Bonnette")

or, if the name is in a cell (G1 for example)
(--(LEFT('[Past Dues Aug.xls]Sheet1'!$A$1:$A$5000,LEN(G1))=G1)

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Jasmine" wrote in message
...
I am using the following Sumproduct command and it has been working great.

=SUMPRODUCT(--('[Past Dues Aug.xls]Sheet1'!$A$1:$A$5000="Tom
Bonnette"),'[Past Dues Aug.xls]Sheet1'!$B$1:$B$5000)

However, the Past Dues sheet I am pulling information from, the names in
column A have been changed. So now the example above looks like Tom
Bonnette
(24). There is a likely hood that the 24 could change. How can I change my
expression to still pull all occurrences of Tom Bonnette regardless of
what
number is behind? I have tried using the wildcards, but it is not working.
Thanks!



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
Text Being Seen as Partial Cell Address Mike S. Excel Discussion (Misc queries) 4 March 12th 07 08:12 PM
Selecting Partial Text in a field Kanadani Excel Discussion (Misc queries) 3 February 7th 07 09:07 PM
eliminate partial text in many fields BuffaloBilly Excel Worksheet Functions 1 December 27th 06 01:45 AM
sumproduct partial text count Ribeye Excel Worksheet Functions 2 February 14th 06 06:43 PM
Finding Partial Text in a Cell bob Excel Worksheet Functions 6 December 18th 04 05:03 AM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"