I use an array UDF to select elements from a large data file that comply with several criteria. The formula works fine when I have multiple eligible elements, but when there is only one eligible element. The element keeps getting repeated indefinitely.
Example output multiple eligible elements:
A
B
C
N/A
N/A
Example output 1 eligible elements:
A
A
A
A
A
The output array I pass in my UDF contains only 1 element so this seems to be an issue related array functions in general. For instance I can recreate the behaviour using the TRANSPOSE function on 1 cell.
Does somebody know a way to avoid this behaviour?