+ Reply to Thread
Results 1 to 5 of 5

Help with Sumproduct searching cell contents

  1. #1
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Help with Sumproduct searching cell contents

    Using a sumproduct, across 29783 rows I'm trying to count how many rows have a "Y" in one column, a specific word in another column and if a cell contains a certain word.

    I've managed the first two and am confident it works.

    =SUMPRODUCT((Extract!F$4:F$29783="Y")*(Extract!$BF $4:$BF$29783=Formula!$B5)

    When it comes to the final condition I'm lost. My best guess is:

    =SUMPRODUCT((Extract!F$4:F$29783="Y")*(Extract!$BF $4:$BF$29783=Formula!$B5)*(COUNT(SEARCH(Dashboard! $C$3,Extract!$BK$4:$BK$29783,0))))



    For the third condition the text to search for is held in another Sheet (Dashboard) and is in cell C3. The column containing strings of text is in the Extract worksheet - column BK.

    Examples of data in column BK a

    P337 FT3DD Studio; P338 FT3DD Studio
    P339 D FT3DD Studio; P339A FT3DD Studio; P339B FT3DD Studio


    Text in Cell C3 of the Dashboard sheet could be any one of these room names.


    Any help greatly appreciated.

    Jason

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Help with Sumproduct searching cell contents

    =SUMPRODUCT((Extract!F$4:F$29783="Y")*(Extract!$BF $4:$BF$29783=Formula!$B5)*(NOT(ISERROR(FIND($C$3,$BK$4:$BK$29783,1)))))

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Help with Sumproduct searching cell contents

    Hi,

    maybe

    =SUMPRODUCT(--(Extract!F$4:F$29783="Y"),--(Extract!$BF $4:$BF$29783=Formula!$B5),--ISNUMBER(SEARCH(Dashboard! $C$3,Extract!$BK$4:$BK$29783,0)))

    regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Contributor
    Join Date
    07-17-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel for O365
    Posts
    197

    Re: Help with Sumproduct searching cell contents

    Thanks guys for your speedy responses but unfortunately I've tried them both and they're both resulting in zeros which I know to be incorrect.

  5. #5
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Help with Sumproduct searching cell contents

    Hi All,


    a small typo (in red) in the formula I shared

    =SUMPRODUCT(--(Extract!F$4:F$29783="Y"),--(Extract!$BF$4:$BF$29783=Formula!$B5),--ISNUMBER(SEARCH(Dashboard!$C$3,Extract!$BK$4:$BK$29783,1)))


    Hope it helps
    Last edited by canapone; 11-11-2013 at 09:51 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Searching cell contents for a combination of letters
    By mangaliso89 in forum Excel General
    Replies: 1
    Last Post: 05-25-2011, 11:46 AM
  2. Sum depending on searching contents of another column
    By FCFalkirk in forum Excel General
    Replies: 3
    Last Post: 12-15-2010, 09:03 AM
  3. Searching Based On Contents Of Changeable Cell
    By belfast-biker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2006, 04:26 PM
  4. Count cell contents in 2 columns?? SUM? SUMPRODUCT?
    By LTUser54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2006, 03:11 PM
  5. Searching through the contents of a Folder of text files
    By jase in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2006, 11:50 AM

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