• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Combine arbitrary length 1d vertical arrays

ds9anderon

New Member
I have ten arrays in columns A through J starting at row 3 of arbitrary length. They are all specified with named ranges, which are in turn specified in a single named range. These arrays contain only text values. How might I combine them into column N. Note that given the named range conditions the named range will either be equal to all non-empty values within the array, or an empty array. I need only non-empty values. I need to do this only with formulas if possible.

I have started by using the index function and row function and can return the appropriate values from a single area, however I do not know how to have it look to the next area once the last value in the previous area is reached.
 
Here is an example. Where NR is a named range containing NR1 and NR2. NR1 and NR2 are named ranges containing NR1_1 etc. NR1_1 etc. contain the values listed below them. I need a formula which results in what is shown in column N and can accept NR1_1 through NR2_5 being of arbitrary length.
 

Attachments

I am comfortable with VBA and the file which this is going in already uses VBA extensively. I am hoping to avoid it for this particular purpose because the named ranges mentioned use an if statement to determine whether or not they should be included in the final range, which is then used as a listfillrange for a listbox on a different sheet. The if statement changes based on a bunch of different cell values which change often and I would prefer not to call a function each time the cells change.
 
Back
Top