+ Reply to Thread
Results 1 to 12 of 12

Need to break a tie using SUMPRODUCT

  1. #1
    Registered User
    Join Date
    09-02-2015
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need to break a tie using SUMPRODUCT

    I need to break a tie based on time. I am running a fishing tournament and need to rank boats by fish size. It's possible that multiple boats may weigh in a fish weighing the same. I need to break the tie using the time they weighed in. The formula I'm using is below. Any help would be greatly appreciated.

    =SUMPRODUCT((B1<B$1:B$31)/COUNTIF(B$1:B$31,B$1:B$31))+1

    Column A is Boat Column B is the weight. Column C is ranking and column D is time




    columns.JPG

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Need to break a tie using SUMPRODUCT

    Hi,

    Try this in your ranking column:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need to break a tie using SUMPRODUCT

    In E2 copied down
    =B2*10-D2
    Then Rank using column E
    =RANK(E2, $E$2:$E$20)

    See attachment (I hid Column E)
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need to break a tie using SUMPRODUCT

    Welcome to the Forum salberts1,

    In order to enable a consistent rank order I subtracted the time of arrival from the hours remaining in the day and then added that to the weigh-ins.

    It looks like this.

    BTW since you are new to the Forum you might not be aware of the Forum preference for uploading a sample Excel file rather than a pic or screen shot. It saves having to retype your data and not everyone's browser is capable of seeing all of those .... not to mention company firewalls etc....

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Who Weigh-ins Raw Rank Time arrived Final Ranks Helper remaining time Combined scores
    2
    Boat 1
    1.9
    2
    8:57 AM
    2
    3:03 PM
    25.52708
    In F2 =IF(B2,24-D2,"")
    3
    Boat 2
    0
    3
    0
    In G2 =IF(B2,B2+F2,"")
    4
    Boat 3
    0
    3
    0
    In E2 =IFERROR(RANK(G2,$G$2:$G$12,0),"")
    5
    Boat 4
    0
    3
    0
    6
    Boat 5
    0
    3
    0
    7
    Boat 6
    1.9
    2
    9:00 AM
    3
    3:00 PM
    25.52500
    8
    Boat 7
    0
    3
    0
    9
    Boat 8
    0
    3
    9:01 AM
    10
    Boat 9
    0
    3
    0
    11
    Boat 10
    0
    3
    0
    12
    Boat 11
    2.2
    1
    10:57 AM
    1
    1:03 PM
    25.74375


    Does this help?
    Dave

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Need to break a tie using SUMPRODUCT

    Just some more forum advice. You never clarified how the time should be taken into account in the ranking.
    It may seem obvious to you, but clarification is extremely important in the forum.
    Explaining that you want a formula that would have Taz ranked as 2, and Doc ranked as 3, based on the fact there weight is equal, with the earlier time ranking Taz higher, is much clearer.
    Please click the * icon below if I have helped.

  6. #6
    Registered User
    Join Date
    09-02-2015
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to break a tie using SUMPRODUCT

    This didn't work. I now have this:
    after_array.JPG

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Need to break a tie using SUMPRODUCT

    Quote Originally Posted by salberts1 View Post
    This didn't work. I now have this:
    Attachment 416984
    To which post is this addressed?

  8. #8
    Registered User
    Join Date
    09-02-2015
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to break a tie using SUMPRODUCT

    Quote Originally Posted by Aardigspook View Post
    Hi,

    Try this in your ranking column:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.
    I tried this and got the result i pasted in below.

  9. #9
    Registered User
    Join Date
    09-02-2015
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to break a tie using SUMPRODUCT

    @ aardigspook...
    Attached is what I see after applying the formula. And to be clear, in case of a tie, the first person to weigh in (earliest time) should win.

    Thanks

    after array.xlsx

  10. #10
    Registered User
    Join Date
    09-02-2015
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need to break a tie using SUMPRODUCT

    Quote Originally Posted by ChemistB View Post
    In E2 copied down
    =B2*10-D2
    Then Rank using column E
    =RANK(E2, $E$2:$E$20)

    See attachment (I hid Column E)
    This solved my issue. Thanks!

  11. #11
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Need to break a tie using SUMPRODUCT

    You need to insert the formula I gave you in cell C2, not C1.
    I've assumed that all the entries will have a weight and a time against them by the end of the competition, so haven't tried to account for zeroes or blanks, which is why Boat7/Dopey gives a slightly strange result. If you think you will have results with zeroes or blanks, let us know and we can give it a try.

    Edit: glad you got it working - for some reason I assumed you wouldn't want a helper column - no idea why - probably my stupidity

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.
    Last edited by Aardigspook; 09-02-2015 at 04:10 PM. Reason: problem solved another way

  12. #12
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Need to break a tie using SUMPRODUCT

    For interest's sake, here's the formula (for C2) which ignores blanks and zeroes:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If there's a blank in either column B or D (weight), or a zero in column D (time), this returns a blank and doesn't count it in the results.
    If there's a zero in column B, but a valid time in column D, this is counted, as I assumed you'd want to count boats which came back with no catch.
    If you want to count all boats with no catch as equal last, use this formula instead:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Here's the file with these working:
    Ranking two columns including time - for salberts1.xlsx

    Sorry to continue when you've already got your solution...

    Regards,
    Aardigspook

    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark Thread as Solved'.
    You don't need to give me rep if I helped, but thanks are appreciated.

+ 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: 5
    Last Post: 06-10-2014, 10:09 PM
  2. Find First match value and add page break, findnext value and add page break
    By dwx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2013, 12:58 PM
  3. PivotTable or SumProduct function to break out values
    By jchambers00 in forum Excel General
    Replies: 3
    Last Post: 10-16-2011, 04:00 PM
  4. Vertical Page Break / Column Break
    By kmg2424 in forum Excel General
    Replies: 0
    Last Post: 07-27-2010, 08:10 AM
  5. need page break by asking the input file for page break to be done
    By saikumar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-10-2008, 07:33 AM
  6. [SOLVED] Break cell into multiple lines by line break
    By Chia in forum Excel General
    Replies: 1
    Last Post: 08-20-2006, 01:40 AM
  7. adding a new page break to an existing page break
    By Edward Letendre in forum Excel General
    Replies: 1
    Last Post: 03-06-2005, 06:06 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