+ Reply to Thread
Results 1 to 3 of 3

Modifying a sumproduct formula to search for words in a cell

  1. #1
    Forum Contributor
    Join Date
    09-13-2005
    Posts
    114

    Modifying a sumproduct formula to search for words in a cell

    My current formula is this:

    =SUMPRODUCT((Str311A=1)*(Str311C=15)*(Str311G<>" DM "),Str311L)

    All the items starting with Str311 are formula's associate with a name. What I'm trying to do is add one more factor into the formula. I need it to look in column I for any cell that contains the words L/S. I tried modifying the formula to this but it does not work:

    SUMPRODUCT((Str311A=1)*(Str311C=15)*(Str311I="*L/S*")*(Str311G<>" DM "),Str311L)

    The formula contained inside the names are:

    Str311=OFFSET(Outlet!$A$1,MATCH("STORE # 163311",Outlet!$A:$A,0)-1,0,MATCH("TOTAL FOR STORE : 163311 SAN MARCOS",Outlet!$A:$A,0)-MATCH("STORE # 163311",Outlet!$A:$A,0)+1,1)

    Str311A=OFFSET(Str311,0,0)

    Str311C=OFFSET(Str311,0,2)

    Str311I=OFFSET(Str311,0,8)

    Str311G=OFFSET(Str311,0,6)

    What I need is a way to modify my original formula to now also only match cells that contain the phrase L/S. The phrase can be located at the beggining, middle, or end of the cell characters. Thanks in advance for any help that can be offered.
    Last edited by Weasel; 07-07-2009 at 02:52 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Modifying a sumproduct formula to search for words in a cell

    TRy:

    SUMPRODUCT((Str311A=1)*(Str311C=15)*Isnumber(Search("L/S",Str311I))*(Str311G<>" DM "),Str311L)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    09-13-2005
    Posts
    114

    Re: Modifying a sumproduct formula to search for words in a cell

    That worked perfectly! Thanks for your help

+ 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