+ Reply to Thread
Results 1 to 23 of 23

Select and Return a text based on numerical differences

  1. #1
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Select and Return a text based on numerical differences

    Hi, a comment on the attached 2003 Excel Worksheet explains what I need, I have left my lookup formulas in case Im nearly there. I have T&S Excel 2003, thanks.
    Attached Files Attached Files
    Last edited by pingpong1; 10-28-2016 at 06:44 AM. Reason: Admin Request to Aid Searchability

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    You need to perform a football style ranking score - count of wins + some differential as a fraction, along the lines of this in AE2, copied down:

    =IFERROR(W2+(Y2-Z2)/100,0)


    Then use this in C3 to get your MOTM:

    =INDEX(U:U,MATCH(MAX(AE:AE),AE:AE,FALSE))
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    The Formula in AE2 brings up #NAME? and the second one the same. I think I understand the Formula in C3 but not the other. I attach I think.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    My bad - I zoned out on your version being 2003.

    Use this instead:

    =IF(ISERROR(W2+(Y2-Z2)/100),0,W2+(Y2-Z2)/100)

  5. #5
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    Hi Bernie, I can see you zoned back in lol, because that works as harry is MOTM. We are mixing sets and points and I dont fully understand why, but I am happy it works properly now. I just have to paste it into 3 leagues and 14 weeks, but you broke the worst of it , thanks. I am not seeing "Reputation" on my last 2 threads, so in case I cant on this too, many thanks

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    Point differentials are the tie-breaker, which was the only measure I could see that could be used that way, and that is why I divided by 100, so that someone who won 2 games would get a score between 2 and 3, but not over 3.

  7. #7
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    Thats clever, thanks. Also i dont have permissions to the 'solved' hyperlink I cant see how to sort that either, but thank you.

  8. #8
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    No problem - I'm glad you are happy with the result.

    It is possible that there could be tie based on that formula - you will get the first name in that case. You can add another level of tie-breaking by using some other less-important numerical measure, divided by 10000 instead of just 100. The formula I use for my football table is

    =I4+H4/100+F4/10000-ROW()/1000000000

    where I4 is points (3 for a win, 1 for a tie), H4 is goal difference, F4 is goals scored, and the last is used to make sure that there are no ties (which would mess up my data extraction formulas). If teams were truly tied at that level, then a completely different tie-breaker is kicked in if it matters (like, who is the champion).
    Last edited by Bernie Deitrick; 10-27-2016 at 02:48 PM.

  9. #9
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    Thats great, Ill trust what you have already given me. There were 3 MOTM changes altogether in the 5 weeks/14 so far, so thats good your formula picked them up. We could always get Harry Hill to sort out the final champion

  10. #10
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    There is another aspect to this results sheet I would like to provide if you havnt closed this thread off. Ah I cant attach the file.

  11. #11
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    Maybe use words - I still have your original file.

  12. #12
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    Thats so funny !

    To enter a player's name here (AF 1) and see all the filtered results from columns A & C beneath with the scores of the player named in AF 1 coming first first, ending up in Column AR

    The columns A&C will need to be searched all the way down as Im not sure how many weeks and matches there will be in the coming years.

    I aim to get Excel 2016 hopefully next month if that makes a difference .

  13. #13
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    In AF5, enter this formula

    =OR(A5=$AF$1,C5=$AF$1)

    and copy down for more rows than you have data. You can copy it for thousands of rows, if you like, to future-proof your sheet.

    Then

    1) Copy the code below.
    2) Right-Click the sheet tab
    3) Select "View Code"
    4) Paste the code into the window that appears.

    And if you have XL2016, you will need to do this:
    5) Save the file as a macro-enabled .xlsm file.


    Please Login or Register  to view this content.
    When you enter a name into cell AF1, the sheet will filter to show only those rows with that name in A or C. If you delete the name in AF1, all the rows will show.

  14. #14
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    I used the 'filter' in a general sense when I meant 'automatically'..

    This is what happens: AF 5 is the only cell down and across that comes out 'TRUE', all the others down and across FALSE. When I open 2003 it always asks 'Enable Macros' and I always tick 'Yes'. I still looked for the option to save as a macro-enabled .xlsm file but that wasnt there. What i was aiming for was seeing all a players results by just typing a name in AF1. I dont have 2016 unfortunately.

  15. #15
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    I had a go last week at INDEX MATCH and ROWS but didnt get far with it

  16. #16
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    Try posting another copy of your workbook - click the "Go Advanced" button to the lower right of the editing window, then look for the "Manage Attachments" and use that instead of the 'Paperclip' version of attachments, which doesn't work for me.

  17. #17
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Man of The Match

    I tried 3 different reply Edits but I can only edit what I wrote not add the file, can I email it to you, or open a new thread? There is no "Go Advanced" or "Manage Attachments", Is there an Admin I can talk to about this, Ill see if I can find a link to one.
    Last edited by pingpong1; 10-27-2016 at 06:58 PM.

  18. #18
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    You could also upload your file to a file-sharing site like onedrive.live.com and get a link to the file, and post the link here.

  19. #19
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Man of The Match

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )

    Also, Bernie, we need to use the file upload facilities on the site. Not all members are able - or willing - to access file-hosting sites
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  20. #20
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Select and Return a text based on numerical differences

    I uploaded the file, I hope it goes I see its uploaded. I changed my title, but it remains the same in replies. Why was I unable to even see uploading from my thread following what Bernie explained. Am I prevented by the Forum software?
    Attached Files Attached Files
    Last edited by pingpong1; 10-28-2016 at 06:52 AM. Reason: Helpful Information Feedback.

  21. #21
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Man of The Match

    Quote Originally Posted by FDibbins View Post
    Also, Bernie, we need to use the file upload facilities on the site. Not all members are able - or willing - to access file-hosting sites
    I wish we always could. The attachment button broke, for me, a while ago. I never could figure out why cannot choose a file to upload using the paper-clip icon. The advanced / manage attachments does work for me, but it does not seem to work for everybody. So when a poster claims to not be able to use it, or has a large file, the only option for sharing files is another site.

  22. #22
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,956

    Re: Select and Return a text based on numerical differences

    I get "The file is corrupt and cannot be opened" with the second file.

  23. #23
    Forum Contributor
    Join Date
    07-03-2015
    Location
    London
    MS-Off Ver
    MS proplus
    Posts
    147

    Re: Select and Return a text based on numerical differences

    Oh dear it just gets worse ! Ill join that site later, upload my file and paste it here, thanks.

+ 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. Macro to match Debits and Credits, verifying four columns of each debit and credit match
    By forcedto register in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-22-2016, 05:28 PM
  2. Replies: 1
    Last Post: 06-18-2015, 08:45 AM
  3. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  4. Replies: 2
    Last Post: 01-26-2015, 04:53 AM
  5. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  6. [SOLVED] Index/Match/Match....Stops without completing the match
    By irsles in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2012, 10:16 PM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 PM

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