somebody113
New Member
- Joined
- Apr 28, 2011
- Messages
- 14
Hi,
I have two codes that will retrieve unique records, though, when I run it on unique records, it crashes excel, I want to avoid VBA code if possible. Here are the two codes that do work, but are too cumbersome, Any leaner ideas?
Code 1
Code 2
I have two codes that will retrieve unique records, though, when I run it on unique records, it crashes excel, I want to avoid VBA code if possible. Here are the two codes that do work, but are too cumbersome, Any leaner ideas?
Code 1
Code:
=INDEX(List,MATCH(0,COUNTIF($B$1:B1,List),0))
Code 2
Code:
=IF(ISNA(OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B1),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1)),"",OFFSET($A$1,MATCH(0,MMULT(--TRANSPOSE(TRANSPOSE($A$1:$A$13)=B$1:B1),ROW(INDIRECT("1:"&ROW()-1))/ROW(INDIRECT("1:"&ROW()-1))),0)-1,0,1,1))