<?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: I need help cleaning some dirty data</title>
	<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data/</link>
	<description>Comments on Ask MetaFilter post I need help cleaning some dirty data</description>
	<pubDate>Wed, 18 Mar 2009 11:39:18 -0800</pubDate>
	<lastBuildDate>Wed, 18 Mar 2009 11:39:18 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: I need help cleaning some dirty data</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data</link>	
		<description>Excel-filter: Mysterious single-quotes that precede the data in each cell.  How do I get rid of them? &lt;br /&gt;&lt;br /&gt; I&apos;m working with a spreadsheet that&apos;s several years old.  I suspect that the spreadsheet was created from a CSV file initially, but it was done before my time so I don&apos;t know for sure.  Every entry in the first two columns is preceded by a single-quote.  I &lt;em&gt;think&lt;/em&gt; this was originally to force the text into..well, text, format that is.  However, this character is causing these entries to not match other entries with the same text, sans single quote, which is a big problem for me.  Things I&apos;ve tried to get rid of these annoying characters:&lt;br&gt;
&lt;br&gt;
=Clean()&lt;br&gt;
Text-&amp;gt;Columns&lt;br&gt;
Changing the format (text, number, etc)&lt;br&gt;
=Right(A1, Len(A1)-1)  //this one chops off the first real character and leaves the single quote&lt;br&gt;
Find &amp;amp; Replace using a copy/pasted single quote from an afflicted cell&lt;br&gt;
&lt;br&gt;
Example of afflicted data, copy/pasted right from the spreadsheet:&lt;br&gt;
&lt;code&gt;&apos;10807268&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Nothing has worked except manually editing the cell and removing the character.  Since I&apos;m dealing with upwards of 10k cells, I &lt;em&gt;really&lt;/em&gt; don&apos;t want to do this manually.  Haven&apos;t managed to come up with anything on Google either.  I&apos;m using Excel 2007, though the file is .xls (rather than 2k7&apos;s .xlsx).&lt;br&gt;
&lt;br&gt;
I&apos;m not very good with macros, but willing to try them if they&apos;ll help.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2009:site.117074</guid>
		<pubDate>Wed, 18 Mar 2009 11:34:54 -0800</pubDate>
		<dc:creator>ashirys</dc:creator>
		
			<category>excel</category>
		
			<category>excel2007</category>
		
			<category>resolved</category>
		
	</item> <item>
		<title>By: mullacc</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678308</link>	
		<description>What if you copy the afflicted cells and then paste special-&amp;gt;values?  Seems to work for me.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678308</guid>
		<pubDate>Wed, 18 Mar 2009 11:39:18 -0800</pubDate>
		<dc:creator>mullacc</dc:creator>
	</item><item>
		<title>By: jeb</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678309</link>	
		<description>=Right(A1, Len(A1)-1) really doesn&apos;t work for you?  Just to double check that, I copied/pasted your example into my Excel and then that formula right next to it and it works for me.  Maybe there is something weird about this quote mark and its not roundtripping through mefi correctly?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678309</guid>
		<pubDate>Wed, 18 Mar 2009 11:39:55 -0800</pubDate>
		<dc:creator>jeb</dc:creator>
	</item><item>
		<title>By: Yorrick</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678311</link>	
		<description>Try selecting the column and changing the justification (like to centered), then changing it back to right justified.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678311</guid>
		<pubDate>Wed, 18 Mar 2009 11:41:04 -0800</pubDate>
		<dc:creator>Yorrick</dc:creator>
	</item><item>
		<title>By: carmicha</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678312</link>	
		<description>The single apostrophe reflects a previous effort to show the numbers as text.  To repair...&lt;br&gt;
&lt;br&gt;
Highlight all of the affected cells.&lt;br&gt;
Note little diamond with exclamation point that appears to the right.&lt;br&gt;
Click downward arrow&lt;br&gt;
Choose &quot;Convert to Number.&quot;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678312</guid>
		<pubDate>Wed, 18 Mar 2009 11:41:21 -0800</pubDate>
		<dc:creator>carmicha</dc:creator>
	</item><item>
		<title>By: ashirys</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678340</link>	
		<description>Copy/Paste Special Values doesn&apos;t work.  Changing justification doesn&apos;t do anything either.  And I don&apos;t get the alert (diamond with !) when I select the cells.  &lt;br&gt;
&lt;br&gt;
I&apos;m usually pretty good at figuring this sort of thing out, but I&apos;m not having any luck except manual removal so far.  Thanks for the suggestions - any other ideas I might try?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678340</guid>
		<pubDate>Wed, 18 Mar 2009 11:58:41 -0800</pubDate>
		<dc:creator>ashirys</dc:creator>
	</item><item>
		<title>By: Doofus Magoo</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678343</link>	
		<description>Have you tried =VALUE(A1) yet?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678343</guid>
		<pubDate>Wed, 18 Mar 2009 12:00:59 -0800</pubDate>
		<dc:creator>Doofus Magoo</dc:creator>
	</item><item>
		<title>By: jackmcc</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678346</link>	
		<description>Maybe this is too simple, but it solved this problem for someone at my office recently.&lt;br&gt;
