Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
peacelittleone
 
Posts: n/a
Default SUMPRODUCT and search string


In column B I have text that may or may not contain the word "foo".
In column D I have cells that may or may not contain text.

I want to be able to count the number of rows where BX contains "foo"
and column D is not empty (or is empty - I can take either).

What I have is:

=SUMPRODUCT((B1:B700="*foo*")*(D1:D700=""))

Any help is appriciated.

Thank you,

Heather.


--
peacelittleone


------------------------------------------------------------------------
peacelittleone's Profile: http://www.excelforum.com/member.php...o&userid=20937
View this thread: http://www.excelforum.com/showthread...hreadid=379321

  #2   Report Post  
duane
 
Posts: n/a
Default


try this

=SUMPRODUCT((NOT(ISERROR(FIND("foo",$B$1:$B$700))) )*($D$1:$D$700=""))


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=379321

  #3   Report Post  
peacelittleone
 
Posts: n/a
Default


duane Wrote:
try this

=SUMPRODUCT((NOT(ISERROR(FIND("foo",$B$1:$B$700))) )*($D$1:$D$700=""))



Tried. Still getting 0 as an answer. :(

Here is some sample data...

B D
1 Heading
2 This is some foo text
3 This is some foo text This is a non blank cell
4 This is some foo text
5 Heading
6 This is some foo text
7 This is some foo text

Here is my formula:

=SUMPRODUCT((NOT(ISERROR(FIND("foo",$B$1:$B$8)))), ($D$1:$D$8=""))

I am getting 0 when I should be getting 3.

ugh.


--
peacelittleone


------------------------------------------------------------------------
peacelittleone's Profile: http://www.excelforum.com/member.php...o&userid=20937
View this thread: http://www.excelforum.com/showthread...hreadid=379321

  #4   Report Post  
duane
 
Posts: n/a
Default


you pasted this

=SUMPRODUCT((NOT(ISERROR(FIND("foo",$B$1:$B$8)))), ($D$1:$D$8=""))


which should be

=SUMPRODUCT((NOT(ISERROR(FIND("foo",$B$1:$B$700))) )*($D$1:$D$700=""))

note the * in the middle instead of your comma


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=379321

  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

If you don't want it case sensitive, use

=SUMPRODUCT(--(NOT(ISERROR(SEARCH("foo",$B$1:$B$700)))),--($D$1:$D$700=""))

--
HTH

Bob Phillips

"duane" wrote in
message ...

try this

=SUMPRODUCT((NOT(ISERROR(FIND("foo",$B$1:$B$700))) )*($D$1:$D$700=""))


--
duane


------------------------------------------------------------------------
duane's Profile:

http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=379321





  #6   Report Post  
peacelittleone
 
Posts: n/a
Default


Thank You!!!! :)


--
peacelittleone


------------------------------------------------------------------------
peacelittleone's Profile: http://www.excelforum.com/member.php...o&userid=20937
View this thread: http://www.excelforum.com/showthread...hreadid=379321

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
SUMPRODUCT JerryS Excel Worksheet Functions 4 June 7th 05 02:02 PM
SumProduct? Murph Excel Worksheet Functions 2 May 25th 05 07:38 PM
Sumproduct Help, I think. tamato43 Excel Discussion (Misc queries) 6 May 12th 05 09:30 AM
sumproduct & indirect floridasurfn Excel Worksheet Functions 3 March 14th 05 02:01 AM
sumproduct using multiple criteria tifosi3 Excel Worksheet Functions 2 January 6th 05 08:46 PM


All times are GMT +1. The time now is 04:55 AM.

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"