That was a very useful excel function. 

Thanks for sharing this. 
 
Warm Regards
Ankur Aggarwal
91-8010614628
Analyst
Mckinsey Knowledge Center
Mckinsey & Co.


________________________________
 From: Haseeb A <haseeb.avarak...@gmail.com>
To: excel-macros@googlegroups.com 
Sent: Tuesday, 10 July 2012 4:37 AM
Subject: $$Excel-Macros$$ Re: Unique Name Query
 

Hello Karan,

In C2, with CTRL+SHIFT+ENTER, and copy down.

=IFERROR(INDEX(A$2:A$100,MATCH(1,IF(A$2:A$100<>"",IF(ISNA(MATCH(A$2:A$100,C$1:C1,0)),1)),0)),"")

If you need Unique Names in Ascending Order,

In C2, with CTRL+SHIFT+ENTER, and copy down.

=IFERROR(INDEX(A$2:A$100,MATCH(0,IF(A$2:A$100<>"",COUNTIF(A$2:A$100,"<"&A$2:A$100),"")-SUM(COUNTIF(A$2:A$100,C$1:C1)),0)),"")


Note: You must have something for IF's false argument ie. "", any text or a Big 
number like 2^21, 9E+300 etc..

If you need Descending Order, change "<" to ">"

These formulas will work even if you have blank cells in the range. See 
the sample file.

Regards,
Haseeb
-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 
 
NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
 
------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com
 
To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com

Reply via email to