-select all the cells with the quotes&lt;br&gt;
-click Edit/Replace (or CTRL+f)&lt;br&gt;
-click on the Replace tab&lt;br&gt;
-enter a quote in Find What field&lt;br&gt;
-in the Replace With field hit Delete&lt;br&gt;
-click Replace All&lt;br&gt;
&lt;br&gt;
That solved it for my colleague.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678346</guid>
		<pubDate>Wed, 18 Mar 2009 12:05:02 -0800</pubDate>
		<dc:creator>jackmcc</dc:creator>
	</item><item>
		<title>By: ashirys</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678350</link>	
		<description>Progress, of sorts!  Thanks, Doofus.&lt;br&gt;
&lt;br&gt;
=Value(A1) works for the column of numbers.  That&apos;s good.  The other affected column  has non-numeric data (I neglected to mention that initial question, sorry), and value doesn&apos;t work there.  I may be able to get what I need by just fixing the numbers, but further suggestions for the text column are appreciated as well.&lt;br&gt;
&lt;br&gt;
Find/Replace definitely does not work here.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678350</guid>
		<pubDate>Wed, 18 Mar 2009 12:08:13 -0800</pubDate>
		<dc:creator>ashirys</dc:creator>
	</item><item>
		<title>By: Doofus Magoo</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678354</link>	
		<description>Maybe =TRIM(A1) on the non-numeric column, and then a paste-&amp;gt;special?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678354</guid>
		<pubDate>Wed, 18 Mar 2009 12:09:31 -0800</pubDate>
		<dc:creator>Doofus Magoo</dc:creator>
	</item><item>
		<title>By: Doofus Magoo</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678359</link>	
		<description>Sorry, that should be Paste Special-&amp;gt;Values. And thinking about it now, the TRIM() is probably redundant -- maybe just =A1, and then a Paste Special-&amp;gt;Values.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678359</guid>
		<pubDate>Wed, 18 Mar 2009 12:10:55 -0800</pubDate>
		<dc:creator>Doofus Magoo</dc:creator>
	</item><item>
		<title>By: ashirys</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678371</link>	
		<description>No dice with =Trim(), unfortunately.  Or =A1.  &lt;br&gt;
&lt;br&gt;
It&apos;s a tenacious little bugger, it seems.  Thanks again for the suggestions.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678371</guid>
		<pubDate>Wed, 18 Mar 2009 12:18:46 -0800</pubDate>
		<dc:creator>ashirys</dc:creator>
	</item><item>
		<title>By: Doofus Magoo</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678379</link>	
		<description>Is the single-quote visible in the cell for the non-numeric ones?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678379</guid>
		<pubDate>Wed, 18 Mar 2009 12:21:14 -0800</pubDate>
		<dc:creator>Doofus Magoo</dc:creator>
	</item><item>
		<title>By: ashirys</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678404</link>	
		<description>It&apos;s only visible in the editbox.  &lt;a href=&quot;http://farm4.static.flickr.com/3586/3366265748_e85c4a4339_o.jpg&quot;&gt;Screenshot&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678404</guid>
		<pubDate>Wed, 18 Mar 2009 12:29:46 -0800</pubDate>
		<dc:creator>ashirys</dc:creator>
	</item><item>
		<title>By: marylynn</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678418</link>	
		<description>Can you copy the column with the single quote into a new spreadsheet (which in my test got rid of the single quote) and then copy it back? Or copy it into Word, perhaps do a find/replace there, and then copy it back?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678418</guid>
		<pubDate>Wed, 18 Mar 2009 12:33:59 -0800</pubDate>
		<dc:creator>marylynn</dc:creator>
	</item><item>
		<title>By: ROU_Xenophobe</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678428</link>	
		<description>(1)  Copy the first two columns to another spreadsheet&lt;br&gt;
(2)  Save it as a csv&lt;br&gt;
(3)  Open the csv in a text editor&lt;br&gt;
(4)  Search and replace &quot;,`&quot; with &quot;,&quot; or just &quot;`&quot; with &quot;&quot;.&lt;br&gt;
(5)  Save file in text editor&lt;br&gt;
(6)  Open resulting csv in excel, paste first two columns over original two columns</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678428</guid>
		<pubDate>Wed, 18 Mar 2009 12:37:31 -0800</pubDate>
		<dc:creator>ROU_Xenophobe</dc:creator>
	</item><item>
		<title>By: ashirys</title>
		<link>http://ask.metafilter.com/117074/I-need-help-cleaning-some-dirty-data#1678442</link>	
		<description>Marked all the answers that worked.  You guys are life-savers, thanks!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.117074-1678442</guid>
		<pubDate>Wed, 18 Mar 2009 12:44:17 -0800</pubDate>
		<dc:creator>ashirys</dc:creator>
	</item>
	</channel>
</rss>
