• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help creating function that compares values

NoSole

New Member
I love this site and have taught myself a great deal from everything I've read here, but I'm now stuck with a very difficult problem that I feel is beyond my expertise. It's the last piece in a large puzzle, and it's the hardest piece! I need help writing the formula will calculate comparative values in realtime. I'll try to explain what needs explaining.


Excel Worksheet can be found here: http://www.sendspace.com/file/3fhr43


I've created a score sheet for a hypothetical athletic event, with a hypothetical outcome. For all intents and purposes, we'll just call it "High Jump". Per the rules of the event, each athlete is given two attempts at each height. Successes are marked by 1s and failures by 0s. An athlete may elect to skip any height. If successful at the height of his choosing, all previously skipped height intervals will be considered to have been completed successfully on the first attempt. If he fails at the height of his choosing, all skipped heights will also be considered failed.


Here's the tricky part... for tie breaking, if multiple athletes achieve the same distance, the winner will be determined by which athlete was successful in the fewest number of attempts. Should athletes still be tied at the greatest height, this same ideology will then default to the previous length, and so and so forth until a clear winner can be declared. Should athletes remain tied through all levels, all such competitors will share the same point value allotted to their finishing position, while leaving vacant the appropriate number of places thereafter (i.e. if two people are tied for 1st, the next closest competitor will receive the points allotted to 3rd place).


I'm working on completing the formulas in Column J ("Rank"). The current formula in each cell has been pulled through from previous work I'd done, and I've isolated the specific aspect of that needs to be written to account for the tie breaking conditions above. Using cell J8 as our focus we look at the function reading "IF(H8=0,$E$30,IF(H8=H7,J7,COUNT(J$7:J6)+1))", the J7 needs to be replaced with a function that will compare the "# of attempts" rows of the respective athletes such that it satisfies the tie breaking rules I've written above.


The lower green highlighted rows are where I manually input my hypothetic successes/failures. Everything else calculates automatically and feeds into the upper table arrays "Scoring" and "Sorting"


Please help! Also, if I've left anything out, please tell/ask me. Thanks.
 
Hi NoSole,


Welcome to the forum!


There are three tables in your sheet, and i am unable to understand what each table is dedicated for!! Please explain. I think it should have been simple, a table that lists Players Mame, against each the Max distance and the No. of attempts and thus computing the top most Player or even a tie case is calculate-able.


Regards,

Faseeh
 
Thanks Faseeh. The lower table (green rows) is where data is entered for the success and failure of each attempt. The "Scoring" table's functions are written. Those don't need to me altered. The "Sorting" table, and particularly the column highlighted in purple, is what I'm trying to write the functions for. Does that help clarify at all?


In the time since my post, I've been giving some more thought to it and have some insight into a could ways to solve it, but they are very complicated and inconclusive at the moment. I feel like excel already has a couple functions that can accomplish what I'm looking to achieve.
 
Hi ,


Can you check out the file uploaded here ?


https://docs.google.com/open?id=0B0KMpuzr3MTVbE9vOXpIVmZqMWs


Sorry , but I find there are quite a few mistakes. Let me correct them and get back to you.


Narayan
 
@NARAYANK... Yeah, I have a hard time making sense of it, but it does appear to be on track. That said, I know that the instances of ties are not sorting correctly. Thanks for trying though.
 
Still off. The samples I'm using to check the work are A.) competitors 23-25, and B.) Competitors 12 & 22. Manually checking A should yield 23 & 25 finishing tied for 2nd, and 24 finishing 4th. In B, 12 should finish 6th and 22 should finish 7th.
 
Hi ,


Sorry , my mistake ; I understood the maximum number of attempts at a height wrongly , and was taking the total number of attempts till that height. I'll see if I can do the right thing.


Narayan
 
Back
Top