<?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: String manipulation with worksheet formulas &#8211; Part 2</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-59837</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 25 Feb 2011 16:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-59837</guid>
		<description>&lt;p&gt;Rick:  Thanks.  I assumed they would only want up to the first five letters.  Possibly presumptuous, I admit.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rick:  Thanks.  I assumed they would only want up to the first five letters.  Possibly presumptuous, I admit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Rothstein (MVP - Excel)</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-59726</link>
		<dc:creator>Rick Rothstein (MVP - Excel)</dc:creator>
		<pubDate>Thu, 24 Feb 2011 03:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-59726</guid>
		<description>&lt;p&gt;@Dick,&lt;/p&gt;
&lt;p&gt;Your last setup will fail for something like this in A1...&lt;/p&gt;
&lt;p&gt;One-Two Three&lt;/p&gt;
&lt;p&gt;I believe this single formula will do work instead though...&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;=LEFT(SUBSTITUTE(IF(FIND(&quot;-&quot;,A1&amp;&quot;-&quot;)&lt;find (&quot; &quot;,A1&amp;&quot; &quot;),SUBSTITUTE(A1,&quot;-&quot;,&quot;&quot;),REPLACE(A1,4,FIND(&quot; &quot;,A1)-3,&quot;&quot;)),&quot; &quot;,&quot;&quot;),5)&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>@Dick,</p>
<p>Your last setup will fail for something like this in A1&#8230;</p>
<p>One-Two Three</p>
<p>I believe this single formula will do work instead though&#8230;</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">=LEFT(SUBSTITUTE(IF(FIND(&#8220;-&#8221;,A1&amp;&#8221;-&#8221;)&lt;find (&#8221; &#8220;,A1&amp;&#8221; &#8220;),SUBSTITUTE(A1,&#8221;-&#8221;,&#8221;"),REPLACE(A1,4,FIND(&#8221; &#8220;,A1)-3,&#8221;")),&#8221; &#8220;,&#8221;"),5)</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-59698</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 23 Feb 2011 15:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-59698</guid>
		<description>&lt;p&gt;With your text in A1, in B1&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;=SUBSTITUTE(SUBSTITUTE(A1,&quot; &quot;,&quot;^^&quot;),&quot;-&quot;,&quot;^^&quot;)&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and in C1&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;=IF(ISNUMBER(FIND(&quot;^^&quot;,B1)),IF(MID(A1,FIND(&quot;^^&quot;,B1),1)=&quot;-&quot;,LEFT(LEFT(A1,FIND(&quot;-&quot;,A1)-1),5),LEFT(LEFT(A1,FIND(&quot; &quot;,A1)-1),3)&amp;MID(A1,FIND(&quot; &quot;,A1)+1,2)),A1)&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;will extract the first five letters of the first word if the first and second words are separated by a hyphen and will extract the first three letters of the first word and first two letters of the second if they are separated by a space.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>With your text in A1, in B1</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">=SUBSTITUTE(SUBSTITUTE(A1,&#8221; &#8220;,&#8221;^^&#8221;),&#8221;-&#8221;,&#8221;^^&#8221;)</div>
</div>
<p>and in C1</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">=IF(ISNUMBER(FIND(&#8220;^^&#8221;,B1)),IF(MID(A1,FIND(&#8220;^^&#8221;,B1),1)=&#8221;-&#8221;,LEFT(LEFT(A1,FIND(&#8220;-&#8221;,A1)-1),5),LEFT(LEFT(A1,FIND(&#8221; &#8220;,A1)-1),3)&amp;MID(A1,FIND(&#8221; &#8220;,A1)+1,2)),A1)</div>
</div>
<p>will extract the first five letters of the first word if the first and second words are separated by a hyphen and will extract the first three letters of the first word and first two letters of the second if they are separated by a space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-59697</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 23 Feb 2011 15:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-59697</guid>
		<description>&lt;p&gt;This formula will extract the first word defined by a space or a dash&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container text default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;text codecolorer&quot;&gt;=IF(LEN(A1)=0,&quot;&quot;,IF(ISNUMBER(FIND(&quot;^^&quot;,SUBSTITUTE(SUBSTITUTE(A1,&quot; &quot;,&quot;^^&quot;),&quot;-&quot;,&quot;^^&quot;))),LEFT(SUBSTITUTE(SUBSTITUTE(A1,&quot; &quot;,&quot;^^&quot;),&quot;-&quot;,&quot;^^&quot;),FIND(&quot;^^&quot;,SUBSTITUTE(SUBSTITUTE(A1,&quot; &quot;,&quot;^^&quot;),&quot;-&quot;,&quot;^^&quot;))-1),A1))&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>This formula will extract the first word defined by a space or a dash</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container text default">
