<?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: Copy Unique Values</title>
	<atom:link href="http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Mon, 20 May 2013 14:33:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Jac</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-88409</link>
		<dc:creator>Jac</dc:creator>
		<pubDate>Wed, 12 Dec 2012 16:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-88409</guid>
		<description><![CDATA[I added a column of =1 in my table next to the column of data. In my VBA code I then use Consolidate to get unique values. I have no idea of how efficient that is but it works ok for my 1100 rows.
Speed comparison? :-)]]></description>
		<content:encoded><![CDATA[<p>I added a column of =1 in my table next to the column of data. In my VBA code I then use Consolidate to get unique values. I have no idea of how efficient that is but it works ok for my 1100 rows.<br />
Speed comparison? <img src='http://dailydoseofexcel.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-85868</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 13 Sep 2012 20:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-85868</guid>
		<description><![CDATA[Just wanted to say thank you for offering the keyboard shortcut above.  This saves me a lot of time.  I did notice however that it doesn&#039;t quite work for my situation. The d-f-a-r-o-t key sequence automatically selects all of the surrounding data, and in this case i only wanted a single column included in the range, so it took several more clicks to modify, but the result was still what I was looking for. My initial quest was to find a fast way to generate vlookup entries from a large list of repeating values. This seems to do the trick. Thanks again!]]></description>
		<content:encoded><![CDATA[<p>Just wanted to say thank you for offering the keyboard shortcut above.  This saves me a lot of time.  I did notice however that it doesn&#8217;t quite work for my situation. The d-f-a-r-o-t key sequence automatically selects all of the surrounding data, and in this case i only wanted a single column included in the range, so it took several more clicks to modify, but the result was still what I was looking for. My initial quest was to find a fast way to generate vlookup entries from a large list of repeating values. This seems to do the trick. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: snb</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-83155</link>
		<dc:creator>snb</dc:creator>
		<pubDate>Wed, 20 Jun 2012 15:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-83155</guid>
		<description><![CDATA[or

&lt;code lang=&quot;vb&quot;&gt;Sub snb()
  Selection.Cells(1).Name = &quot;snb_001&quot;
  Selection.Name = &quot;snb_002&quot;
    
  Cells(1, 5).Resize(Selection.Count) = Application.Transpose(Filter([transpose(if(countif(offset(snb_001,,,row(snb_002)-row(snb_001)+1),snb_002)=1,snb_002,&quot;~&quot;))], &quot;~&quot;, False))
  Columns(5).SpecialCells(2, 16).ClearContents
End Sub&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>or</p>
<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E56717; font-weight: bold;">Sub</span> snb()<br />
&nbsp; Selection.Cells(1).Name = <span style="color: #800000;">&quot;snb_001&quot;</span><br />
&nbsp; Selection.Name = <span style="color: #800000;">&quot;snb_002&quot;</span><br />
&nbsp; &nbsp; <br />
&nbsp; Cells(1, 5).Resize(Selection.Count) = Application.Transpose(Filter([transpose(<span style="color: #8D38C9; font-weight: bold;">if</span>(countif(offset(snb_001,,,row(snb_002)-row(snb_001)+1),snb_002)=1,snb_002,<span style="color: #800000;">&quot;~&quot;</span>))], <span style="color: #800000;">&quot;~&quot;</span>, <span style="color: #00C2FF; font-weight: bold;">False</span>))<br />
&nbsp; Columns(5).SpecialCells(2, 16).ClearContents<br />
<span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #E56717; font-weight: bold;">Sub</span></div></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominik Petri</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-81081</link>
		<dc:creator>Dominik Petri</dc:creator>
		<pubDate>Mon, 04 Jun 2012 07:09:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-81081</guid>
		<description><![CDATA[Concerning the &quot;Remove Duplicates&quot; command: &quot;Duplicate values are determined by the value displayed in the cell and not necessarily the value stored in the cell. For example, if you have the same date value in different cells, one formatted as &quot;3/8/2006&quot; and the other as &quot;Mar 8, 2006&quot;, the values are unique.&quot; Source: http://office.microsoft.com/en-us/excel-help/filter-for-unique-values-or-remove-duplicate-values-HP010073943.aspx#BMlearn_more]]></description>
		<content:encoded><![CDATA[<p>Concerning the &#8220;Remove Duplicates&#8221; command: &#8220;Duplicate values are determined by the value displayed in the cell and not necessarily the value stored in the cell. For example, if you have the same date value in different cells, one formatted as &#8220;3/8/2006&#8243; and the other as &#8220;Mar 8, 2006&#8243;, the values are unique.&#8221; Source: <a href="http://office.microsoft.com/en-us/excel-help/filter-for-unique-values-or-remove-duplicate-values-HP010073943.aspx#BMlearn_more" rel="nofollow">http://office.microsoft.com/en-us/excel-help/filter-for-unique-values-or-remove-duplicate-values-HP010073943.aspx#BMlearn_more</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neale</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-80555</link>
		<dc:creator>Neale</dc:creator>
		<pubDate>Fri, 01 Jun 2012 02:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-80555</guid>
		<description><![CDATA[Its amazing - using Sendkeys to mimic the Alt key is very similar to the good ol&#039; macro instructions in Lotus 123 - Deja vu - just had a throw back to 20 years ago working.]]></description>
		<content:encoded><![CDATA[<p>Its amazing &#8211; using Sendkeys to mimic the Alt key is very similar to the good ol&#8217; macro instructions in Lotus 123 &#8211; Deja vu &#8211; just had a throw back to 20 years ago working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gergito</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-80447</link>
		<dc:creator>Gergito</dc:creator>
		<pubDate>Wed, 30 May 2012 12:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-80447</guid>
		<description><![CDATA[One could also create a pivot table with one column only but I use the technique using Collection object often enough - same as Dick describes. I think I met this approach first in John Walkenbach&#039;s book..
Thanks for the post anyway.]]></description>
		<content:encoded><![CDATA[<p>One could also create a pivot table with one column only but I use the technique using Collection object often enough &#8211; same as Dick describes. I think I met this approach first in John Walkenbach&#8217;s book..<br />
Thanks for the post anyway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Glancy</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-80383</link>
		<dc:creator>Doug Glancy</dc:creator>
		<pubDate>Tue, 29 May 2012 21:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-80383</guid>
		<description><![CDATA[Like Scott, I used to have a SQL version that worked pretty well.  But in 2007/10, I agree with Dave that Remove Duplicates is the way.  Even for getting the results in a new sheet, it&#039;s not many keystrokes, and you have complete control over which columns to use.  And I just realized last week that you can use it in place and it leaves adjacent columns and areas intact.]]></description>
		<content:encoded><![CDATA[<p>Like Scott, I used to have a SQL version that worked pretty well.  But in 2007/10, I agree with Dave that Remove Duplicates is the way.  Even for getting the results in a new sheet, it&#8217;s not many keystrokes, and you have complete control over which columns to use.  And I just realized last week that you can use it in place and it leaves adjacent columns and areas intact.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-80346</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Tue, 29 May 2012 16:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-80346</guid>
		<description><![CDATA[I&#039;m still using this http://www.dailydoseofexcel.com/archives/2008/12/11/create-unique-list-from-selected-cells/ which has served me well.  I&#039;ll be I use this a dozen times per week.  Even if I want a quick count of uniques, I&#039;ll create this list rather than right the 1/countif array formula.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m still using this <a href="http://www.dailydoseofexcel.com/archives/2008/12/11/create-unique-list-from-selected-cells/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2008/12/11/create-unique-list-from-selected-cells/</a> which has served me well.  I&#8217;ll be I use this a dozen times per week.  Even if I want a quick count of uniques, I&#8217;ll create this list rather than right the 1/countif array formula.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt H</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-80344</link>
		<dc:creator>Matt H</dc:creator>
		<pubDate>Tue, 29 May 2012 16:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-80344</guid>
		<description><![CDATA[oops, the first few lines are missing. Let me try again:

&lt;code&gt;

Sub ListUnique()
&#039;A routine to extract the unique values in a range
&#039;and write them to a column
&#039;modified from code at:
&#039; http://www.j-walk.com/ss/excel/eee/eee004.txt
Dim cell As Range
Dim target As Range &#039;where you want the listing to go
Dim i As Long, n As Long
Dim vals(1 To 65536) As Variant

On Error GoTo EndLine
Set target = Application.InputBox(Prompt:=&quot;Select cell to start output:&quot;, _
  Title:=&quot;Selection&quot;, Default:=Selection.Address, Type:=8)

Dim NoDupes As New Collection


On Error Resume Next
For Each cell In Selection
  NoDupes.Add cell.Value, CStr(cell.Value)
  &#039;Note: the 2nd argument (key) for the Add method must be a string
Next cell
On Error GoTo 0

n = NoDupes.count

For i = 1 To n
  target.offset(i, 0).Value = NoDupes.Item(i)
Next i

EndLine: &#039;Do Nothing

End Sub
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>oops, the first few lines are missing. Let me try again:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Sub ListUnique()<br />
'A routine to extract the unique values in a range<br />
'and write them to a column<br />
'modified from code at:<br />
' http://www.j-walk.com/ss/excel/eee/eee004.txt<br />
Dim cell As Range<br />
Dim target As Range 'where you want the listing to go<br />
Dim i As Long, n As Long<br />
Dim vals(1 To 65536) As Variant<br />
<br />
On Error GoTo EndLine<br />
Set target = Application.InputBox(Prompt:=&quot;Select cell to start output:&quot;, _<br />
&nbsp; Title:=&quot;Selection&quot;, Default:=Selection.Address, Type:=8)<br />
<br />
Dim NoDupes As New Collection<br />
<br />
<br />
On Error Resume Next<br />
For Each cell In Selection<br />
&nbsp; NoDupes.Add cell.Value, CStr(cell.Value)<br />
&nbsp; 'Note: the 2nd argument (key) for the Add method must be a string<br />
Next cell<br />
On Error GoTo 0<br />
<br />
n = NoDupes.count<br />
<br />
For i = 1 To n<br />
&nbsp; target.offset(i, 0).Value = NoDupes.Item(i)<br />
Next i<br />
<br />
EndLine: 'Do Nothing<br />
<br />
End Sub</div></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt H</title>
		<link>http://dailydoseofexcel.com/archives/2012/05/25/copy-unique-values/#comment-80343</link>
		<dc:creator>Matt H</dc:creator>
		<pubDate>Tue, 29 May 2012 16:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=7058#comment-80343</guid>
		<description><![CDATA[Dick, I gotta say, that&#039;s pretty clever. Here is a routine that I wrote years ago that does the same thing and has served me well. Just to show yet another alternate approach.

&lt;code&gt;
On Error GoTo EndLine
Set target = Application.InputBox(Prompt:=&quot;Select cell to start output:&quot;, _
  Title:=&quot;Selection&quot;, Default:=Selection.Address, Type:=8)

Dim NoDupes As New Collection


On Error Resume Next
For Each cell In Selection
  NoDupes.Add cell.Value, CStr(cell.Value)
  &#039;Note: the 2nd argument (key) for the Add method must be a string
Next cell
On Error GoTo 0

n = NoDupes.count

For i = 1 To n
  target.offset(i, 0).Value = NoDupes.Item(i)
Next i

EndLine: &#039;Do Nothing

End Sub
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Dick, I gotta say, that&#8217;s pretty clever. Here is a routine that I wrote years ago that does the same thing and has served me well. Just to show yet another alternate approach.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">On Error GoTo EndLine<br />
Set target = Application.InputBox(Prompt:=&quot;Select cell to start output:&quot;, _<br />
&nbsp; Title:=&quot;Selection&quot;, Default:=Selection.Address, Type:=8)<br />
<br />
Dim NoDupes As New Collection<br />
<br />
<br />
On Error Resume Next<br />
For Each cell In Selection<br />
&nbsp; NoDupes.Add cell.Value, CStr(cell.Value)<br />
&nbsp; 'Note: the 2nd argument (key) for the Add method must be a string<br />
Next cell<br />
On Error GoTo 0<br />
<br />
n = NoDupes.count<br />
<br />
For i = 1 To n<br />
&nbsp; target.offset(i, 0).Value = NoDupes.Item(i)<br />
Next i<br />
<br />
EndLine: 'Do Nothing<br />
<br />
End Sub</div></div>
]]></content:encoded>
	</item>
</channel>
</rss>
