<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How do I remove duplicates and then merge two excel files?</title>
	<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files/</link>
	<description>Comments on Ask MetaFilter post How do I remove duplicates and then merge two excel files?</description>
	<pubDate>Wed, 07 Feb 2007 18:46:05 -0800</pubDate>
	<lastBuildDate>Wed, 07 Feb 2007 18:46:05 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How do I remove duplicates and then merge two excel files?</title>
		<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files</link>	
		<description>In MS Excel, how do I remove duplicates, clean up a document and merge two files together? &lt;br /&gt;&lt;br /&gt; I have found a few threads in Google, but none of them have quite what I&apos;m looking for, I&apos;m hoping someone will have experience doing this.  Right now, I have to do this manually, but I figure there has to be a more efficient way of completing this.&lt;br&gt;
&lt;br&gt;
This is a bit complicated, but I&apos;ll try to simplify as best as I can:&lt;br&gt;
&lt;br&gt;
I have two excel files, A and B.&lt;br&gt;
&lt;br&gt;
File A contains the fields PART NUMBER and PRICE and is laid out as follows:&lt;br&gt;
&lt;br&gt;
a1000            $1.25&lt;br&gt;
a1000            $1.25&lt;br&gt;
a1000 total    $2.50&lt;br&gt;
a1001            $3.25&lt;br&gt;
a1001 total    $3.25&lt;br&gt;
a1002            $3.31&lt;br&gt;
a1002            $3.31&lt;br&gt;
a1002 total    $6.62&lt;br&gt;
etc. etc.&lt;br&gt;
&lt;br&gt;
Questions:&lt;br&gt;
1) How do I remove all the duplicate records?&lt;br&gt;
2) How do I remove all the rows that contain the word &quot;total&quot; in the PART NUMBER field?&lt;br&gt;
&lt;br&gt;
File B contains a master list of a lot more information for other parts and the formatting needs to be retained.  After cleaning up File A, is there a import those values to a designated column for their corresponding part numbers in File B?&lt;br&gt;
&lt;br&gt;
Any help would be MUCH appreciated.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.56575</guid>
		<pubDate>Wed, 07 Feb 2007 18:25:32 -0800</pubDate>
		<dc:creator>perpetualstroll</dc:creator>
		
			<category>excel</category>
		
			<category>merge</category>
		
			<category>data</category>
		
			<category>duplicate</category>
		
	</item> <item>
		<title>By: stew560</title>
		<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files#851113</link>	
		<description>Well for #2 you can do a sort by Column B and all the ones with &quot;total&quot; will be grouped together, you can then easily delete those.&lt;br&gt;
&lt;br&gt;
For #1, you can select all the items and do a Data-&amp;gt;Filter-&amp;gt;Advanced Filter and Check off &quot;Unique Records Only&quot;. Once filtered you can Copy and Paste the Filtered List into a new Worksheet&lt;br&gt;
&lt;br&gt;
For the File B question, you can then use the &quot;VLOOKUP&quot; formula to insert a value from one Table to the other.&lt;br&gt;
&lt;br&gt;
I&apos;m no Excel Expert, and I&apos;m sure there may be easier ways to do this...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56575-851113</guid>
		<pubDate>Wed, 07 Feb 2007 18:46:05 -0800</pubDate>
		<dc:creator>stew560</dc:creator>
	</item><item>
		<title>By: pompomtom</title>
		<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files#851114</link>	
		<description>1) i) Select the data&lt;br&gt;
   ii) alt-D-F-A-R   (&lt;b&gt;D&lt;/b&gt;ata-&amp;gt;&lt;b&gt;F&lt;/b&gt;ilter-&amp;gt;&lt;b&gt;A&lt;/b&gt;dvanced Filter-&amp;gt;Unique &lt;b&gt;R&lt;/b&gt;ecords)&lt;br&gt;
then copy to somwhere else.&lt;br&gt;
2)  Select column, alt-D-F-F (autofilter), then select &apos;custom&apos; and &apos;does not contain&apos; &apos;total&apos;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56575-851114</guid>
		<pubDate>Wed, 07 Feb 2007 18:48:46 -0800</pubDate>
		<dc:creator>pompomtom</dc:creator>
	</item><item>
		<title>By: treepour</title>
		<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files#851253</link>	
		<description>pompomtom&apos;s solution should work for file A.  For file B, it sounds like you need a VLOOKUP formula.  It&apos;s tricky to explain without making some assumptions, so let&apos;s assume the following:&lt;br&gt;
&lt;br&gt;
-- Both file A and file B are open.&lt;br&gt;
&lt;br&gt;
-- File A is called &quot;Book1&quot;, the data is on the tab Sheet1, the part num is in column a, the price is in column b, and the data extends from row 1 to row 1000.&lt;br&gt;
&lt;br&gt;
-- Finally, in file B, assume that you want the price to appear in column M, that the relevant data range also begins on row 1, and that the part number in file B appears in column A.&lt;br&gt;
&lt;br&gt;
Now, place the following formula in cell M1, and copy it down to the end of the relevant data range.&lt;br&gt;
&lt;br&gt;
=VLOOKUP(A1,[Book1]Sheet1!$A$1:$B$1000,2,FALSE)&lt;br&gt;
&lt;br&gt;
That translates as -- take the value in cell A1 of this sheet and look for it in the leftmost column of the range A1:B1000 on Sheet1 of Book1; after finding it, return the value from column #2 of this same range; and match exact values only.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56575-851253</guid>
		<pubDate>Wed, 07 Feb 2007 22:58:26 -0800</pubDate>
		<dc:creator>treepour</dc:creator>
	</item><item>
		<title>By: tomw</title>
		<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files#851257</link>	
		<description>I always wondered about this in the past. &lt;br&gt;
&lt;br&gt;
Its hard to explain. You want to use VLOOKUP as treepour correctly says.&lt;br&gt;
&lt;br&gt;
The function will &apos;lookup&apos; the cell you specify in a range you specify. Any problems write back on here.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56575-851257</guid>
		<pubDate>Wed, 07 Feb 2007 23:19:18 -0800</pubDate>
		<dc:creator>tomw</dc:creator>
	</item><item>
		<title>By: zackola</title>
		<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files#851419</link>	
		<description>Here&apos;s a great Add-In for Excel that I think does the deduping part of what you want with minimal hassle.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://members.iinet.net.au/~brettdj/&quot;&gt;The Duplicate Master&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Remember to make a backup of your Workbook before running any of these functions on it!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56575-851419</guid>
		<pubDate>Thu, 08 Feb 2007 07:36:29 -0800</pubDate>
		<dc:creator>zackola</dc:creator>
	</item><item>
		<title>By: wheat</title>
		<link>http://ask.metafilter.com/56575/How-do-I-remove-duplicates-and-then-merge-two-excel-files#851475</link>	
		<description>&lt;a href=&quot;http://www.cpearson.com/excel/duplicat.htm&quot;&gt;These techniques&lt;/a&gt; and those on the pages linked to it have saved me on all manner of Excel sorting/removing duplicates tasks.  The explanations are a little terse, but the code works well.  And there are several different techniques here, a combination of which should do most of what you need (if not all of it).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.56575-851475</guid>
		<pubDate>Thu, 08 Feb 2007 08:49:59 -0800</pubDate>
		<dc:creator>wheat</dc:creator>
	</item>
	</channel>
</rss>
