#1   Report Post  
Nadia
 
Posts: n/a
Default SUMIF problem

I have a column that contains the following text cells:
abc - 123
abc - 455
abc - 333
zzzzsyt
wwtrtzz

I just want to sum up the values corresponding to any cell
that has an "abc - " in it. How do I do this? I've tried:
=SUMIF(range,"*abc*",range) but it doesn't work. Please
help!


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

This works for me:

=SUMIF(A:A,"*abc*",B:B)

where the values to be summed are in a separate column. Are you trying
to extract the values from the text cells?

In article ,
"Nadia" wrote:

I have a column that contains the following text cells:
abc - 123
abc - 455
abc - 333
zzzzsyt
wwtrtzz

I just want to sum up the values corresponding to any cell
that has an "abc - " in it. How do I do this? I've tried:
=SUMIF(range,"*abc*",range) but it doesn't work.

  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Would be easier if you had two columns.
This works if the last three characters are the number in each cell
=SUMPRODUCT(--(LEFT(F1:F5,5)="abc -"),VALUE(RIGHT(F1:F5,3)))
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Nadia" wrote in message
...
I have a column that contains the following text cells:
abc - 123
abc - 455
abc - 333
zzzzsyt
wwtrtzz

I just want to sum up the values corresponding to any cell
that has an "abc - " in it. How do I do this? I've tried:
=SUMIF(range,"*abc*",range) but it doesn't work. Please
help!




  #4   Report Post  
 
Posts: n/a
Default

Aha! The problem was that the data range I was specifying
didn't reference the correct column. I've got it! Thanks
for you help :)
Nadia
-----Original Message-----
This works for me:

=SUMIF(A:A,"*abc*",B:B)

where the values to be summed are in a separate column.

Are you trying
to extract the values from the text cells?

In article ,
"Nadia" wrote:

I have a column that contains the following text cells:
abc - 123
abc - 455
abc - 333
zzzzsyt
wwtrtzz

I just want to sum up the values corresponding to any

cell
that has an "abc - " in it. How do I do this? I've

tried:
=SUMIF(range,"*abc*",range) but it doesn't work.

.

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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
SUMIF PROBLEM puzzledfe Excel Worksheet Functions 3 January 21st 05 05:19 PM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 05:33 PM
SUMIF problem Hodge Excel Worksheet Functions 1 November 11th 04 11:48 AM
SUMIF problem Hodge Excel Worksheet Functions 1 November 11th 04 11:02 AM


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