+ Reply to Thread
Results 1 to 7 of 7

Need help with a sumproduct formula

  1. #1
    Registered User
    Join Date
    09-29-2005
    Posts
    74

    Need help with a sumproduct formula

    I want the current formula to sum everything that does not have *U.S. Treasury* in it. I need the SEARCH function in it to search for the alpha characters.


    SUMPRODUCT(--(E3:E782),--(ISNUMBER(SEARCH("*U.S. Treasury*",D3:D782))))

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need help with a sumproduct formula

    Maybe

    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Need help with a sumproduct formula

    Do you mean?

    =SUMPRODUCT(--(NOT(ISNUMBER(SEARCH("*U.S. Treasury*",D3:D782)))),E3:E782)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: Need help with a sumproduct formula

    You don't need the * wildcards. SEARCH already looks for a substring.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    which can also be done with SUMIF by using those wildcards:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  5. #5
    Registered User
    Join Date
    09-29-2005
    Posts
    74

    Re: Need help with a sumproduct formula

    How can I add to this formula? I don't want *Fed* to be summed either.

  6. #6
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    1,252

    Re: Need help with a sumproduct formula

    I assume you're using Excel 2007 or later, in which case:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need help with a sumproduct formula

    For earlier versions, use this adpatation of Colin's formula

    Please Login or Register  to view this content.

+ 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