+ Reply to Thread
Results 1 to 5 of 5

Sumproduct to Count Text

Hybrid View

  1. #1
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Sumproduct to Count Text

    Hi there, welcome to the Forum!

    Try using ISNUMBER(FIND()) like this

    =SUMPRODUCT(--(Data!A2:A3000="person")*--(ISNUMBER(FIND("ABC",Data!G2:G3000))))
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,733

    Re: Sumproduct to Count Text

    Quote Originally Posted by DGagnon View Post
    =SUMPRODUCT(--(Data!A2:A3000="person")*--(ISNUMBER(FIND("ABC",Data!G2:G3000))))
    This formula will work but, really, you are mixing up syntaxes unnecessarily here, if you use * you don't need -- and vice versa, so probably you would normally use either this version

    =SUMPRODUCT((Data!A2:A3000="person")*ISNUMBER(FIND("ABC",Data!G2:G3000)))

    ....where multiplying the two arrays using * implicitly co-erces the TRUEs to 1s and the FALSEs to zeroes, or this one.....

    =SUMPRODUCT(--(Data!A2:A3000="person"),--ISNUMBER(FIND("ABC",Data!G2:G3000)))

    where -- explicitly co-erces each array
    Last edited by daddylonglegs; 04-09-2012 at 10:24 AM.
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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