+ Reply to Thread
Results 1 to 13 of 13

Show sheet name with highest value

  1. #1
    Registered User
    Join Date
    01-27-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Show sheet name with highest value

    So I have 101 sheets where 100 of these sheets are players names and 1 sheet will be the master ranking sheet.

    Each sheet has an entry every day of there growth and % grown that day.

    What I would like to have is a leaderboard type setup where the people have have grown the most in % that day be displayed in the ranking sheet

    Here are the player sheets and ranking sheet with what I want. Any advice would be much appreciated

    playerSheet.png

    rankSheet.png
    Last edited by MorphiusX; 02-03-2015 at 11:11 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Show sheet name with highest value

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    01-27-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Re: Show sheet name with highest value

    So in the example workbook I had added comments to the required cells and also some text boxes to explain what is happening where needed.

    ExampleWorkbook.xlsx

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Show sheet name with highest value

    It's never good idea to use same numbers in dummy data because now I cannot see what number goes where.
    But try this, maybe I've guess.

    Press RUN button and check result.

    I've removed your merged cells and your data must be in order as in example.
    Attached Files Attached Files

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Show sheet name with highest value

    I see now I would change this part of code:

    Please Login or Register  to view this content.
    • If you want to write both sheet name (now is one if date in sheet is missing) but without data into:


    Please Login or Register  to view this content.
    • If you want don't want sheet name:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-27-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Re: Show sheet name with highest value

    Hey mate,

    This works a treat, Is there a way to implement that it will auto sort highest to lowest instead of me manually doing it with the build in Sort & Filter function

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Show sheet name with highest value

    Sure, try this:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-27-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Re: Show sheet name with highest value

    I entered all the data and if the power gained is 0 it throws an error I can fix this by just making the powered gained 1 however is there a way to make it not throw the error and stop the script

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Show sheet name with highest value

    When you divide with 0 you will have error.

    You can try this:

    Instead of
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Use something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    That will return 0 instead of #DIV/0!.
    However if you enter something else (like character) you will also get #VALUE! error.

    To avoid all error use just:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    01-27-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Re: Show sheet name with highest value

    Thank zbor very knowledgeable. That works for the #DIV/0 error however I was refering to when you run the macro it will give an error Run time 1004 on this line

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    01-27-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Re: Show sheet name with highest value

    I seem to have found the issue, I simply removed the other 2 weeks of rankings

  12. #12
    Registered User
    Join Date
    01-27-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2010
    Posts
    10

    Re: Show sheet name with highest value

    So now that I have reached the end of the first week how would I go about collecting the new data for the following week?

    Here is the completed workbook
    gow2.xlsm

  13. #13
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,220

    Re: Show sheet name with highest value

    Hey MorphiusX,

    I've written a little VBA code to put all your individual players info in a single table. See the first tab in the attached workbook. Then I did a few Pivot Tables on the data that duplicates what you have on each page. See if this helps you display or analyze your data. Playing/learning Pivots may really help with this problem. BTW - I've created a Dynamic Named Range so the Pivot Table will use all the data on the new sheet after you rebuild it. You may need to refresh all Pivots to get them to display correctly after running the new macro again.
    Attached Files Attached Files
    Last edited by MarvinP; 02-03-2015 at 01:45 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say 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. Show field name for highest value?
    By GigaFluxx in forum Excel General
    Replies: 8
    Last Post: 01-23-2015, 12:32 PM
  2. Show highest of two cell values
    By deaconj999 in forum Excel General
    Replies: 1
    Last Post: 02-03-2012, 04:34 PM
  3. SHow the highest in a range
    By Brad Glaberson in forum Excel General
    Replies: 2
    Last Post: 08-17-2011, 11:42 AM
  4. show highest and lowest figure in a range
    By nigelog in forum Excel General
    Replies: 5
    Last Post: 10-13-2008, 12:50 PM
  5. G11 to show the highest
    By kingarthur64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-10-2008, 05:28 AM

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