<?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: Selection Offset</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:28:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Larry Douglas</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22283</link>
		<dc:creator>Larry Douglas</dc:creator>
		<pubDate>Thu, 01 Feb 2007 13:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22283</guid>
		<description>&lt;p&gt;When I first saw the problem I thought keep it simple.  Came up with the formula a Andrew Hunt. Then I scrolled down.  I am a Geologist an work with Geotech and Engineers. I like to avoid macros, I find it hard for fellow workers to follow or edit.  Often other will asked for my help.  I like to keep it simple for them and to predict incorrect inputs.  This is the choice I would select, If someone put in the wrong data it will still produce a blank space&lt;br&gt;
=IF(B1=&quot;T&quot;,2*C1,IF(B1=&quot;S&quot;,C1*1,&quot;&quot;))&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>When I first saw the problem I thought keep it simple.  Came up with the formula a Andrew Hunt. Then I scrolled down.  I am a Geologist an work with Geotech and Engineers. I like to avoid macros, I find it hard for fellow workers to follow or edit.  Often other will asked for my help.  I like to keep it simple for them and to predict incorrect inputs.  This is the choice I would select, If someone put in the wrong data it will still produce a blank space<br />
=IF(B1=&#8221;T&#8221;,2*C1,IF(B1=&#8221;S&#8221;,C1*1,&#8221;"))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jules</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22281</link>
		<dc:creator>Jules</dc:creator>
		<pubDate>Thu, 01 Feb 2007 10:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22281</guid>
		<description>&lt;p&gt;I always use the formula:&lt;/p&gt;
&lt;p&gt;=IF ( B2=&quot;&quot; , &quot;&quot; , IF (B2 = &quot;T&quot; ,2,1) * C2 )&lt;/p&gt;
&lt;p&gt;Works every time &amp; I do it without thinking now.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I always use the formula:</p>
<p>=IF ( B2=&#8221;" , &#8220;&#8221; , IF (B2 = &#8220;T&#8221; ,2,1) * C2 )</p>
<p>Works every time &amp; I do it without thinking now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beate Schmitz</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22265</link>
		<dc:creator>Beate Schmitz</dc:creator>
		<pubDate>Tue, 30 Jan 2007 21:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22265</guid>
		<description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;try this to fill column D in the required rows with the formula in question as per your example:&lt;/p&gt;
&lt;p&gt;Sub Fill_not_empties()&lt;br&gt;
Dim lz As Long&lt;br&gt;
lz = Cells(Rows.Count, 3).End(xlUp).Row&lt;br&gt;
Range(&quot;C2:C&quot; &amp; lz).SpecialCells(xlCellTypeConstants, 23) _&lt;br&gt;
.Offset(0, 1).FormulaR1C1 = &quot;=IF(RC[-2]=&quot;&quot;T&quot;&quot;,2,1)*RC[-1]&quot; &#039;Column D&lt;br&gt;
End Sub&lt;/p&gt;
&lt;p&gt;Regards&lt;br&gt;
Beate&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>try this to fill column D in the required rows with the formula in question as per your example:</p>
<p>Sub Fill_not_empties()<br />
Dim lz As Long<br />
lz = Cells(Rows.Count, 3).End(xlUp).Row<br />
Range(&#8220;C2:C&#8221; &amp; lz).SpecialCells(xlCellTypeConstants, 23) _<br />
.Offset(0, 1).FormulaR1C1 = &#8220;=IF(RC[-2]=&#8221;"T&#8221;",2,1)*RC[-1]&#8221; &#8216;Column D<br />
End Sub</p>
<p>Regards<br />
Beate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lori</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22222</link>
		<dc:creator>Lori</dc:creator>
		<pubDate>Sat, 27 Jan 2007 15:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22222</guid>
		<description>&lt;p&gt;You should also be able to just filter a column for non-blanks and use ctrl+enter to enter the formulas. Note that going to visible cells shouldn&#039;t be needed as operations in filtered view only apply to the visible selection.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You should also be able to just filter a column for non-blanks and use ctrl+enter to enter the formulas. Note that going to visible cells shouldn&#8217;t be needed as operations in filtered view only apply to the visible selection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22205</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 26 Jan 2007 15:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22205</guid>
		<description>&lt;p&gt;Neil,&lt;/p&gt;
&lt;p&gt;     As long as nobody&#039;s Weighted (col D) evaluated to 0. But you could filter A, B, or C for blanks!&lt;/p&gt;
&lt;p&gt;Brett&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Neil,</p>
<p>     As long as nobody&#8217;s Weighted (col D) evaluated to 0. But you could filter A, B, or C for blanks!</p>
<p>Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22204</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Fri, 26 Jan 2007 14:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22204</guid>
		<description>&lt;p&gt;Couldn&#039;t you have filtered column D for all cells equal to zero?  Then use Edit&#124;Go To&#124;Special&#124;Visible Cells Only and press Delete.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Couldn&#8217;t you have filtered column D for all cells equal to zero?  Then use Edit|Go To|Special|Visible Cells Only and press Delete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Hunt</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22203</link>
		<dc:creator>Andrew Hunt</dc:creator>
		<pubDate>Fri, 26 Jan 2007 13:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22203</guid>
		<description>&lt;p&gt;As an alternative&lt;/p&gt;
&lt;p&gt;=IF ( B2=&quot;&quot; , &quot;&quot; , IF (B2 = &quot;T&quot; ,2,1) * C2 )&lt;/p&gt;
&lt;p&gt;or &lt;/p&gt;
&lt;p&gt;You could just leave the original formula as is and&lt;br&gt;
use a Conditional Format Font colour of White for&lt;br&gt;
Blank or Zero value cells in Column D&lt;/p&gt;
&lt;p&gt;or if you wanted to use a macro to insert just the values&lt;br&gt;
in the non blank rows&lt;/p&gt;
&lt;p&gt;For I = 2 to Columns(1).Find(&quot;*&quot;,,,,,xlPrevious).Row&lt;br&gt;
    If Cells(I,2) = &quot;S&quot; then&lt;br&gt;
        Cells(I,4) = Cells(I,3)&lt;br&gt;
    ElseIf Cells(I,2) = &quot;T&quot; then&lt;br&gt;
        Cells(I,4) = Cells(I,3)*2&lt;br&gt;
    EndIf&lt;br&gt;
Next I&lt;/p&gt;
&lt;p&gt;or you could just use the same to insert the Formula if&lt;br&gt;
this is actually needed&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>As an alternative</p>
<p>=IF ( B2=&#8221;" , &#8220;&#8221; , IF (B2 = &#8220;T&#8221; ,2,1) * C2 )</p>
<p>or </p>
<p>You could just leave the original formula as is and<br />
use a Conditional Format Font colour of White for<br />
Blank or Zero value cells in Column D</p>
<p>or if you wanted to use a macro to insert just the values<br />
in the non blank rows</p>
<p>For I = 2 to Columns(1).Find(&#8220;*&#8221;,,,,,xlPrevious).Row<br />
    If Cells(I,2) = &#8220;S&#8221; then<br />
        Cells(I,4) = Cells(I,3)<br />
    ElseIf Cells(I,2) = &#8220;T&#8221; then<br />
        Cells(I,4) = Cells(I,3)*2<br />
    EndIf<br />
Next I</p>
<p>or you could just use the same to insert the Formula if<br />
this is actually needed</p>
<p>Kind regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon murphy</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22202</link>
		<dc:creator>simon murphy</dc:creator>
		<pubDate>Fri, 26 Jan 2007 13:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22202</guid>
		<description>&lt;p&gt;I try and avoid blank rows, I prefer to use the row height to sort the formatting out.&lt;br&gt;
I like the select special errors approach, Bob has that in his Excel magic book too.&lt;br&gt;
cheers&lt;br&gt;
Simon&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I try and avoid blank rows, I prefer to use the row height to sort the formatting out.<br />
I like the select special errors approach, Bob has that in his Excel magic book too.<br />
cheers<br />
Simon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22201</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 26 Jan 2007 13:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22201</guid>
		<description>&lt;p&gt;Another approach: Hard code a sort key in Col.E with Excel&#039;s Edit-&gt;Fill-&gt;Series... Sort on Col. A to group the blank rows. Delete romulas in D and resort on the key.&lt;/p&gt;
&lt;p&gt;Brett&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Another approach: Hard code a sort key in Col.E with Excel&#8217;s Edit-&gt;Fill-&gt;Series&#8230; Sort on Col. A to group the blank rows. Delete romulas in D and resort on the key.</p>
<p>Brett</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiri Cihar</title>
		<link>http://www.dailydoseofexcel.com/archives/2007/01/25/selection-offset/#comment-22200</link>
		<dc:creator>Jiri Cihar</dc:creator>
		<pubDate>Fri, 26 Jan 2007 12:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1592#comment-22200</guid>
		<description>&lt;p&gt;Hi,&lt;br&gt;
just to extent the proposal of &quot;the Okk&quot;&lt;/p&gt;
&lt;p&gt;Use the formula =IF(C2&gt;0,IF(B2=&quot;T&quot;,2,1)*C2,1/C2) and copy down.&lt;br&gt;
In cells D3, D5 etc. you got errors #DIV/0!&lt;br&gt;
Select the column D&lt;br&gt;
Hit F5, Go To,&lt;br&gt;
Click Formulas and unclick everything but errors...&lt;br&gt;
Press OK and then Delete.&lt;/p&gt;
&lt;p&gt;My best regards&lt;/p&gt;
&lt;p&gt;Jiri Cihar&lt;br&gt;
&lt;a href=&quot;http://www.dataspectrum.cz&quot; rel=&quot;nofollow&quot;&gt;http://www.dataspectrum.cz&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
just to extent the proposal of &#8220;the Okk&#8221;</p>
<p>Use the formula =IF(C2&gt;0,IF(B2=&#8221;T&#8221;,2,1)*C2,1/C2) and copy down.<br />
In cells D3, D5 etc. you got errors #DIV/0!<br />
Select the column D<br />
Hit F5, Go To,<br />
Click Formulas and unclick everything but errors&#8230;<br />
Press OK and then Delete.</p>
<p>My best regards</p>
<p>Jiri Cihar<br />
<a href="http://www.dataspectrum.cz" rel="nofollow">http://www.dataspectrum.cz</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

