+ Reply to Thread
Results 1 to 4 of 4

will autopopulate the group depending on the top 3 results

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    256

    will autopopulate the group depending on the top 3 results

    i made a post on this few days back and Fotis1991 helped me with the formula :-)
    (old post : http://www.excelforum.com/excel-form...html?p=3273127)

    Fotis 1991 suggested this formula:
    =INDEX($B$2:$B$12;MATCH(LARGE(INDEX($C$2:$C$12+(ROWS($C$2:$C$12)-ROW($C$2:$C$12))/10^5;0);ROWS($1:1));INDEX($C$2:$C$12+(ROWS($C$2:$C$12)-ROW($C$2:$C$12))/10^5;0);0))

    this is exactly what I needed
    but the problem is if the ranges are all zero, it is showing the the first top 3 texts (please see F13:F15)
    how can i make the formula not showing anything?

    question_top3_will not show if ranges are zero.xlsx

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: will autopopulate the group depending on the top 3 results

    hi there again, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: will autopopulate the group depending on the top 3 results

    A simple way could be this..

    =IF(G13=0;"";INDEX($F$2:$F$12;MATCH(LARGE(INDEX($G$2:$G$12+(ROWS($G$2:$G$12)-ROW($G$2:$G$12))/10^5;0);ROWS($1:1));INDEX($G$2:$G$12+(ROWS($G$2:$G$12)-ROW($G$2:$G$12))/10^5;0);0)))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: will autopopulate the group depending on the top 3 results

    You could change the formula in F13 to this:

    =IF(COUNTIF(G$2:G$12,"<>0")=0,"",INDEX($F$2:$F$12,MATCH(LARGE(INDEX($G$2:$G$12+(ROWS($G$2:$G$12)-ROW($G$2:$G$12))/10^5,0),ROWS($1:1)),INDEX($G$2:$G$12+(ROWS($G$2:$G$12)-ROW($G$2:$G$12))/10^5,0),0)))

    (changes in red), then copy down.

    If you don't want to see the zeros in column G, you can do this in G13:

    =IF(F13="","",LARGE(G$2:G$12,ROWS($1:1)))

    and copy that down.

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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