+ Reply to Thread
Results 1 to 4 of 4

Using partial strings as argument for sumif()

  1. #1
    Registered User
    Join Date
    07-07-2009
    Location
    Escondido, California
    MS-Off Ver
    Excel 2003
    Posts
    6

    Using partial strings as argument for sumif()

    I have a 100 element header row. Each cell represents an account. I want to sum the amounts of each subsequent row if the word "saving" shows up in the header.

    For instance, there may be "saving 1" "Savings for Xmas" "Savings 2" in the header row, and I want those to trigger the sumif function.

    Basically I want something like sumif(B2:B101,exact(left(B2:B101,6),"saving"),A2:A101)

    Of course, that doesn't work. Any ideas?
    Last edited by Andy Mail; 07-16-2009 at 04:34 PM.

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

    Re: Using partial strings as argument for sumif()

    Hello Andy, you can use wildcards with SUMIF so try something like

    =SUMIF($A2:$A101,"saving*",B2:B101)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using partial strings as argument for sumif()

    rows/columns? whats a header row?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-07-2009
    Location
    Escondido, California
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Using partial strings as argument for sumif()

    Wouldja look at that - thanks!

+ 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