+ Reply to Thread
Results 1 to 3 of 3

Filter Data to Top Row of Column - Eliminate Blanks

  1. #1
    Registered User
    Join Date
    01-24-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    60

    Filter Data to Top Row of Column - Eliminate Blanks

    Hi folks,

    I am filtering data in column A - example



    +------------+----------+------+
    | Vegetables | Apple | Plum |
    +------------+----------+------+
    | Plum 1 | | |
    +------------+----------+------+
    | Plum 2 | | |
    +------------+----------+------+
    | Apple 1 | Apple 1 | |
    +------------+----------+------+
    | Apple 2 | Apple 2 | |
    +------------+----------+------+



    I did this manually using the filter for Apple

    ActiveSheet.Range("$A$1:$C$5").AutoFilter Field:=1, Criteria1:="=*Apple*", _
    Operator:=xlAnd

    However can you see the rows above apple are empty

    How do i put these to the top of the row, I will then repeat for Plum,

    What I am trying to achieve is the results for each search to start at the top of the column
    rather than just be placed on the offset, i hope i am making sense

    thank you

    sl

  2. #2
    Registered User
    Join Date
    06-15-2016
    Location
    here, there
    MS-Off Ver
    2010
    Posts
    59

    Re: Filter Data to Top Row of Column - Eliminate Blanks

    I did have to use helper columns, but you could move them and then change the reference to the new location or simply hide the helper columns. I hope this helps.

  3. #3
    Registered User
    Join Date
    01-24-2016
    Location
    UK
    MS-Off Ver
    2016
    Posts
    60

    Re: Filter Data to Top Row of Column - Eliminate Blanks

    Hello,

    thanks for your help, some new formulas for me -

    I'm really bad with formulas but I'm sure I'll be able to do sort it

    cheers

    sl

+ 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. [SOLVED] Using COUNTA to Eliminate Blanks in a Drop Down List?
    By qanjorin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-17-2016, 07:28 PM
  2. Eliminate Blanks from Pivot Table
    By Keibri in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-18-2015, 11:55 AM
  3. how should I eliminate filter only form 'K' column to attached document
    By Marcin4111 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2015, 06:32 AM
  4. Macro Needed to Reorganize Data and Eliminate Blanks
    By bplantz3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2013, 12:45 PM
  5. [SOLVED] find a column by date and filter that column by removing blanks
    By rsami in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2013, 10:56 PM
  6. Filter column by non-blanks
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2011, 04:00 PM
  7. Eliminate blanks before a charachter chain
    By MónicaM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2006, 10:30 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