<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Unique Values Advanced Filter</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/06/11/unique-values-advanced-filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/06/11/unique-values-advanced-filter/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: sarang</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/11/unique-values-advanced-filter/#comment-20550</link>
		<dc:creator>sarang</dc:creator>
		<pubDate>Fri, 11 Aug 2006 06:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1163#comment-20550</guid>
		<description>&lt;p&gt;Is there an inbuilt excel function in Excel in get unique set of values from a range?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is there an inbuilt excel function in Excel in get unique set of values from a range?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/11/unique-values-advanced-filter/#comment-14152</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 16 Jun 2005 19:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1163#comment-14152</guid>
		<description>&lt;p&gt;Mr John Walkenbach has also offered a possible solution for working with unique items.&lt;/p&gt;
&lt;p&gt;Try &lt;a href=&quot;http://j-walk.com/ss/excel/tips/tip15.htm&quot; rel=&quot;nofollow&quot;&gt;http://j-walk.com/ss/excel/tips/tip15.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is a UDF called UniqueItems (starting at example 4). Since I use it quite often I have exchanged UniqueItems for just Unique and vice versa to reduce the typing involved. I hope this helps.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Mr John Walkenbach has also offered a possible solution for working with unique items.</p>
<p>Try <a href="http://j-walk.com/ss/excel/tips/tip15.htm" rel="nofollow">http://j-walk.com/ss/excel/tips/tip15.htm</a></p>
<p>It is a UDF called UniqueItems (starting at example 4). Since I use it quite often I have exchanged UniqueItems for just Unique and vice versa to reduce the typing involved. I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim T.</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/11/unique-values-advanced-filter/#comment-13771</link>
		<dc:creator>Jim T.</dc:creator>
		<pubDate>Tue, 14 Jun 2005 23:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1163#comment-13771</guid>
		<description>&lt;p&gt;Here is some code that I use to get a list of unique items. Becuase I have to do it so often it is a pain to have to filter... This is a attached to a menu item that I have on a custom menu bar.&lt;/p&gt;
&lt;p&gt;Private Sub GetUniqueItems()&lt;br&gt;
    Dim cell        As Range                &#039;Current cell in range to check&lt;br&gt;
    Dim rngToSearch As Range                &#039;Cells to be searched&lt;br&gt;
    Dim dic         As Scripting.Dictionary &#039;Dictionary Object&lt;br&gt;
    Dim dicItem     As Variant              &#039;Items within dictionary object&lt;br&gt;
    Dim wks         As Worksheet            &#039;Worksheet to populate with unique items&lt;br&gt;
    Dim rngPaste    As Range                &#039;Cells where unique items are placed&lt;/p&gt;
&lt;p&gt;    &#039;Create range to be searched&lt;br&gt;
    Set rngToSearch = Intersect(ActiveSheet.UsedRange, Selection)&lt;/p&gt;
&lt;p&gt;    &#039;Confirm there is a relevant range selected&lt;br&gt;
    If Not rngToSearch Is Nothing Then&lt;br&gt;
        &#039;Create dictionay object&lt;br&gt;
        Set dic = New Scripting.Dictionary&lt;/p&gt;
&lt;p&gt;        &#039;Populate dictionary object with unique items (use key to define unique)&lt;br&gt;
        For Each cell In rngToSearch            &#039;Traverse selected range&lt;br&gt;
            If Not dic.Exists(cell.Value) And cell.Value  Empty Then  &#039;Check the key&lt;br&gt;
                dic.Add cell.Value, cell.Value  &#039;Add the item if unique&lt;br&gt;
            End If&lt;br&gt;
        Next&lt;/p&gt;
&lt;p&gt;        If Not dic Is Nothing Then          &#039;Check for dictionary&lt;br&gt;
            Set wks = Worksheets.Add        &#039;Create worksheet to populate&lt;br&gt;
            Set rngPaste = wks.Range(&quot;A1?)  &#039;Create range to populate&lt;br&gt;
            For Each dicItem In dic.Items   &#039;Loop through dictionary&lt;br&gt;
                rngPaste.NumberFormat = &quot;@&quot; &#039;Format cell as text&lt;br&gt;
                rngPaste.Value = dicItem    &#039;Add items to new sheet&lt;br&gt;
                Set rngPaste = rngPaste.Offset(1, 0) &#039;Increment paste range&lt;br&gt;
            Next dicItem&lt;br&gt;
            &#039;Clean up objects&lt;br&gt;
            Set wks = Nothing&lt;br&gt;
            Set rngPaste = Nothing&lt;br&gt;
            Set dic = Nothing&lt;br&gt;
        End If&lt;br&gt;
    End If&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;You need to reference the Microsoft Scripting Runtime to use this...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here is some code that I use to get a list of unique items. Becuase I have to do it so often it is a pain to have to filter&#8230; This is a attached to a menu item that I have on a custom menu bar.</p>
