Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default FIND text within text then sum

Hi,

Column A contains text and numbers with some recurring text ie
1234 xxx 098
1342 xxx 878
5642 xxx 456

Column B contains a number.

I need to sum column b on selected text criteria in Column A. I can't use
LEN or RIGHT as the number of characters in column A are never the same and
there isn't always a space between numbers and text. I thought trying to use
a SUMPRODUCT with a FIND as one of the array options, but for the life of me
can't make it work.

Help please
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,522
Default FIND text within text then sum

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dhazmo" wrote in message
...
Hi,

Column A contains text and numbers with some recurring text ie
1234 xxx 098
1342 xxx 878
5642 xxx 456

Column B contains a number.

I need to sum column b on selected text criteria in Column A. I can't use
LEN or RIGHT as the number of characters in column A are never the same
and
there isn't always a space between numbers and text. I thought trying to
use
a SUMPRODUCT with a FIND as one of the array options, but for the life of
me
can't make it work.

Help please


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default FIND text within text then sum

Don - sorry can't send you the data - is there any other information I can
supply you with?

"Don Guillett" wrote:

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Dhazmo" wrote in message
...
Hi,

Column A contains text and numbers with some recurring text ie
1234 xxx 098
1342 xxx 878
5642 xxx 456

Column B contains a number.

I need to sum column b on selected text criteria in Column A. I can't use
LEN or RIGHT as the number of characters in column A are never the same
and
there isn't always a space between numbers and text. I thought trying to
use
a SUMPRODUCT with a FIND as one of the array options, but for the life of
me
can't make it work.

Help please


.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default FIND text within text then sum

Maybe you can use =sumif() since it accepts wild cards.

=sumif(a:a,"*xxx*",b:b)
or if xxx was in z99
=sumif(a:a,"*"&z99&"*",b:b)

I'd check for empty cells first:
=if(z99="","",sumif(...))

Dhazmo wrote:

Hi,

Column A contains text and numbers with some recurring text ie
1234 xxx 098
1342 xxx 878
5642 xxx 456

Column B contains a number.

I need to sum column b on selected text criteria in Column A. I can't use
LEN or RIGHT as the number of characters in column A are never the same and
there isn't always a space between numbers and text. I thought trying to use
a SUMPRODUCT with a FIND as one of the array options, but for the life of me
can't make it work.

Help please


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default FIND text within text then sum

Thank you!!! - Didn't even think of using wild cards.

"Dave Peterson" wrote:

Maybe you can use =sumif() since it accepts wild cards.

=sumif(a:a,"*xxx*",b:b)
or if xxx was in z99
=sumif(a:a,"*"&z99&"*",b:b)

I'd check for empty cells first:
=if(z99="","",sumif(...))

Dhazmo wrote:

Hi,

Column A contains text and numbers with some recurring text ie
1234 xxx 098
1342 xxx 878
5642 xxx 456

Column B contains a number.

I need to sum column b on selected text criteria in Column A. I can't use
LEN or RIGHT as the number of characters in column A are never the same and
there isn't always a space between numbers and text. I thought trying to use
a SUMPRODUCT with a FIND as one of the array options, but for the life of me
can't make it work.

Help please


--

Dave Peterson
.

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
Find repeated text in a text document in Excel JE Excel Worksheet Functions 2 June 8th 08 09:32 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
find text in cell and replace it with part of the text in that ce. jules Excel Discussion (Misc queries) 3 May 3rd 07 10:18 AM
Find text within cell then display text to left Jambruins Excel Discussion (Misc queries) 5 April 17th 06 10:01 PM
can you find specific text in a string ignoring any other text chriscp Excel Discussion (Misc queries) 1 September 18th 05 09:54 PM


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