+ Reply to Thread
Results 1 to 6 of 6

Chart - top/bottom values

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    Poland
    MS-Off Ver
    365
    Posts
    56

    Chart - top/bottom values

    Hello,
    I'm trying to make dynamic chart with top/bottom values switched with button. Here is what I have so far:
    nGFIHX7.jpg
    and Bottom:
    42IT9OW.jpg
    In column "Rank" I'm using =RANK(B2;$B$2:$B$16;IF($H$2=1;0;1)). Part with IF is for button switch. The rest is just index+match formulas. Everything would be fine and enough for the most part, unless values start repeating. So, I've got following problems:
    1. When there are same values, rank formula just assign same number to it, e.g. 420 score is top, it appears twice and rank assigns number 1 to both, skipping number 2 and assigning number 3 to next biggest. This creates problem for index formula to find 2nd position.
    2. In order to get a name of top/bottom values, right now my index+match formula is comparing the score with the name. When same values with different names appear, then there would be a problem to find it with this formula.
    I'm attaching excel file for anyone who would like to see it.
    What I need of this chart is to show top/bottom scores and names, even when values are the same. When there are let's say more than 4 values with same score, just show 3 in order of appearance or something like that. I'm not even sure if that's doable without visual basic?
    Anyway, thank you for reading all of this. Any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Chart - top/bottom values

    Is this close to what you want? yellow shaded areas have been changed.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    Poland
    MS-Off Ver
    365
    Posts
    56

    Re: Chart - top/bottom values

    Thank you for help. It's almost what I need, I played a little with that and I can't make it work with string or zeroes in range. Is there any way that I could make function small to exclude zeroes in this case? I just don't want to leave blank cells and when I try to show bottom scores with 0 in range it shows as -5E-10. Also, could you explain to me how does this ROW and 10^10 works?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Chart - top/bottom values

    See formula for lows in J3-J5.

    The -ROW($B$2:$B$16)/10^10 bit subtracts a very very small and UNIQUE number from each value. A value of 500 in row 2 would have 2 (the row number) divided by 10 to the power of 10 subtracted fromm it = 499.9999999998 the same value in row 3 would have 3/10^10 subtracted fom it = 499.9999999997. Now all the scores are UNIQUE so the INDEX-MATCH returns the correct value fror the name...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-26-2015
    Location
    Poland
    MS-Off Ver
    365
    Posts
    56

    Re: Chart - top/bottom values

    Nice, now I get it. Thank you for explaining and for the solution. Works great, thank you again.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Chart - top/bottom values

    You're welcome and thanks for the Rep.

+ 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. Shop top and bottom 10% on line chart
    By Legs in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-15-2016, 04:41 AM
  2. [SOLVED] Sum values based on row name, write values to bottom of sheet
    By YOO629 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-14-2015, 01:30 PM
  3. [SOLVED] Adding a code for the legend in the chart at the bottom
    By cadcraft in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-29-2013, 10:35 AM
  4. [SOLVED] Chart Export Missing Bottom of Image
    By VillaLion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2013, 04:52 AM
  5. Replies: 1
    Last Post: 06-15-2012, 03:57 AM
  6. how to put date value at bottom of chart
    By okl in forum Excel General
    Replies: 1
    Last Post: 07-09-2011, 09:06 AM
  7. Cutting off the bottom of a chart?
    By Lew Bryson in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-21-2006, 09:25 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