<?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: Add "http://" Prefix to a List of Domains Formatted in Plain Text :: How Please?</title>
	<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please/</link>
	<description>Comments on Ask MetaFilter post Add "http://" Prefix to a List of Domains Formatted in Plain Text :: How Please?</description>
	<pubDate>Tue, 21 Feb 2006 22:15:26 -0800</pubDate>
	<lastBuildDate>Tue, 21 Feb 2006 22:15:26 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Add &quot;http://&quot; Prefix to a List of Domains Formatted in Plain Text :: How Please?</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please</link>	
		<description>Hi, hoping some MS Excel or HTML wizards can help me out with this. The goal is as follows; format a list of domain names so I can publish them on a webpage with hyperlinks to their individual addresses &lt;i&gt;(currently they are all in Excel with each domain occupying a single cell in a single row; they are currently formatted like this: &quot;&lt;b&gt;domain.com&lt;/b&gt;&quot;)&lt;/i&gt;. There are just to many to go through and add this to each one. &lt;br /&gt;&lt;br /&gt; I&apos;m thinking that one of these two solutions might work &lt;i&gt;(just can&apos;t figure out how to do it!)&lt;/i&gt;:&lt;br&gt;
1) Use some formula in MS Excel to add the &quot;&lt;b&gt;http://&lt;/b&gt;&quot; to each of the cells with a domain. Then just copy and paste into my HTML editor.&lt;br&gt;
&lt;br&gt;
&lt;i&gt;OR&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
2) Use some sort of code directly in the HTML editor to change &quot;&lt;b&gt;domain.com&lt;/b&gt;&quot; into hyperlinked text.&lt;br&gt;
&lt;br&gt;
This &lt;a href=&quot;http://ask.metafilter.com/mefi/33038&quot;&gt;link&lt;/a&gt; came close, but just missed. Thanks so much for any help you might provide! Cheers!</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.33096</guid>
		<pubDate>Tue, 21 Feb 2006 22:05:50 -0800</pubDate>
		<dc:creator>Jhaus</dc:creator>
		
			<category>excel</category>
		
			<category>html</category>
		
			<category>link</category>
		
			<category>hyperlink</category>
		
			<category>convert</category>
		
			<category>prefix</category>
		
			<category>text</category>
		
			<category>domain</category>
		
			<category>domainnames</category>
		
	</item> <item>
		<title>By: SuperNova</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#516081</link>	
		<description>Solution #1, using Excel&lt;br&gt;
