Hi ,
See the attached file ; there are two separate UDFs , one named GetSeries , and the other named GetModels.
The GetSeries UDF is a simple one , to be entered in a single cell.
The GetModels UDF returns an array of values , and therefore should be array entered in a range of cells. Thus , if your input data is in the range A1 through H1 , which is a range of 8 cells , then for the GetModels UDF , select a range of 8 cells , and then array enter the UDF , using the CTRL SHIFT ENTER combination.
If your input data is a row vector , as in A1:H1 , then the GetModels UDF should also be entered as a row vector ; thus , select a range such as K1:Z1 and then array enter =GetModels(A1:H1)
If you wish to populate a column range with the output of this UDF , you will have to array enter =TRANSPOSE(GetModels(A1:H1))
The GetModels UDF will populate cells with the model numbers and leave the remaining cells blank ; however , if the range over which it has been entered exceeds the number of cells in the input data range , the remaining cells beyond this range will be populated with the #N/A error value.
Thus , if the input data range is A1:H1 , selecting the range K1:R1 (8 cells) and array entering =GetModels(A1:H1) will populate the relevant cells in this range with the model numbers , and leave the remaining cells blank.
However , if for the same input data range , selecting the range K1:Z1 (16 cells) and array entering the same formula , will populate the range K1:R1 with the identified model numbers , and leave the remaining cells blank. The cells S1:Z1 will all be populated with the #N/A error value.
Narayan