+ Reply to Thread
Results 1 to 3 of 3

Convert array (with multiple blank cells) into a single column (without blanks)

  1. #1
    Registered User
    Join Date
    11-22-2017
    Location
    Downunder
    MS-Off Ver
    Excel 2016
    Posts
    7

    Convert array (with multiple blank cells) into a single column (without blanks)

    Hi,

    I have an array with many blank cells. I would like to organise the non-empty cells into a single column, in the correct order. To make things more complicated, the 'blank' cells aren't actually blank, but formulas that return an empty string (i.e. "").
    I've attached an example sheet.

    I've racked my brain trying to figure a way using OFFSET but I can't figure it out.

    Any help would be much appreciated,
    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Convert array (with multiple blank cells) into a single column (without blanks)

    =iferror(indirect(text(aggregate(15,6,(row($b$2:$m$11)*10000+column($b$2:$m$11))/($b$2:$m$11<>""),o2),"r0000c0000"),),"")

  3. #3
    Registered User
    Join Date
    11-22-2017
    Location
    Downunder
    MS-Off Ver
    Excel 2016
    Posts
    7

    Re: Convert array (with multiple blank cells) into a single column (without blanks)

    Quote Originally Posted by tim201110 View Post
    =iferror(indirect(text(aggregate(15,6,(row($b$2:$m$11)*10000+column($b$2:$m$11))/($b$2:$m$11<>""),o2),"r0000c0000"),),"")
    You sir, are a legend
    Thank you so 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. Convert single sheet macro to multiple sheets - Array function?
    By elfina in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2017, 11:17 AM
  2. Replies: 1
    Last Post: 05-06-2016, 08:22 PM
  3. vba code to filter blank cells in a column only if the column has blanks cells
    By meus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2016, 07:05 AM
  4. Replies: 3
    Last Post: 08-26-2015, 02:02 PM
  5. Replies: 1
    Last Post: 05-21-2014, 04:30 PM
  6. Transpose a column that contains blanks, but not copy the blank cells
    By mtouhig in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-15-2013, 04:26 PM
  7. [SOLVED] Convert multiple names in cells of a Column to a List with single name in each cell
    By mvmathur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2013, 12:04 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