+ Reply to Thread
Results 1 to 9 of 9

Sum IF Help

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Sum IF Help

    In range B2:XJD25 I will have cells that contain the word "Done". I need a formula that finds all instances of "Done" and when found sum the numbers that are found directly to the right of the cell (cells to the right of "Done" will always contain a number)

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Sum IF Help

    use a SUMIF()

    =SUMIF( range with the word done in ,"done" , range you want to sum)
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Sum IF Help

    Quote Originally Posted by etaf View Post
    use a SUMIF()

    =SUMIF( range with the word done in ,"done" , range you want to sum)
    That won't work as the formula would look like:

    Please Login or Register  to view this content.
    And that would be too many arguments for excel to handle and it throws an error. I'd actually be working with 10000 columns but made that formula much less.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Sum IF Help

    why would it look like that

    can the word done be in any column and you want the cell to the right - then sumif() will not work
    I suspect you need VBA , not my area of expertise

  5. #5
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Sum IF Help

    It'd look like that because that's the way you have to enter the formula....

    Done can be in any column yes. I'll ask on VBA forum so. Thanks for trying anyway.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,740

    Re: Sum IF Help

    It'd look like that because that's the way you have to enter the formula....
    not quite

    but it does need the columns to be the same

    if done was somewhere in column B and the value in column G

    =sumif( b2:b25, "done" , g2:g25) is how the SUMIF() works

  7. #7
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Sum IF Help

    As previously stated though, "Done" can be anywhere. Otherwise you're right - it'd just be a simple SUMIF formula. I'll close the thread.

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sum IF Help

    Here is a sample that you may be able to adapt
    formula in A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B C D E F G H
    1
    2 134 Done 25
    3 Done Done 32
    4 Done 45
    5 51
    6
    Last edited by AlKey; 05-17-2016 at 01:35 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum IF Help

    Quote Originally Posted by ScabbyDog View Post
    As previously stated though, "Done" can be anywhere. Otherwise you're right - it'd just be a simple SUMIF formula. I'll close the thread.
    Like this...

    Data Range
    B
    C
    D
    E
    F
    G
    2
    Done
    48
    Blah
    Done
    100
    94
    3
    Blah
    55
    Blah
    39
    Blah
    68
    4
    Blah
    Done
    100
    92
    Done
    63
    5
    Blah
    46
    Blah
    42
    Done
    59
    6
    ------
    ------
    ------
    ------
    ------
    ------
    7
    8
    9
    370


    =SUMIF(B2:F5,"Done",C2:G5)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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