
Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Thanks for both your answers. However, I would like the formula using
> the array to be general, and not tied up to a specific (static)
[quoted text clipped - 30 lines]
>>
>> - Show quoted text -
Because the array will have different lengths in different rows. In
one row, The array might be {1;2;5;6}, in another, {3;8}, and in a
third, {1;2;3;4;5;6;7;8;9;10;11;12}. The different lengths would
require different widths; some would require only two columns, some
12. Putting them into one column would greatly increase the
readability, and reduce the size, of the sheet.
Martin
> If you want it general, why not just put the values in separate cells and
> have a real array?
[quoted text clipped - 47 lines]
>
> - Show quoted text -
Bob Phillips - 19 Sep 2007 23:11 GMT
You could always write a UDF that returns the cell contents as an array
Function SplitCell(cell As Range, Delim As String)
SplitCell = Split(cell, Delim)
End Function
which assumes the cell contains say 1,2,3,4 and you get it with
SplitCell(A1,",")
This is not much in itself, but it can be incorporated in others, like say
=MATCH("2",SplitCell(A1,","),0)
Note that the UDF I gave returns an array of strings, so if they are numbers
that you want to check, you have to pass as strings.

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Because the array will have different lengths in different rows. In
> one row, The array might be {1;2;5;6}, in another, {3;8}, and in a
[quoted text clipped - 60 lines]
>>
>> - Show quoted text -