+ Reply to Thread
Results 1 to 6 of 6

Helper column that will number visible rows

  1. #1
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Helper column that will number visible rows

    Hey, I hope this is easy, I am trying to display a certain number of visible rows, using AutoFilter. My idea is to use a helper column that will 'number' each visible row, but I'm not quite sure what functions to use for this.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Helper column that will number visible rows

    Not sure why you want to do this when the functionality is built in.

    http://office.microsoft.com/en-gb/ex...001055034.aspx


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-26-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    16

    Re: Helper column that will number visible rows

    like this??


    P3 =IF(ISBLANK(O3),P2,P2+1)
    P4 =IF(ISBLANK(O4),P3,P3+1)
    .
    .
    and so on...

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Helper column that will number visible rows


  5. #5
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Helper column that will number visible rows

    Thanks for your answer.
    Firstly, I want to be able to do that filtering (show the only the first 10, or 50, or 100 visible rows) by pressing a button, and I don't see how I can replicate that Top10 filtering via VBA (macro recorder does not record it). This must be done by autofilter and not by Entirerow.Hidden because it will not work well with other autofilters.
    Secondly, from what I saw, the Top10 criteria is applied to the value of the cells, and that is not what what I need (tried to do "Top10" on the O column and nothing happened)
    Last edited by bibu; 07-12-2014 at 03:52 AM.

  6. #6
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    303

    Re: Helper column that will number visible rows

    Thanks, this was about right, but it did not work if you try to autofilter (try to autofilter by Clay surface - some rows will be hidden but will not be skipped as I needed). So I tried IF(O3=0,P2,P2+1), since O3 will be = 0 if the row is hidden, and it worked
    So thanks very much!

+ 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. Count number of visible rows
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-29-2013, 03:10 PM
  2. How to only count the number of visible rows that meet 2 conditions
    By chaz123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2013, 10:15 AM
  3. Use visible rows from autofilter to build Pivot table. Or use visible rows to Copy/Paste
    By mwhitedesigns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 10:34 AM
  4. Replies: 3
    Last Post: 04-19-2012, 10:45 AM
  5. Highlight duplicate rows without helper column
    By tone640 in forum Excel General
    Replies: 5
    Last Post: 08-23-2011, 08:21 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