+ Reply to Thread
Results 1 to 4 of 4

Hide blank rows in column -> in another column

  1. #1
    Registered User
    Join Date
    04-06-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    89

    Hide blank rows in column -> in another column

    In column A4->A1004, I have 1000 rows - but there is only values in some, how do I get a collapsed list in column B4-> so I only see the rows with values.

    Filter isn't an option

  2. #2
    Forum Contributor
    Join Date
    03-09-2012
    Location
    Isle of Man
    MS-Off Ver
    Excel 2010
    Posts
    118

    Re: Hide blank rows in column -> in another column

    Are there any columns apart from A that always have data in them? If so you could try something like this. I should point out with 1000 rows it won't be instant.

    Please Login or Register  to view this content.
    Last edited by Declamatory; 08-05-2016 at 10:36 AM.

  3. #3
    Registered User
    Join Date
    04-06-2016
    Location
    Sweden
    MS-Off Ver
    2016
    Posts
    89

    Re: Hide blank rows in column -> in another column

    I didn't post it in the VBA section, because the XLSM won't run from where the file is placed.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Hide blank rows in column -> in another column

    Here's a formula method.

    Data Range
    A
    B
    1
    2
    3
    4
    Data1
    Data1
    5
    Data2
    6
    Data2
    Data3
    7
    Data3
    Data4
    8
    Data4
    Data5
    9
    Data6
    10
    Data5
    11
    12
    Data6
    13


    This array formula** entered in B4:

    =IFERROR(INDEX(A:A,SMALL(IF(A$4:A$12<>"",ROW(A$4:A$12)),ROWS(B$4:B4))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Hide Rows for First Set of Consecutive Blank Cells in Column
    By pastuslm in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-22-2015, 03:22 PM
  2. [SOLVED] Delete or hide entire column if top cell is blank
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-09-2014, 12:59 PM
  3. Replies: 4
    Last Post: 05-16-2014, 04:52 PM
  4. [SOLVED] Hide Rows if the cell in a certain column is blank or zero
    By Shannon561 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-16-2014, 07:00 AM
  5. macro to hide blank space in ONE column only - excel 2007
    By daniva92 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 11:32 AM
  6. [SOLVED] Hide any rows 5 through 16 in which column H is blank
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2013, 04:30 PM
  7. [SOLVED] VBA macro that hide and unhide column to respective rows based on first column value
    By janine6192 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-14-2013, 06:21 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