&lt;br&gt;
Say that Cell A1 contains example.com. Make Cell B1 say:&lt;br&gt;
=CONCATENATE(&quot;http://&quot;,A1)&lt;br&gt;
or &lt;br&gt;
=&quot;http://&quot; &amp;amp; A1&lt;br&gt;
&lt;br&gt;
And then drag the lower right corner to all cells in column B, assuming column A has all your *.com fields. Voila! Column B is your answer.&lt;br&gt;
&lt;br&gt;
Oh, I re-read and see that you have them in rows. Do the same thing, only use cell A2, and use Row 2 for your answers.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-516081</guid>
		<pubDate>Tue, 21 Feb 2006 22:15:26 -0800</pubDate>
		<dc:creator>SuperNova</dc:creator>
	</item><item>
		<title>By: Malor</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#516083</link>	
		<description>You could probably just record a macro.  Start recording, insert http:// at the start of the current cell, move down one cell, stop recording.  Play macro however many times you need to. &lt;br&gt;
&lt;br&gt;
If you need a full A HREF link, that would be more involved.. you&apos;d have to write a short VBA script, probably.  The basic algorithm would be:&lt;br&gt;
&lt;br&gt;
Go to cell 1;&lt;br&gt;
load cell in A$&lt;br&gt;
erase cell&lt;br&gt;
insert &apos;&amp;lt;A HREF=&quot;http://&apos; + A$ + &apos;&quot;&amp;gt;&apos; + A$ + &apos;&amp;lt;/A&amp;gt;&apos;&lt;br&gt;
Move down a cell&lt;br&gt;
If cell not empty, repeat.&lt;br&gt;
&lt;br&gt;
Note that you may have trouble with quotes... I used single quotes so that the double-quotes of the HTML link would come through.  But I don&apos;t remember if VBA supports that syntax.  You might have to make a quote variable containing the &quot; character, and then glue it into the correct places in the string. &lt;br&gt;
&lt;br&gt;
I&apos;m also not sure if + is string concatenation in VBA... if it&apos;s not, just substitute whatever the right character is.  It might be &amp;amp;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-516083</guid>
		<pubDate>Tue, 21 Feb 2006 22:16:28 -0800</pubDate>
		<dc:creator>Malor</dc:creator>
	</item><item>
		<title>By: SuperNova</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#516097</link>	
		<description>Malor, I think that&apos;s way too involved. Excel is decent at combining strings, even without VBA.&lt;br&gt;
&lt;br&gt;
I worked up this to generate a hyperlink. This is working under the assumption that your first row (not column) is written like:&lt;br&gt;
&lt;u&gt;_______A__________B__________C_____&lt;/u&gt;&lt;br&gt;
1| example.com | sample.com | website.com&lt;br&gt;
&lt;br&gt;
You then add the following lines:&lt;br&gt;
&lt;u&gt;_______A________&lt;/u&gt;&lt;br&gt;
1| example.com&lt;br&gt;
2|&amp;lt;a href=&quot;http://&lt;br&gt;
3| &quot;&amp;gt;&lt;br&gt;
4| &amp;lt;/a&amp;gt;&lt;br&gt;
5|=A2&amp;amp;A1&amp;amp;A3&amp;amp;A1&amp;amp;A4&lt;br&gt;
&lt;br&gt;
which yields in A5 the following:&lt;br&gt;
&amp;lt;a href=&quot;http://example.com&quot;&amp;gt;example.com&amp;lt;/a&amp;gt;&lt;br&gt;
&lt;br&gt;
I copied this directly from the sheet, as the default is to copy the answer from the formula, not the formula; should make your job easier.&lt;br&gt;
&lt;br&gt;
You can always change the second A1 reference if you want the link to say something else.&lt;br&gt;
&lt;br&gt;
Hope this helps!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-516097</guid>
		<pubDate>Tue, 21 Feb 2006 22:27:18 -0800</pubDate>
		<dc:creator>SuperNova</dc:creator>
	</item><item>
		<title>By: aisforal</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#516121</link>	
		<description>I do regularly do exactly what SuperNova  does, only with my domains in columns. It works perfectly.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-516121</guid>
		<pubDate>Tue, 21 Feb 2006 22:49:15 -0800</pubDate>
		<dc:creator>aisforal</dc:creator>
	</item><item>
		<title>By: kcm</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#516170</link>	
		<description>perl -nle &apos;print &quot;&amp;lt;a href=\&quot;http://$_\&quot;&amp;gt;$_&amp;lt;/a&amp;gt;&quot;&apos; domains.txt&lt;br&gt;
&lt;br&gt;
sed &apos;s#.*#&amp;lt;a href=&quot;http://&amp;amp;&quot;&amp;gt;&amp;amp;&amp;lt;/a&amp;gt;#&apos; domains.txt&lt;br&gt;
&lt;br&gt;
everything is easier in the unix.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-516170</guid>
		<pubDate>Tue, 21 Feb 2006 23:39:06 -0800</pubDate>
		<dc:creator>kcm</dc:creator>
	</item><item>
		<title>By: Jhaus</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#516206</link>	
		<description>OOPS...I meant to say that they are in a single &lt;b&gt;COLUMN&lt;/b&gt;, not a single Row...Sorry.&lt;br&gt;
&lt;br&gt;
Regardless, this is some great stuff! I think I&apos;ll be able to work it out from here. Thanks so much for all of your help! How&apos;d you guys get so knowledgeable with this stuff? Thanks again.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-516206</guid>
		<pubDate>Wed, 22 Feb 2006 01:16:16 -0800</pubDate>
		<dc:creator>Jhaus</dc:creator>
	</item><item>
		<title>By: SuperNova</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#516221</link>	
		<description>Oh ok... columns makes more sense, to me anyway. Let me know if you need help converting what I put into columns, or with anything else. Hopefully this will take care of your issue.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;How&apos;d I learn this? I think it&apos;s a combination of one &lt;em&gt;very&lt;/em&gt; basic class I took on MS Office, plus a lot of time spent saying, &quot;I know Excel can solve this problem, let me find the formula to do it.&quot; Oh, and from reading AskMe. Seriously.&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-516221</guid>
		<pubDate>Wed, 22 Feb 2006 02:07:20 -0800</pubDate>
		<dc:creator>SuperNova</dc:creator>
	</item><item>
		<title>By: Mo Nickels</title>
		<link>http://ask.metafilter.com/33096/Add-http-Prefix-to-a-List-of-Domains-Formatted-in-Plain-Text-How-Please#517463</link>	
		<description>The simplest way is to save the Excel spreadsheet as a text file. Open it in Microsoft Word. In Word, use search and replace. Search for &lt;br&gt;
&lt;br&gt;
^p&lt;br&gt;
&lt;br&gt;
That will find all line breaks. Replace it with &lt;br&gt;
&lt;br&gt;
&quot;&amp;lt;/a&amp;gt;^p&amp;lt;a href=&quot;http://&lt;br&gt;
&lt;br&gt;
Include the quote marks. Then you&apos;ll have to just fix the very first domain and the very last domain by hand. Save the Word file as text and then open it up in Excel again.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.33096-517463</guid>
		<pubDate>Thu, 23 Feb 2006 06:57:30 -0800</pubDate>
		<dc:creator>Mo Nickels</dc:creator>
	</item>
	</channel>
</rss>
