MrExcel Publishing
Your One Stop for Excel Tips & Solutions

Unique entries

Posted by KC Goewey on October 26, 2000 6:35 AM

I have a list of names that I would like to pull out all unique entries from. I tried =INDEX(data,SMALL(IF(MATCH(data,data,0)=ROW(INDIRECT("1:"&ROWS(data))),MATCH(data,data,0),""),ROW(INDIRECT("1:"&ROWS(data))))), but I think that my named range is not working correctly. I tried replacing the range name with the actual range with no luck. Any ideas? Thanks!

Posted by Neil on October 26, 2000 2:24 PM

Try Data, Filter, Advanced Filter and click on the unique records only

Posted by Celia on October 26, 2000 6:11 PM

In what way is it not working? It works for me.
You need to select a single column range which is the same size as "data" and enter the formula by Ctrl+Shift+Enter. Also, it will not work if "data" contains any blank cells.

Posted by KC Goewey on October 27, 2000 7:21 AM

That might be the problem Celia, I have blank cells at the end. Because the range will change each day, how do I have this formula take that into account without editing it each day? I could have between 2-800 entries by the end of the month. I went back to edit my range to the exact size and tried the formula. If I copy the formula down, it only returns a single name.

Posted by Celia on October 27, 2000 4:56 PM

I don't think this formula can be copied or filled down. You have to select all the cells first and then press Ctrl+Shift+Enter.
To avoid having to change your named range, put the following formula in the Refers To box :-


For this to work, there must be no blank cells in the "data" range.


Posted by KC Goewey on October 30, 2000 6:31 AM

Thanks Celia, I'll try that. :)