Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 791
Default SUMIF where the criteria is 'if contains a string'?

I would like to do something similar to: SUMIF(A1:A100,"<"&C1,B1:B100) but
the criteria should be 'the cell (within the range B1 to B100) contains the
string in cell C1'. How is it possible?

Thanks, Michael

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 524
Default SUMIF where the criteria is 'if contains a string'?

Sat, 23 Feb 2008 08:19:00 -0800 from Michael
:
I would like to do something similar to: SUMIF(A1:A100,"<"&C1,B1:B100) but
the criteria should be 'the cell (within the range B1 to B100) contains the
string in cell C1'. How is it possible?


=Sumif(A1:A100,C1)

Sometimes things are simpler than we think. :-)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
A: Maybe because some people are too annoyed by top posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top posting such a bad thing?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default SUMIF where the criteria is 'if contains a string'?

On Sat, 23 Feb 2008 08:19:00 -0800, Michael
wrote:

I would like to do something similar to: SUMIF(A1:A100,"<"&C1,B1:B100) but
the criteria should be 'the cell (within the range B1 to B100) contains the
string in cell C1'. How is it possible?

Thanks, Michael



Use wildcards:

=sumif(a1:a100,"*"&C1&"*",b1:b100)
--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 791
Default SUMIF where the criteria is 'if contains a string'?

That's it, thanks a lot Ron!

"Ron Rosenfeld" wrote:

On Sat, 23 Feb 2008 08:19:00 -0800, Michael
wrote:

I would like to do something similar to: SUMIF(A1:A100,"<"&C1,B1:B100) but
the criteria should be 'the cell (within the range B1 to B100) contains the
string in cell C1'. How is it possible?

Thanks, Michael



Use wildcards:

=sumif(a1:a100,"*"&C1&"*",b1:b100)
--ron

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default SUMIF where the criteria is 'if contains a string'?

On Sat, 23 Feb 2008 09:08:00 -0800, Michael
wrote:

That's it, thanks a lot Ron!


You're welcome. Glad to help. Thanks for the feedback.
--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 524
Default SUMIF where the criteria is 'if contains a string'?

Sat, 23 Feb 2008 11:46:45 -0500 from Stan Brown
:
Sat, 23 Feb 2008 08:19:00 -0800 from Michael
:
I would like to do something similar to:
SUMIF(A1:A100,"<"&C1,B1:B100) but the criteria should be 'the
cell (within the range B1 to B100) contains the string in cell
C1'.


=Sumif(A1:A100,C1)

Sometimes things are simpler than we think. :-)


But this is, alas, not one of them. Sorry; I overlooked the
condition on range B1 to B100. Luckily, Ron has already given you a
solution.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
A: Maybe because some people are too annoyed by top posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top posting such a bad thing?
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
String criteria in DCOUNT function Rob Excel Worksheet Functions 1 October 1st 07 04:01 PM
Need Advanced Filter with NOT equal string and OR criteria MK Excel Discussion (Misc queries) 5 December 7th 05 02:28 PM
I need to do a sumif on data that [contains] a specific string. JEH Excel Worksheet Functions 2 June 10th 05 02:49 PM
Search string with multiple criteria fLiPMoD£ Excel Worksheet Functions 2 May 5th 05 08:02 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM


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