Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 1191

How to append a value to an array in Excel

$
0
0

I have a formula, which returns an array. I would like to append another value to this array. Is there any way to do this with a formula without VBA in Excel?

e.g.

{1, 2, 3} -> {1, 2, 3, 4}

or perhaps

{1, 2, 3} and {4, 5} -> {1, 2, 3, 4, 5}

I am trying to move an item in an array to the end of the array. e.g.{1, 4, 2, 3, 4} -> {1, 2, 3, 4}

I have managed to remove the item with FILTER function.=FILTER({1, 4, 2, 3, 4}, {1, 4, 2, 3, 4} <> 4)Now, next step would be to append the value back to the array. This part of appending a value can be useful for other reasons as well. That's why, I asked specifically for this problem.


Viewing all articles
Browse latest Browse all 1191

Trending Articles