+ Reply to Thread
Results 1 to 22 of 22

Need help with SUMIFS formula

  1. #1
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Post Need help with SUMIFS formula

    Here is my scenario: I have a list of competitors with their dogs and the points they've earned in competitions. I would like to be able to add up all the points earned by each handler/dog combination and display it in a list of descending order in another sheet.

    I am currently using this formula =IF(F2=F1,"",SUMIF(F:F,F2,G:G)), which seemed to work once the list was sorted into order by the name of the dog. But, I just discovered that it's adding points together for all the dogs with the same name, regardless of the handler. So, I need to make a formula to tally the points for the dogs in column F and compare the handler name in Column E and put the correct total with the correct handler/dog combination.
    Essentially, I need a total of all points in column G, where Column E and Column F are the same combination.

    The SUMIFS formula seemed to be the answer and I've tried using it, but I apparently can't get the syntax right because I keep getting a 0 result.

    Column E - Column F - Column G

    Jim Smith - Slink - 20
    Dave Jones - Mouse -120
    Jim Smith - Slik - 220
    Kate North - Blue - 320
    Ed Walker - Dave - 420
    Jim Davis - Dave - 60
    Sam Smith - Liz - 160
    Sam Smith - Pete - 360
    Char Edward - Tuff - 460
    Joe Nellis - Bullet - 560
    Brett Gaines - Sassy - 660
    Tom Williams- Duncan- 60

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    is that what you want?

    Brett Gaines Sassy
    660
    Char Edward Tuff
    460
    Dave Jones Mouse
    120
    Ed Walker Dave
    420
    Jim Davis Dave
    60
    Jim Smith Slink, Slik
    240
    Joe Nellis Bullet
    560
    Kate North Blue
    320
    Sam Smith Pete, Liz
    520
    Tom Williams Duncan
    60


    if not show the expected result
    Last edited by sandy666; 07-08-2018 at 05:31 PM.

  3. #3
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    Almost. I still need the different dogs summed by themselves, even if the handler is the same. This is actually a for a list of a couple hundred handler/dog teams and I need each team's points separate for the standings

    Like this:

    Brett Gaines - Sassy - 660
    Char Edward - Tuff - 460
    Dave Jones - Mouse - 120
    Ed Walker - Dave - 420
    Jim Davis - Dave - 60
    Jim Smith - Slink - 20
    Jim Smith - Slik - 220
    Joe Nellis - Bullet - 560
    Kate North - Blue - 320
    Sam Smith - Pete - 360
    Sam Smith - Liz - 160
    Tom Williams - Duncan - 60
    Last edited by 57 Ranch; 07-08-2018 at 06:43 PM.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    as I said: show expected result

    but I'll try again

    Brett Gaines Sassy
    660
    Char Edward Tuff
    460
    Dave Jones Mouse
    120
    Ed Walker, Jim Davis Dave
    480
    Jim Smith Slink
    20
    Jim Smith Slik
    220
    Joe Nellis Bullet
    560
    Kate North Blue
    320
    Sam Smith Pete
    360
    Sam Smith Liz
    160
    Tom Williams Duncan
    60

  5. #5
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    I did show the result I'm looking for, it's in my reply. Hang on, I'll post a bigger list to work from

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    the best way is attach example excel file with source and expected result

    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data and contain the result what you want to achieve (manually created if necessary)
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply
    After that you should see attachment in your post

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    example from post#1 and from post#3 are exactly the same (with different order only)

    so maybe select whole range, use Ctrl+T (it will change your range to Excel Table) then sort by first column (handler or whatever)

    this is your source data (post#1) as ExcelTable, sorted
    column1 by A-Z
    column2 by Z-A
    and the result is like in post#3

    Brett Gaines Sassy
    660
    Char Edward Tuff
    460
    Dave Jones Mouse
    120
    Ed Walker Dave
    420
    Jim Davis Dave
    60
    Jim Smith Slink
    20
    Jim Smith Slik
    220
    Joe Nellis Bullet
    560
    Kate North Blue
    320
    Sam Smith Pete
    360
    Sam Smith Liz
    160
    Tom Williams Duncan
    60
    Last edited by sandy666; 07-08-2018 at 07:27 PM.

  8. #8
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    Ok, I will sort it up into a new sheet and post that file. Thank you

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    Excel file attached
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    I think my original data clip was too small to illustrate what I was wanting to do. I've sorted it manually and posted that file to a reply

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    you sorted points
    but you didn't show expected result.

    if your sorted range is an expected result what you want more?

  13. #13
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    That is the expected result.

    Columns A, B , and C are the data from the source sheet.

    Columns H, I, and J are the sorted result that I would like to produce on another sheet. That sorted list is what I produced by cutting, pasting, Auto Sum, and sorting manually.

    I would like to be able to write a formula in my second sheet that will take all the instances of the same handler and dog combination (from the first sheet) and add up the points associated with those teams, and list them on that second sheet so I can sort them into a descending order.

    I would like to be able to continue to enter data into the first sheet and have the second sheet update automatically as I go. Does that make sense?

    It seems that a SUMSIF formula would do what I want, but I don't know how to specify how to search for matches in both columns, then only sum the third column if both dog and handler name match?
    Last edited by 57 Ranch; 07-08-2018 at 08:43 PM.

  14. #14
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Need help with SUMIFS formula

    Ok,
    so you can try with PowerQuery or PivotTable

    something wrong with EF: The Excel Help Forum database has encountered a problem.


    maybe someone else will give you a formula solution.
    Attached Files Attached Files
    Last edited by sandy666; 07-08-2018 at 09:19 PM.

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    something wrong with EF: The Excel Help Forum database has encountered a problem.
    Last edited by sandy666; 07-08-2018 at 09:02 PM.

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Need help with SUMIFS formula

    something wrong with EF: The Excel Help Forum database has encountered a problem.
    Last edited by sandy666; 07-08-2018 at 09:01 PM.

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Need help with SUMIFS formula

    something wrong with EF: The Excel Help Forum database has encountered a problem.
    Last edited by sandy666; 07-08-2018 at 09:17 PM.

  18. #18
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    I have attempted to use a Pivot Table, but it gives me subtotals for each handler name instead of a list that I can sort into a descending order. I've also looked into using the Match function, but I don''t think that will do it either.

    I will look into the Power Query

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with SUMIFS formula

    in PivotTable you can turn on/off subotals, total, etc....
    click on PivotTable, ribbon, Design, go to the very left of the ribbon and you will see there what you can do

  20. #20
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    Ahh, this is SO damned frustrating!

    Why can't I just write a formula that will tell it to look at Column A and Column B, compare them to each other, then add up the numbers that are in Column C that correspond to each unique pair of text items in Column A And Column B????? Isn't that what the SUMIFS function is supposed to do?

    I can look at the data and see what needs to be done to accomplish it, but this very powerful spreadsheet is incapable of doing that very thing?

    And, in the Pivot Table, the subtotals are what I need, in a list. I don't need the total points per handler.


    Thanks very much for your help so far, if you want to bail out, I don't blame you. I'm about ready to myself.....

  21. #21
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Need help with SUMIFS formula

    formula for sorted data:
    Please Login or Register  to view this content.
    named ranges:
    dogname =Sheet1!$B$4:$B$141
    handler =Sheet1!$A$4:$A$141
    trialpoints =Sheet1!$C$4:$C$141
    Ben Van Johnson

  22. #22
    Registered User
    Join Date
    07-08-2018
    Location
    Yoder, WY
    MS-Off Ver
    Office 365 online
    Posts
    17

    Re: Need help with SUMIFS formula

    Found the solution!!

    Here's what I finally got resolved, turned out I was missing identifying the specific cell to compare in each column.

    =SUMIFS(C:C,B:B,B4,A:A,A4)
    Then, reference that to Sheet2, =SUMIFS(Sheet1!C:C,Sheet1!B:B,Sheet1!B4,Sheet1!A:A,Sheet1!A4), sort for descending value, hide the duplicates, then print the list


    Thank you for the help, it kept me digging for the answer when I was about ready to pack it in.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-22-2017, 03:49 PM
  2. [SOLVED] Sumifs formula without using sumifs....
    By blockbyblock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2017, 10:45 AM
  3. Replies: 3
    Last Post: 01-24-2017, 08:08 AM
  4. Replies: 10
    Last Post: 12-16-2015, 03:16 PM
  5. [SOLVED] Sumifs formula giving #value even though each part individually works as a sum formula
    By carrach in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-08-2015, 10:34 AM
  6. Replies: 2
    Last Post: 05-22-2014, 04:14 AM
  7. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM

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