Search code examples
arraysexcelexcel-2007excel-2010

Append or prepend to array without VBA/UDF


In Excel, is there a built-in formula/function to append or prepend a value to an array? So suppose I have my own UDF, MyFunc(...) that returns an array of values. Can I append or preprend a single value to this result using a reference to a single cell?


Solution

  • As we discussed in the comments, here is a possible answer:

    AFAIK, no formula can do this and there are no append function in VBA. Yet, you could use the ConcatenateArrays function from Chip Pearson