M
Mark Worthington
I have read with interest the single formula (using standard
functions) to extract unique values and sort them (minus the criteria
bit)….. the latest I have from Stephen Dunn is :
=INDEX(Data,MATCH(SUM(COUNTIF(Data,OFFSET(CellStart,0,0,SUM(ROW()-ROW(CellStart))))),
COUNTIF(Data,"<"&Data)+ISTEXT(Data)*COUNT(Data)-ISBLANK(Data),0))
array entered. I'll call this "SD_Formula".
Now this is very smart indeed. However, it does produce the #N/A
error, and using standard error checking fails, ie:
=IF(ISNA(SD_Formula) ,"", SD_Formula) does not work.
It appears that SD_Formula must be completed before any error checking
occurs (an internal Excel bug?!). A colleague of mine had a brainwave,
and decided to force the completion of SD_Formula BEFORE the effective
error checking. The solution is to create a named formula. Defining a
name such as Unique_Sort with the Refers To = SD_Formula allows the
following cell entry :
=IF(ISNA(Unique_Sorted),"",Unique_Sorted)
array entered. This removes the #N/A error.
I thinks that solution compliments the original formula!
Mark
functions) to extract unique values and sort them (minus the criteria
bit)….. the latest I have from Stephen Dunn is :
=INDEX(Data,MATCH(SUM(COUNTIF(Data,OFFSET(CellStart,0,0,SUM(ROW()-ROW(CellStart))))),
COUNTIF(Data,"<"&Data)+ISTEXT(Data)*COUNT(Data)-ISBLANK(Data),0))
array entered. I'll call this "SD_Formula".
Now this is very smart indeed. However, it does produce the #N/A
error, and using standard error checking fails, ie:
=IF(ISNA(SD_Formula) ,"", SD_Formula) does not work.
It appears that SD_Formula must be completed before any error checking
occurs (an internal Excel bug?!). A colleague of mine had a brainwave,
and decided to force the completion of SD_Formula BEFORE the effective
error checking. The solution is to create a named formula. Defining a
name such as Unique_Sort with the Refers To = SD_Formula allows the
following cell entry :
=IF(ISNA(Unique_Sorted),"",Unique_Sorted)
array entered. This removes the #N/A error.
I thinks that solution compliments the original formula!
Mark