+ Reply to Thread
Results 1 to 3 of 3

SumIf / SumIfs with multiple Contains Text criteria

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010 64bit
    Posts
    3

    SumIf / SumIfs with multiple Contains Text criteria

    Hello peoples! First post here so, hello

    My brain is failing on this formula situation today.

    I have a URL list in Column B and values to add together in Column C
    Columns L to Q have partial URLs in them, one row = one group of URLs

    I'm trying to group the URLs by summing only if it contains ("*"&CELL&"*") certain text.

    Example of the basic one:
    Please Login or Register  to view this content.
    Which is fine. However! Some of the groups have up to 5 variations across their rows.
    I have tried to add together the results of sumif formulas in one go, but it then drags in blank cells making the totals too high
    Please Login or Register  to view this content.
    I have also tried Sumifs with multiple criteria, but it treats each criteria as an AND rather than an OR which causes rows with mutiple criteria to bring back 0.
    Please Login or Register  to view this content.
    I have also tried putting my criteria into an internal array, however this doesn't work as I'm looking for CONTAINS text rather than exact match.

    Please Login or Register  to view this content.
    It's doing my nut in because I think it is doable, I just haven't found it yet.

    Any and all help is much appreciated. Thanks!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: SumIf / SumIfs with multiple Contains Text criteria

    First, make sure that all cell sin L3:Q3 have a value...even if it's the word "blank"...to avoid matching all cells in C4:C53
    Second, try this regular formula
    =SUMPRODUCT(SUMIF($B$4:$B$53,"*"&L3:Q3&"*",$C$4:$C$53))

    Does that help?
    Last edited by Ron Coderre; 12-12-2012 at 01:07 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-06-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2010 64bit
    Posts
    3

    Re: SumIf / SumIfs with multiple Contains Text criteria

    So simple and yet so effective, I think I was trying to make things too complicated for myself.

    Thankyou!

+ 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