+ Reply to Thread
Results 1 to 3 of 3

sumif function

  1. #1
    John Smith
    Guest

    sumif function

    I have several SUMIF formulas in a worksheet but can only get a
    calculation for a formula with only criteria like SUMIF A1:A9, "s",
    A2:A10. How do I make it work if the criteria is "s" or "SP" or "sb". etc.?

  2. #2
    Bernard Liengme
    Guest

    Re: sumif function

    Try a wildcard as in =SUMIF(A1:A6,"s*",B1:B6)

    Also look at SUMPRODUCT; see
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    http://mcgimpsey.com/excel/formulae/doubleneg.html

    Go to source >>

    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "John Smith" <[email protected]> wrote in message
    news:[email protected]...
    >I have several SUMIF formulas in a worksheet but can only get a calculation
    >for a formula with only criteria like SUMIF A1:A9, "s", A2:A10. How do I
    >make it work if the criteria is "s" or "SP" or "sb". etc.?




  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    If your criteria don't all begin with "S" you can use a formula like

    =SUM(SUMIF(A1:A6,{"sp","ab","xy"},B1:B6)

+ 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