<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tim Thorp Training &#38; Consulting &#187; names</title>
	<atom:link href="http://www.timthorp.com/tag/names/feed" rel="self" type="application/rss+xml" />
	<link>http://www.timthorp.com</link>
	<description>technology made simple.</description>
	<lastBuildDate>Mon, 19 Oct 2009 14:45:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Splitting LASTNAME,FIRSTNAME columns in Excel</title>
		<link>http://www.timthorp.com/tech-tips/splitting-lastnamefirstname-columns-in-excel</link>
		<comments>http://www.timthorp.com/tech-tips/splitting-lastnamefirstname-columns-in-excel#comments</comments>
		<pubDate>Wed, 14 May 2008 14:10:38 +0000</pubDate>
		<dc:creator>Tim Thorp</dc:creator>
				<category><![CDATA[tech tips]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[formula]]></category>
		<category><![CDATA[names]]></category>
		<category><![CDATA[split]]></category>

		<guid isPermaLink="false">http://www.timthorp.com/uncategorized/splitting-lastnamefirstname-columns-in-excel</guid>
		<description><![CDATA[Too often, office workers have to manipulate improperly structured data that comes from mega-systems. For example, if a person wanted to do a mail merge intro line, stating, &#8220;Dear &#60;firstname&#62;&#8221; but the name field held LASTNAME,FIRSTNAME, they would have a hard time, but here’s a way to handle it using an excel formula that pulls [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">Too often, office workers have to manipulate improperly structured data that comes from mega-systems. For example, if a person wanted to do a mail merge intro line, stating, &#8220;Dear &lt;firstname&gt;&#8221; but the name field held LASTNAME,FIRSTNAME, they would have a hard time, but here’s a way to handle it using an excel formula that pulls it apart and displays the correct name in title case. I haven’t really tested it with special names including extra things like sir or esquire, but it works pretty good for most names.</p>
<p class="MsoNormal">Assuming cell A1 holds a name like THORP,TIMOTHY – this formula will result in Timothy Thorp</p>

<div class="wp_codebox"><table><tr id="p144"><td class="code" id="p14code4"><pre class="excel" style="font-family:monospace;">=PROPER(CONCATENATE(TRIM(RIGHT(A1, LEN(A1)- FIND(&quot;,&quot;,A1,1))), &quot; &quot;, LEFT(A1,FIND(&quot;,&quot;,A1,1)-1)))</pre></td></tr></table></div>

<p class="MsoNormal">Explanation of each function in the order that it is processed:</p>
<p class="MsoNormal">LEN() counts the number of characters in the name (in this example, 13)</p>
<p class="MsoNormal">FIND() returns the character position of the comma (in this example, 6)</p>
<p class="MsoNormal">RIGHT() returns the calculated number of characters to the right of the comma (in this example, chars 7-13 or TIMOTHY)</p>
<p class="MsoNormal">LEFT() returns all of the characters from the beginning of the name up to the comma (in this example, characters 1-5 or THORP)</p>
<p class="MsoNormal">TRIM() removes extra blank spaces around the comma in case they are present</p>
<p class="MsoNormal">CONCATENATE() squishes the first and last name into one column together</p>
<p class="MsoNormal">PROPER() puts the name in title case (first letter of each word capitalized)</p>
<p class="MsoNormal">From there, you can use the fill handle to copy the formula down the column and Excel Text to Columns and/or paste special to separate things out as you need.</p>
<p class="MsoNormal">To get the first name by itself :</p>

<div class="wp_codebox"><table><tr id="p145"><td class="code" id="p14code5"><pre class="excel" style="font-family:monospace;">=PROPER(TRIM(RIGHT(A1, LEN(A1)- FIND(&quot;,&quot;,A1,1))))</pre></td></tr></table></div>

<p class="MsoNormal">To get the last name by itself:</p>

<div class="wp_codebox"><table><tr id="p146"><td class="code" id="p14code6"><pre class="excel" style="font-family:monospace;">=PROPER(LEFT(A1,FIND(&quot;,&quot;,A1,1)-1))</pre></td></tr></table></div>

<p class="MsoNormal">
]]></content:encoded>
			<wfw:commentRss>http://www.timthorp.com/tech-tips/splitting-lastnamefirstname-columns-in-excel/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
