<?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>nandeshwar.info &#187; cells</title>
	<atom:link href="http://nandeshwar.info/tag/cells/feed/" rel="self" type="application/rss+xml" />
	<link>http://nandeshwar.info</link>
	<description></description>
	<lastBuildDate>Mon, 12 Dec 2011 21:33:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Count cells without formulae</title>
		<link>http://nandeshwar.info/2006/08/07/count-cells-without-formulae/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=count-cells-without-formulae</link>
		<comments>http://nandeshwar.info/2006/08/07/count-cells-without-formulae/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 15:41:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cells]]></category>
		<category><![CDATA[count]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2006/08/07/count-cells-without-formulae/</guid>
		<description><![CDATA[If you want to count cells in a given range without formulae use this function Function CountNoFormula(rng As Range) As LongDim c As Range&#160;&#160; On Error GoTo CountNoFormula_Error&#160;&#160;&#160;&#160;For Each c In rng&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;If Not c.HasFormula Then&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;CountNoFormula = CountNoFormula + 1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;End If&#160;&#160;&#160;&#160;Next cCountNoFormula_CleanUpExit:&#160;&#160; Exit FunctionCountNoFormula_Error:&#160;&#160;&#160;&#160;CountNoFormula = CVErr(Err.Number)&#160;&#160;&#160;&#160;Resume CountNoFormula_CleanUpExitEnd Function If you want to count cells with formule [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to count cells in a given range without formulae use this function
<div id="code"><font face="Courier"><span style="color:#00007F;">Function</span> CountNoFormula(rng <span style="color:#00007F;">As</span> Range) <span style="color:#00007F;">As</span> <span style="color:#00007F;">Long</span><br /><span style="color:#00007F;">Dim</span> c <span style="color:#00007F;">As</span> Range<br />&#160;&#160; <span style="color:#00007F;">On</span> <span style="color:#00007F;">Error</span> <span style="color:#00007F;">GoTo</span> CountNoFormula_Error<br />&#160;&#160;&#160;&#160;For <span style="color:#00007F;">Each</span> c <span style="color:#00007F;">In</span> rng<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#00007F;">If</span> <span style="color:#00007F;">Not</span> c.HasFormula <span style="color:#00007F;">Then</span><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;CountNoFormula = CountNoFormula + 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<span style="color:#00007F;">End</span> <span style="color:#00007F;">If</span><br />&#160;&#160;&#160;&#160;<span style="color:#00007F;">Next</span> c<br />CountNoFormula_CleanUpExit:<br />&#160;&#160; Exit <span style="color:#00007F;">Function</span><br />CountNoFormula_Error:<br />&#160;&#160;&#160;&#160;CountNoFormula = <span style="color:#00007F;">CVErr</span>(Err.Number)<br />&#160;&#160;&#160;&#160;<span style="color:#00007F;">Resume</span> CountNoFormula_CleanUpExit<br /><span style="color:#00007F;">End</span> <span style="color:#00007F;">Function</span></font></div>
<p>If you want to count cells with formule then just remove then &#8220;Not&#8221; in front of c.HasFormula</p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2006/08/07/count-cells-without-formulae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>True blanks</title>
		<link>http://nandeshwar.info/2005/04/23/true-blanks/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=true-blanks</link>
		<comments>http://nandeshwar.info/2005/04/23/true-blanks/#comments</comments>
		<pubDate>Sat, 23 Apr 2005 18:52:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Alt F8]]></category>
		<category><![CDATA[cells]]></category>
		<category><![CDATA[Press Alt F11]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2005/04/23/true-blanks/</guid>
		<description><![CDATA[This about the problem of cells which appear to be blank and which are true blanks. If you check a cell using IsBlank() formula, you&#8217;d know if it&#8217;s a true blank or not. Even if you copy paste special (values) this =&#8221;", there wouldn&#8217;t be anything in the cell and length of that cell would [...]]]></description>
			<content:encoded><![CDATA[<p>This about the problem of cells which appear to be blank and which are true blanks. If you check a cell using IsBlank() formula, you&#8217;d know if it&#8217;s a true blank or not. </p>
<p>Even if you copy paste special (values) this =&#8221;", there wouldn&#8217;t be anything in the cell and length of that cell would be zero &#8211; still it won&#8217;t be a blank. But if you press delete on that cell it would become a true blank.</p>
<p>Now, here is a macro to do the same thing, it would check if the cell has zero length and check if Istext is true, if both conditions are satisfied it would press a delete key on that cell.</p>
<p>Please check the Excel help on the functions- Len, Istext, and Isblank</p>
<p>To use this macro Press Alt + F11, double click the sheet you&#8217;re working on, copy and paste this code. Close VBA window.<br />To run it, select a range in the worksheet you want true blanks, press Alt + F8, select this macro and press Run.</p>
<div id="code"><font face="Courier"><span style="color:#007F00;">&#8216;macro to make a blank true blank</span><br /><span style="color:#00007F;">Sub</span> make_true_blanks()<br /><span style="color:#00007F;">Dim</span> c <span style="color:#00007F;">As</span> Range<br /><span style="color:#00007F;">For</span> <span style="color:#00007F;">Each</span> c <span style="color:#00007F;">In</span> Selection<br /><span style="color:#00007F;">If</span> Len(c) = 0 And WorksheetFunction.IsText(c) <span style="color:#00007F;">Then</span><br />c.ClearContents<br /><span style="color:#00007F;">End</span> <span style="color:#00007F;">If</span><br /><span style="color:#00007F;">Next</span><br />MsgBox &#8220;Done&#8221;<br /><span style="color:#00007F;">End</span> <span style="color:#00007F;">Sub</span><br /></font></div>
<p>Please check this <a href="http://www.mrexcel.com/board2/viewtopic.php?t=141151&amp;highlight=">discussion </a>on mrexcel.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2005/04/23/true-blanks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flip row or column</title>
		<link>http://nandeshwar.info/2005/03/30/flip-row-or-column/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=flip-row-or-column</link>
		<comments>http://nandeshwar.info/2005/03/30/flip-row-or-column/#comments</comments>
		<pubDate>Wed, 30 Mar 2005 21:19:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cells]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[flip]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2005/03/30/flip-row-or-column/</guid>
		<description><![CDATA[To flip the given row as shown in this figure, use the following macro Result row You can use the same macro for flipping columns too, code will find if it&#8217;s a row or a column. Note: This code was modified on 07/26/07 for error checking, and removal of Option Base Sub flip() Dim Arr [...]]]></description>
			<content:encoded><![CDATA[<p>To flip the given row as shown in this figure, use the following macro</p>
<div class="flickrEmailPost"><a title="Flip row or column" href="http://www.flickr.com/photos/78033189@N00/7917811/"><img class="flickrEmailImage" src="http://photos6.flickr.com/7917811_06ff0e5046.jpg" alt="Flip row or column" /></a></div>
<p>Result row</p>
<div class="flickrEmailPost"><a title="Flip row or column" href="http://www.flickr.com/photos/78033189@N00/7917800/"><img class="flickrEmailImage" src="http://photos7.flickr.com/7917800_c795b8c13e.jpg" alt="Flip row or column" /></a></div>
<p>You can use the same macro for flipping columns too, code will find if it&#8217;s a row or a column.</p>
<p><span style="font-style:italic;">Note: This code was modified on 07/26/07 for error checking, and removal of Option Base</span></p>
<div id="code"><span style="font-family: Courier;"><span style="color:#00007F;">Sub</span> flip()</span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">Dim</span></span><span style="font-family: Courier;"> Arr <span style="color:#00007F;">As</span> <span style="color:#00007F;">Variant</span><br />
<span style="color:#00007F;">Dim</span> myrange <span style="color:#00007F;">As</span> Range<br />
<span style="color:#00007F;">Dim</span> vSplitedArr <span style="color:#00007F;">As</span> <span style="color:#00007F;">Variant</span><br />
<span style="color:#00007F;">Dim</span> arRetArr() <span style="color:#00007F;">As</span> <span style="color:#00007F;">Variant</span>, lArrBnd <span style="color:#00007F;">As</span> <span style="color:#00007F;">Long</span>, i <span style="color:#00007F;">As</span> <span style="color:#00007F;">Long</span></span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">On</span></span><span style="font-family: Courier;"> <span style="color:#00007F;">Error</span> <span style="color:#00007F;">GoTo</span> flip_Error</span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">Set</span></span><span style="font-family: Courier;"> myrange = Range(Selection.Address)<br />
Arr = myrange <span style="color:#007F00;">&#8216;store the selected values in an array</span></span></p>
<p><span style="color:#007F00;"><span style="font-family: Courier;">&#8216;split the selected cells address to an array</span></span><span style="font-family: Courier;"><br />
vSplitedArr = Split(Selection.Address, &#8220;$&#8221;)</span></p>
<p><span style="color:#007F00;"><span style="font-family: Courier;">&#8216; check if Column names are same</span></span><span style="font-family: Courier;"><br />
<span style="color:#00007F;">If</span> vSplitedArr(1) = vSplitedArr(3) <span style="color:#00007F;">Then</span><br />
lArrBnd = <span style="color:#00007F;">UBound</span>(Arr, 1)<br />
<span style="color:#00007F;">ReDim</span> arRetArr(lArrBnd, 0)<br />
<span style="color:#00007F;">For</span> i = 0 <span style="color:#00007F;">To</span> lArrBnd &#8211; 1<br />
<span style="color:#007F00;">&#8216;flip the array</span><br />
arRetArr(i, 0) = Arr(lArrBnd &#8211; i, 1)<br />
<span style="color:#00007F;">Next</span> i<br />
Range(Selection.Address) = arRetArr<br />
<span style="color:#007F00;">&#8216;check if Row numbers are same</span><br />
<span style="color:#00007F;">ElseIf</span> Replace(vSplitedArr(2), &#8220;:&#8221;, &#8220;&#8221;) = vSplitedArr(4) <span style="color:#00007F;">Then</span><br />
lArrBnd = <span style="color:#00007F;">UBound</span>(Arr, 2)<br />
<span style="color:#00007F;">ReDim</span> arRetArr(0, lArrBnd)<br />
<span style="color:#00007F;">For</span> i = 0 <span style="color:#00007F;">To</span> lArrBnd &#8211; 1<br />
<span style="color:#007F00;">&#8216;flip the array</span><br />
arRetArr(0, i) = Arr(1, lArrBnd &#8211; i)<br />
<span style="color:#00007F;">Next</span> i<br />
Range(Selection.Address) = arRetArr<br />
<span style="color:#00007F;">Else</span><br />
MsgBox &#8220;Your selection contains multiple rows or columns.&#8221; &amp; vbCrLf &amp; _<br />
&#8220;This macro will only work on either one column or one row&#8221;, vbCritical, &#8220;Flip Error&#8221;<br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">If</span></span></p>
<p><span style="color:#00007F;"><span style="font-family: Courier;">On</span></span><span style="font-family: Courier;"> Error <span style="color:#00007F;">GoTo</span> 0<br />
SmoothExit_flip:<br />
Exit <span style="color:#00007F;">Sub</span></span></p>
<p><span style="font-family: Courier;">flip_Error:<br />
MsgBox &#8220;Error &#8221; &amp; Err.Number &amp; &#8221; (&#8221; &amp; Err.Description &amp; &#8220;) in procedure flip&#8221;<br />
<span style="color:#00007F;">Resume</span> SmoothExit_flip<br />
<span style="color:#00007F;">End</span> <span style="color:#00007F;">Sub</span><br />
</span></div>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2005/03/30/flip-row-or-column/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Description of the limitations for working with arrays in Excel 2000, Excel 2002, and Excel 2003</title>
		<link>http://nandeshwar.info/2005/03/27/description-of-the-limitations-for-working-with-arrays-in-excel-2000-excel-2002-and-excel-2003/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=description-of-the-limitations-for-working-with-arrays-in-excel-2000-excel-2002-and-excel-2003</link>
		<comments>http://nandeshwar.info/2005/03/27/description-of-the-limitations-for-working-with-arrays-in-excel-2000-excel-2002-and-excel-2003/#comments</comments>
		<pubDate>Sun, 27 Mar 2005 16:21:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cells]]></category>
		<category><![CDATA[MINVERSE]]></category>
		<category><![CDATA[VALUE]]></category>

		<guid isPermaLink="false">http://a7n9.wordpress.com/2005/03/27/description-of-the-limitations-for-working-with-arrays-in-excel-2000-excel-2002-and-excel-2003/</guid>
		<description><![CDATA[Check the following link, it provides limitations of using array formulas in Excel. Description of the limitations for working with arrays in Excel 2000, Excel 2002, and Excel 2003 Note The following are helpful facts to remember about the functions. ? If any cells in an array are empty or contain text, MINVERSE returns the [...]]]></description>
			<content:encoded><![CDATA[<p>Check the following link, it provides limitations of using array formulas in Excel.<br />
<br /><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;166342">Description of the limitations for working with arrays in Excel 2000, Excel 2002, and Excel 2003</a><br />
<br />Note The following are helpful facts to remember about the functions.<br />
<br />? If any cells in an array are empty or contain text, MINVERSE returns the #VALUE! error value.<br />
<br />? MINVERSE also returns the #VALUE! error value if the array does not have an equal number of rows and columns.<br />
<br />? MINVERSE returns the #VALUE! error if the returned array exceeds 52 columns by 52 rows.<br />
<br />? The MMULT function returns #VALUE! if the output exceeds 5460 cells.<br />
<br />? The MDETERM function returns #VALUE! if the returned array is larger than 73 rows by 73 columns.<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://nandeshwar.info/2005/03/27/description-of-the-limitations-for-working-with-arrays-in-excel-2000-excel-2002-and-excel-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