<p>Private Sub GetUniqueItems()<br />
    Dim cell        As Range                &#8216;Current cell in range to check<br />
    Dim rngToSearch As Range                &#8216;Cells to be searched<br />
    Dim dic         As Scripting.Dictionary &#8216;Dictionary Object<br />
    Dim dicItem     As Variant              &#8216;Items within dictionary object<br />
    Dim wks         As Worksheet            &#8216;Worksheet to populate with unique items<br />
    Dim rngPaste    As Range                &#8216;Cells where unique items are placed</p>
<p>    &#8216;Create range to be searched<br />
    Set rngToSearch = Intersect(ActiveSheet.UsedRange, Selection)</p>
<p>    &#8216;Confirm there is a relevant range selected<br />
    If Not rngToSearch Is Nothing Then<br />
        &#8216;Create dictionay object<br />
        Set dic = New Scripting.Dictionary</p>
<p>        &#8216;Populate dictionary object with unique items (use key to define unique)<br />
        For Each cell In rngToSearch            &#8216;Traverse selected range<br />
            If Not dic.Exists(cell.Value) And cell.Value  Empty Then  &#8216;Check the key<br />
                dic.Add cell.Value, cell.Value  &#8216;Add the item if unique<br />
            End If<br />
        Next</p>
<p>        If Not dic Is Nothing Then          &#8216;Check for dictionary<br />
            Set wks = Worksheets.Add        &#8216;Create worksheet to populate<br />
            Set rngPaste = wks.Range(&#8220;A1?)  &#8216;Create range to populate<br />
            For Each dicItem In dic.Items   &#8216;Loop through dictionary<br />
                rngPaste.NumberFormat = &#8220;@&#8221; &#8216;Format cell as text<br />
                rngPaste.Value = dicItem    &#8216;Add items to new sheet<br />
                Set rngPaste = rngPaste.Offset(1, 0) &#8216;Increment paste range<br />
            Next dicItem<br />
            &#8216;Clean up objects<br />
            Set wks = Nothing<br />
            Set rngPaste = Nothing<br />
            Set dic = Nothing<br />
        End If<br />
    End If<br />
End Sub</p>
<p>You need to reference the Microsoft Scripting Runtime to use this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan D. Patel</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/11/unique-values-advanced-filter/#comment-13728</link>
		<dc:creator>Chetan D. Patel</dc:creator>
		<pubDate>Mon, 13 Jun 2005 20:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1163#comment-13728</guid>
		<description>&lt;p&gt;I tried to copy filtered data on another sheet but it did not work, though it did work for only active worksheet.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I tried to copy filtered data on another sheet but it did not work, though it did work for only active worksheet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: r.venkataraman</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/06/11/unique-values-advanced-filter/#comment-13711</link>
		<dc:creator>r.venkataraman</dc:creator>
		<pubDate>Sun, 12 Jun 2005 07:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1163#comment-13711</guid>
		<description>&lt;p&gt;quote You can only copy filtered data to the active sheet.&lt;br&gt;
unquote&lt;/p&gt;
&lt;p&gt;not necessary Debra Dalgleish has a solution in&lt;br&gt;
&lt;a href=&quot;http://www.contextures.com/xladvfilter01.tml#ExtractWs&quot; rel=&quot;nofollow&quot;&gt;http://www.contextures.com/xladvfilter01.tml#ExtractWs&lt;/a&gt;&lt;br&gt;
I have made some notes on this webpage so that I and my brother  can understand implia;tions easily -given below&lt;br&gt;
quote&lt;br&gt;
you make sheet 2 as activesheet. choose an empty cell in sheet2. then click data-advance filter. the data range and criteris range you go to sheet1 and choose the ranges. everytime you finish selecing it will come back to sheet2 because that is the activesheet.&lt;br&gt;
now click  and now choose any cell in sheet2&lt;br&gt;
the filtered data is copied to sheet2 though database and criteria are in sheet1.&lt;br&gt;
unquote&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>quote You can only copy filtered data to the active sheet.<br />
unquote</p>
<p>not necessary Debra Dalgleish has a solution in<br />
<a href="http://www.contextures.com/xladvfilter01.tml#ExtractWs" rel="nofollow">http://www.contextures.com/xladvfilter01.tml#ExtractWs</a><br />
I have made some notes on this webpage so that I and my brother  can understand implia;tions easily -given below<br />
quote<br />
you make sheet 2 as activesheet. choose an empty cell in sheet2. then click data-advance filter. the data range and criteris range you go to sheet1 and choose the ranges. everytime you finish selecing it will come back to sheet2 because that is the activesheet.<br />
now click  and now choose any cell in sheet2<br />
the filtered data is copied to sheet2 though database and criteria are in sheet1.<br />
unquote</p>
]]></content:encoded>
	</item>
</channel>
</rss>