<div style="white-space: nowrap;" class="text codecolorer">=IF(LEN(A1)=0,&#8221;",IF(ISNUMBER(FIND(&#8220;^^&#8221;,SUBSTITUTE(SUBSTITUTE(A1,&#8221; &#8220;,&#8221;^^&#8221;),&#8221;-&#8221;,&#8221;^^&#8221;))),LEFT(SUBSTITUTE(SUBSTITUTE(A1,&#8221; &#8220;,&#8221;^^&#8221;),&#8221;-&#8221;,&#8221;^^&#8221;),FIND(&#8220;^^&#8221;,SUBSTITUTE(SUBSTITUTE(A1,&#8221; &#8220;,&#8221;^^&#8221;),&#8221;-&#8221;,&#8221;^^&#8221;))-1),A1))</div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: KRANTI</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-59658</link>
		<dc:creator>KRANTI</dc:creator>
		<pubDate>Tue, 22 Feb 2011 19:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-59658</guid>
		<description>&lt;p&gt;adding to above i also need help regarding the following :&lt;br&gt;
1.need to extract first 3 letters of 1st word  &amp; 2 letters of 2nd word of the same string if there is space betwenn 2 words&lt;br&gt;
2.if there is dash (-) between two words instead of space then need to extract only 1st 5 letters of the same string&lt;/p&gt;
&lt;p&gt;can  anybody assist me on this?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>adding to above i also need help regarding the following :<br />
1.need to extract first 3 letters of 1st word  &amp; 2 letters of 2nd word of the same string if there is space betwenn 2 words<br />
2.if there is dash (-) between two words instead of space then need to extract only 1st 5 letters of the same string</p>
<p>can  anybody assist me on this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KRANTI</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-59657</link>
		<dc:creator>KRANTI</dc:creator>
		<pubDate>Tue, 22 Feb 2011 19:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-59657</guid>
		<description>&lt;p&gt;hi,&lt;br&gt;
the very first formula is workable for my file but only change i want is there is dash(-) in some strings instead of space so can u modify this formula to read it space &amp;/or  dash? &amp; revert?&lt;/p&gt;
&lt;p&gt;=IF(LEN(A1)=0,&quot;&quot;,IF(ISNUMBER(FIND(&quot; &quot;,A1)),LEFT(A1,FIND(&quot; &quot;,A1)-1),A1))&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hi,<br />
the very first formula is workable for my file but only change i want is there is dash(-) in some strings instead of space so can u modify this formula to read it space &amp;/or  dash? &amp; revert?</p>
<p>=IF(LEN(A1)=0,&#8221;",IF(ISNUMBER(FIND(&#8221; &#8220;,A1)),LEFT(A1,FIND(&#8221; &#8220;,A1)-1),A1))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Traduzir Fórmulas de Excel para a Versão PT-BR &#124; Felipe Benza</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-55995</link>
		<dc:creator>Traduzir Fórmulas de Excel para a Versão PT-BR &#124; Felipe Benza</dc:creator>
		<pubDate>Sun, 19 Dec 2010 12:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-55995</guid>
		<description>&lt;p&gt;[...] O tópico original dessa fórmula se encontra em:Â &lt;a href=&quot;http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part..&quot; rel=&quot;nofollow&quot;&gt;http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part..&lt;/a&gt;. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] O tópico original dessa fórmula se encontra em:Â <a href="http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part.." rel="nofollow">http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part..</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akhil</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-35302</link>
		<dc:creator>Akhil</dc:creator>
		<pubDate>Thu, 16 Oct 2008 09:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-35302</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i have two sheets &lt;/p&gt;
&lt;p&gt;sheet 1 contains &lt;/p&gt;
&lt;p&gt;column-1-list of names&lt;br&gt;
column-2-count&lt;/p&gt;
&lt;p&gt;sheet 2 contains&lt;/p&gt;
&lt;p&gt;column-1-date&lt;br&gt;
column-2-shift 1&lt;br&gt;
column-2-shift 2&lt;br&gt;
column-3-shift 3&lt;br&gt;
column-4-shift 4&lt;/p&gt;
&lt;p&gt;now there might be any number of names in each column in sheet 2&lt;br&gt;
(i.e there will be many people in different shifts whose names are seperated by a delimiter &quot; , &quot;)&lt;/p&gt;
&lt;p&gt;i want a user defined sode which must perform the following operation.&lt;/p&gt;
&lt;p&gt;if the name of an associate is found in sheet 2 in any shift for that particular date,then the count corresponding to his name should increase by one.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i have two sheets </p>
<p>sheet 1 contains </p>
<p>column-1-list of names<br />
column-2-count</p>
<p>sheet 2 contains</p>
<p>column-1-date<br />
column-2-shift 1<br />
column-2-shift 2<br />
column-3-shift 3<br />
column-4-shift 4</p>
<p>now there might be any number of names in each column in sheet 2<br />
(i.e there will be many people in different shifts whose names are seperated by a delimiter &#8221; , &#8220;)</p>
<p>i want a user defined sode which must perform the following operation.</p>
<p>if the name of an associate is found in sheet 2 in any shift for that particular date,then the count corresponding to his name should increase by one.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrt</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-32826</link>
		<dc:creator>mrt</dc:creator>
		<pubDate>Thu, 12 Jun 2008 20:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-32826</guid>
		<description>&lt;p&gt;Hi Hans -&lt;/p&gt;
&lt;p&gt;Ooo...I like that.  Now we&#039;re approaching Obfuscated C ;-)  Well, maybe not.&lt;/p&gt;
&lt;p&gt;I didn&#039;t get the need for Join() until I found that you can&#039;t get at something like Filter(0)&lt;/p&gt;
&lt;p&gt;Thanks&lt;br&gt;
Michael (aka mrt)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Hans -</p>
<p>Ooo&#8230;I like that.  Now we&#8217;re approaching Obfuscated C <img src='http://www.dailydoseofexcel.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   Well, maybe not.</p>
<p>I didn&#8217;t get the need for Join() until I found that you can&#8217;t get at something like Filter(0)</p>
<p>Thanks<br />
Michael (aka mrt)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Schraven</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/15/string-manipulation-with-worksheet-formulas-part-2/#comment-32822</link>
		<dc:creator>Hans Schraven</dc:creator>
		<pubDate>Thu, 12 Jun 2008 14:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=939#comment-32822</guid>
		<description>&lt;p&gt;Michael,&lt;/p&gt;
&lt;p&gt;Your remarks led me to the one-liner below:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt; Institute(Phrase &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;) &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; Institute=join(filter(split(phrase,&lt;span class=&quot;st0&quot;&gt;&quot;, &quot;&lt;/span&gt;),IIf(InStr(phrase, &lt;span class=&quot;st0&quot;&gt;&quot;University&quot;&lt;/span&gt;), &lt;span class=&quot;st0&quot;&gt;&quot;University&quot;&lt;/span&gt;, IIf(InStr(phrase, &lt;span class=&quot;st0&quot;&gt;&quot;Institute&quot;&lt;/span&gt;), &lt;span class=&quot;st0&quot;&gt;&quot;Institute&quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;))),&lt;span class=&quot;st0&quot;&gt;&quot;&quot;&lt;/span&gt;)&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Michael,</p>
<p>Your remarks led me to the one-liner below:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Function</span> Institute(Phrase <span class="kw1">As</span> <span class="kw1">String</span>) <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; Institute=join(filter(split(phrase,<span class="st0">&#8220;, &#8220;</span>),IIf(InStr(phrase, <span class="st0">&#8220;University&#8221;</span>), <span class="st0">&#8220;University&#8221;</span>, IIf(InStr(phrase, <span class="st0">&#8220;Institute&#8221;</span>), <span class="st0">&#8220;Institute&#8221;</span>, <span class="st0">&#8220;&#8221;</span>))),<span class="st0">&#8220;&#8221;</span>)<br />
<span class="kw1">End</span> <span class="kw1">Function</span></div>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>

