+ Reply to Thread
Results 1 to 6 of 6

Advanced filtering by using functions only

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    31

    Advanced filtering by using functions only

    Hi.
    I have a column with 25 cells. Some of them are blanks (" "), others include names.
    I need to filter only the ones with the names, and only the top 10, to another column, but i can't use advanced filtering, since I'm building a dynamic dashboard, and everything should be automatic. It sounds simple, but i can't figure it out.
    Thanks ahead to all the helpers.
    I'm adding an example.
    Attached Files Attached Files
    Last edited by Nighteg; 04-11-2012 at 05:03 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Advanced filtering by using functions only

    Try:

    =INDEX($D$2:$D$26,SMALL(IF(TRIM($D$2:$D$26)<>"",ROW($D$2:$D$26)-ROW($D$2)+1),ROWS($G$2:$G2)))

    confirmed with CTRL+SHIFT+ENTER not just ENTER.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Advanced filtering by using functions only

    very much fashioned after NBVC's formula, just stops after 10th value...

    EDIT: actually, NBVC's is better because of TRIM.

    what do you mean by TOP 10 for string values, by the way? do you mean, FIRST 10?
    Attached Files Attached Files
    Last edited by icestationzbra; 04-11-2012 at 02:27 PM.

  4. #4
    Registered User
    Join Date
    12-20-2011
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    31

    Thumbs up Re: Advanced filtering by using functions only

    Thanks a lot!!!
    NBVC's formula just brings the first name 10 times.
    icestationzbra's formula works perfectly. Now i just need to understand it

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Advanced filtering by using functions only

    @Nighteg: i have tried NBVC's formula and it works perfectly fine.

    it is best to use a combination of the two formulae in J2:

    =IFERROR(IF(ROWS($1:1)>10,"",INDEX(dbtbl,SMALL(IF(TRIM(dbtbl)<>"",ROW(dbtbl)-MIN(ROW(dbtbl))+1),ROWS($1:1)))),"")

    confirmed with CTRL+SHIFT+ENTER (and not just ENTER) and then drag-fill down from there...
    Last edited by icestationzbra; 04-11-2012 at 05:36 PM. Reason: stupid grammar

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Advanced filtering by using functions only

    Quote Originally Posted by Nighteg View Post
    Thanks a lot!!!
    NBVC's formula just brings the first name 10 times.
    icestationzbra's formula works perfectly. Now i just need to understand it
    You did say

    I need to filter only the ones with the names, and only the top 10, to another column,

+ 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