+ Reply to Thread
Results 1 to 15 of 15

SUMPRODUCT and search string

  1. #1
    Registered User
    Join Date
    03-10-2005
    Location
    East Greenbush, NY
    Posts
    26

    Question 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.

    Heather Linsk
    h l i n s k @ g m a i l . c o m

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    try this

    =SUMPRODUCT((NOT(ISERROR(FIND("foo",$B$1:$B$700))))*($D$1:$D$700=""))
    not a professional, just trying to assist.....

  3. #3
    Registered User
    Join Date
    03-10-2005
    Location
    East Greenbush, NY
    Posts
    26
    Quote Originally Posted by duane
    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.

  4. #4
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    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

  5. #5
    Registered User
    Join Date
    03-10-2005
    Location
    East Greenbush, NY
    Posts
    26
    Thank You!!!!

  6. #6
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  7. #7
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  8. #8
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  9. #9
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  10. #10
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  11. #11
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  12. #12
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  13. #13
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  14. #14
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  15. #15
    Bob Phillips
    Guest

    Re: SUMPRODUCT and search string

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1