<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"> <channel><title>Get Digital Help</title> <link>http://www.get-digital-help.com</link> <description>Quality excel resource</description> <lastBuildDate>Wed, 22 May 2013 07:44:37 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/GetDigitalHelp" /><feedburner:info uri="getdigitalhelp" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>GetDigitalHelp</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/GetDigitalHelp" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsalloy.com/?rss=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.newsalloy.com/subrss3.gif">Subscribe with NewsAlloy</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://hub.netomat.net/account/account.autoSubscribe.jspa?urls=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.netomat.net/blogger/images/icon_netomat_feedbutton.gif">Subscribe with netomat Hub</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2FGetDigitalHelp" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item><title>How to use excel SUMPRODUCT function</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/OSpeyZU7Aoc/</link> <comments>http://www.get-digital-help.com/2013/05/21/how-to-use-excel-sumproduct-function/#comments</comments> <pubDate>Tue, 21 May 2013 13:44:18 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Functions]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13874</guid> <description><![CDATA[SUMPRODUCT(array1,array2,array3, ...) Multiplies corresponding components in the given arrays, and returns the sum of those products. What does that mean? I´ll demonstrate with a few examples. Example 1 - The basics Formula in cell B7: =SUMPRODUCT(B2:B4, C2:C4) Step 1  - Multiplying corresponding components in the given arrays The first array is in cell range B2:B4 [...]]]></description> <content:encoded><![CDATA[<p><b>SUMPRODUCT</b>(<b>array1</b>,array2,array3, ...)</p><p><em>Multiplies corresponding components in the given arrays, and returns the sum of those products.</em></p><p>What does that mean? I´ll demonstrate with a few examples.</p><h3>Example 1 - The basics</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function1.png"><img
class="alignnone size-full wp-image-13961" alt="SUMPRODUCT function1" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function1.png" width="440" height="205" /></a></p><p><strong>Formula in cell B7:</strong></p><div
id="code1">=SUMPRODUCT(B2:B4, C2:C4)</div><p><em><strong>Step 1  - Multiplying corresponding components in the given arrays</strong></em></p><p
style="padding-left: 30px;">The first array is in cell range B2:B4 and the second array is in cell range C2:C4.</p><p
style="padding-left: 30px;">B2:B4*C2:C4</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{1;2;3} * {4;5;6}</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{1*4; 2*5; 3*6}</p><p
style="padding-left: 30px;">and returns {4; 10; 18}. The same calculations are done in column D and shown in column E, see above picture.</p><p><em><strong>Step 2 - Return the sum of those products</strong></em></p><p
style="padding-left: 30px;">{4; 10; 18}</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">4 + 10 + 18</p><p
style="padding-left: 30px;">and returns 32 in cell B7. The same calculation is done E5, the sum of the products in cell range E2:E4 is calculated in cell E5. See above picture.</p><p>Now you know the basics. Let´s move on to something more interesting!</p><h3>Example 2 - Use a logical expression</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function2.png"><img
class="alignnone size-full wp-image-13966" alt="SUMPRODUCT function2" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function2.png" width="456" height="185" /></a></p><p><strong>Formula in cell G4:</strong></p><div
id="code1">=SUMPRODUCT(--(B2:B6=$G$2))</div><p><em><strong>Step 1  - Multiplying corresponding components in the given arrays</strong></em></p><p
style="padding-left: 30px;">There is only one array in this formula but something else is distorting the picture. A comparison operator (equal sign) and a second cell value (G2) or a comparison value. With these we have now built a logical expression. This means that the value in cell G2 is compared to all the values in cell range B2:B6 (not case sensitive).</p><p
style="padding-left: 30px;">B2:B6=$G$2</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{"Alaska";"California";"Arizona";"California";"Colorado"}="California"</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">{FALSE;TRUE;FALSE;TRUE;FALSE}.</p><p
style="padding-left: 30px;">They are all boolean values and excel can´t sum these values. We have to convert the values to numerical values. There are a few options, you can:</p><ul
style="padding-left: 30px;"><li
style="padding-left: 30px;">Add a zero - (B2:B6=$G$2)+0</li><li
style="padding-left: 30px;">Multiply with 1 - (B2:B6=$G$2)*1</li><li
style="padding-left: 30px;">Double negative signs  --(B2:B6=$G$2)</li></ul><p
style="padding-left: 30px;">They all convert boolean values to numerical values.</p><p
style="padding-left: 30px;">--( {FALSE;TRUE;FALSE;TRUE;FALSE})</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{0;1;0;1;0}</p><p><em><strong>Step 2 - Return the sum of those products</strong></em></p><p
style="padding-left: 30px;">{0;1;0;1;0}</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">0 + 1 + 0 + 1 + 0</p><p
style="padding-left: 30px;">and returns 2 in cell G4. There are two cells containing the value "California" in cell range B2:B6. You accomplish the same thing using the <a
href="http://www.get-digital-help.com/2013/03/27/countif-function/">countif function</a> or count multiple values in different columns using the <a
href="http://www.get-digital-help.com/2013/04/07/countifs-function/">countifs function</a>. In fact, you can <a
href="http://www.get-digital-help.com/2011/01/17/count-unique-distinct-records-in-excel-2007/">count entire records in a table</a>.</p><h3>Example 3 - Use multiple logical expressions</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function3.png"><img
class="alignnone size-full wp-image-13980" alt="SUMPRODUCT function3" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function3.png" width="586" height="267" /></a></p><p><strong>Formula in cell D10:</strong></p><div
id="code1">=SUMPRODUCT(--(B2:B8=B10), --(C2:C8=C10),D2:D8)</div><p>This formula contains three arrays, you can use up to 30 arrays. You can make the formula somewhat shorter:</p><div
id="code1">=SUMPRODUCT((B2:B8=B10)*(C2:C8=C10)*D2:D8)</div><p>This allows you to have a lot more expressions, if you like. It is only the available computer memory that is the limit. The formula looks like an array formula but don´t be fooled, you are not required to enter it as an array formula.</p><p><em><strong>Step 1  - Multiplying corresponding components in the given arrays</strong></em></p><p
style="padding-left: 30px;">(B2:B8=B10)*(C2:C8=C10)*D2:D8</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">({FALSE; TRUE; FALSE; TRUE; FALSE; TRUE; FALSE})*({FALSE; FALSE; FALSE; TRUE; FALSE; TRUE; FALSE})*{10; 20; 40; 10; 20; 30; 10}</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{0;0;0;1;0;1;0}*{10; 20; 40; 10; 20; 30; 10}</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">{0; 0; 0; 10; 0; 30; 0}</p><p><em><strong>Step 2 - Return the sum of those products</strong></em></p><p
style="padding-left: 30px;">{0; 0; 0; 10; 0; 30; 0}</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">10 +30</p><p
style="padding-left: 30px;">and returns 40 in cell D10.</p><h3>Example 4 - Use multiple logical expressions and mathematical operators</h3><p>Mathematical operators between arrays allows you to do more complicated calculations, like this:</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function4.png"><img
class="alignnone size-full wp-image-13982" alt="SUMPRODUCT function4" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SUMPRODUCT-function4.png" width="588" height="267" /></a></p><p><strong>Formula in cell D10:</strong></p><div
id="code1">=SUMPRODUCT(((B2:B8=B10)+(C2:C8=C10))*D2:D8)</div><p>These expressions check if California is found in cell range B2:B8 or Las Vegas is found in cell range C2:C8. They are found in row 3, 5,7 and 8. The sumproduct function sums the corresponding values in column D and returns 70 in cell D10. 20+10+30+10 equals 70.</p><h3>Download excel *.xlsx file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Sumproduct-function.xlsx">Sumproduct function.xlsx</a><em
id="__mceDel"> </em></p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/OSpeyZU7Aoc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/05/21/how-to-use-excel-sumproduct-function/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/05/21/how-to-use-excel-sumproduct-function/</feedburner:origLink></item> <item><title>Count students</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/ZhjBv7JzEWk/</link> <comments>http://www.get-digital-help.com/2013/05/16/count-students/#comments</comments> <pubDate>Thu, 16 May 2013 08:57:33 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Compare]]></category> <category><![CDATA[Count values]]></category> <category><![CDATA[Excel]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13919</guid> <description><![CDATA[Kiishore asks Hi Oscar, I have the following issues. Any suggestions. Sheet 1 : Grade Male Female Primary Secondary High School College Gender Sheet 2 : Col A : Student Id Col B: Gender : Here we specify whether the student is male or female Col C : Here we specify category to which the [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.get-digital-help.com/2011/06/13/auto-refresh-a-pivot-table-in-excel/#comment-54349">Kiishore asks</a></p><p>Hi Oscar,<br
/> I have the following issues. Any suggestions.</p><p>Sheet 1 :<br
/> Grade Male Female<br
/> Primary<br
/> Secondary<br
/> High School<br
/> College<br
/> Gender</p><p>Sheet 2 :<br
/> Col A : Student Id<br
/> Col B: Gender : Here we specify whether the student is male or female<br
/> Col C : Here we specify category to which the student falls : Primary, secondary, high school, college<br
/> Col D : Age : To which age they are in</p><p>Problem :</p><p>In Sheet 1,<br
/> # I should give the count of students who are male and are in<br
/> * primary and they are between 4 to 6 years.<br
/> * Count of Secondary students and between 6 to 10 years ...</p><p># I should give the count of students who are female and in<br
/> * primary and they are between 4 to 6 years.<br
/> * Count of Secondary students and between 6 to 10 years</p><p>Kindly let me know of any specific formula e that I can use.</p><h3>Answer</h3><p><em><strong>Sheet 2 - Example data</strong></em></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/count-students-sheet2.png"><img
class="alignnone size-full wp-image-13931" alt="count students - sheet2" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/count-students-sheet2.png" width="330" height="295" /></a></p><p><em><strong>Sheet 1 - Count students</strong></em></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/count-students-sheet1.png"><img
class="alignnone size-full wp-image-13932" alt="count students - sheet1" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/count-students-sheet1.png" width="313" height="162" /></a></p><p><strong>Formula in cell B2:</strong></p><div
id="code1">=SUMPRODUCT(($A2=Sheet2!$C$2:$C$169)*(B$1=Sheet2!$B$2:$B$169))</div><p>You can copy this formula to cell range B2:C5. The formula takes advantage of both absolute and relative cell references . For this to work, copy the cell, not the formula in the cell or formula bar.</p><p><em>Example,</em></p><ol><li><span
style="line-height: 13px;">Select cell B2</span></li><li>Copy cell B2 (Ctrl + c)</li><li>Select cell range B2:C5</li><li>Paste (Ctrl + v)</li></ol><p>Read more about <a
href="http://www.get-digital-help.com/2010/06/10/absolute-and-relative-references-in-excel/">absolute and relative cell references</a></p><p><strong>Formula in cell B6:</strong></p><div
id="code1">=SUMPRODUCT((B$1=Sheet2!$B$2:$B$169)*1)</div><p>If you are familiar with array formulas, use this array formula in cell B6:</p><div
id="code1">=SUM((B$1=Sheet2!$B$2:$B$169)*1)</div><p>The formula is smaller but needs to be entered as an array formula.</p><p><strong>How to enter an array formula</strong></p><ol><li><span
style="line-height: 13px;">Select cell B6</span></li><li>Paste formula to formula bar<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2009/04/formula-bar.png"><img
class="alignnone size-full wp-image-12554" style="border: 1px solid black; margin-top: 15px; margin-bottom: 15px;" alt="formula bar" src="http://cdn.get-digital-help.com/wp-content/uploads/2009/04/formula-bar.png" width="490" height="219" /></a></li><li>Press and hold CTRL + SHIFT</li><li>Press Enter simultaneously</li><li>Release all keys</li></ol><p>If you did it right, the formula now begins and ends with curly brackets, like this:</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/count-students1.png"><img
class="alignnone size-full wp-image-13936" alt="count students1" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/count-students1.png" width="505" height="186" /></a></p><h3>Explaining formula in cell B2</h3><div
id="code1">=SUMPRODUCT(($A2=Sheet2!$C$2:$C$169)*(B$1=Sheet2!$B$2:$B$169))</div><p><em><strong>Step 1 - Compare value in cell A2 (sheet1) to values in cell range C2:C169 (sheet2)</strong></em></p><p
style="padding-left: 30px;">$A2=Sheet2!$C$2:$C$169</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">"Primary"={"College"; "College"; "High school"; ... ; "Secondary"}</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">{FALSE; FALSE; FALSE; ... ; FALSE}</p><p><em><strong>Step 2 - Compare value in cell B1 (sheet1) to values in cell range B2:B169 (sheet2)</strong></em></p><p
style="padding-left: 30px;">B$1=Sheet2!$B$2:$B$169</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">"Male"={"Male"; "Female"; "Male"; ... ; "Female"}</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">{"TRUE"; "FALSE"; "TRUE"; ... ; "FALSE"}</p><p><em><strong>Step 3 - Multiplying arrays</strong></em></p><p
style="padding-left: 30px;">($A2=Sheet2!$C$2:$C$169)*(B$1=Sheet2!$B$2:$B$169)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">("Primary"={"College"; "College"; "High school"; ... ; "Secondary"})*("Male"={"Male"; "Female"; "Male"; ... ; "Female"})</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">({FALSE; FALSE; FALSE; ... ; FALSE})*({"TRUE"; "FALSE"; "TRUE"; ... ; "FALSE"})</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">({0; 0; 0; ... ; 0})</p><p><em><strong>Step 4 - Sum all values in the array</strong></em></p><p
style="padding-left: 30px;">=SUMPRODUCT(($A2=Sheet2!$C$2:$C$169)*(B$1=Sheet2!$B$2:$B$169))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=SUMPRODUCT({0; 0; 0; ... ; 0})</p><p
style="padding-left: 30px;">and returns 5 in cell B2.</p><h3>Explaining formula in cell B6</h3><div
id="code1">=SUMPRODUCT((B$1=Sheet2!$B$2:$B$169)*1)</div><p><em><strong>Step 1 - Compare value in cell B1 (sheet1) to values in cell range B2:B169 (sheet2)</strong></em></p><p
style="padding-left: 30px;">B$1=Sheet2!$B$2:$B$169</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">"Male"={"Male"; "Female"; "Male"; .. ; "Female"}</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">{"TRUE"; "FALSE"; "TRUE"; .. ; "FALSE"}</p><p><em><strong>Step 2 - Convert boolean values to numerical values</strong></em></p><p
style="padding-left: 30px;">SUMPRODUCT function (and the sum function) can´t sum boolean values (TRUE, FALSE). Multiplying with 1 converts TRUE to 1 and FALSE to 0.</p><p
style="padding-left: 30px;">(B$1=Sheet2!$B$2:$B$169)*1</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{"TRUE"; "FALSE"; "TRUE"; .. ; "FALSE"}*1</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">{1; 0; 1; .. ; 0}</p><p><em><strong>Step 3 - Sum values</strong></em></p><p
style="padding-left: 30px;">SUMPRODUCT((B$1=Sheet2!$B$2:$B$169)*1)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">SUMPRODUCT({1; 0; 1; .. ; 0})</p><p
style="padding-left: 30px;">and returns 71 in cell B6.</p><h3>More to note</h3><p>You can also use the SUMIF and SUMIFS function to count values. See this post:<br
/> <a
href="http://www.get-digital-help.com/2009/11/16/sum-values-between-two-dates-with-criteria-in-excel/">Sum values between two dates with criteria</a></p><h3>Download excel *.xlsx file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Count-students.xlsx">Count students.xlsx</a></p><h3>Functions in this post</h3><p><strong>SUMPRODUCT(</strong>array1, array2, <strong>)</strong><br
/> Returns the sum of the products of the corresponding ranges or arrays</p><p><strong>SUM(</strong>number1,[number2],<strong>)<br
/> </strong>Adds all the numbers in a range of cells</p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/ZhjBv7JzEWk" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/05/16/count-students/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/05/16/count-students/</feedburner:origLink></item> <item><title>Use a map in an excel chart</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/RVCWWazNkgA/</link> <comments>http://www.get-digital-help.com/2013/05/14/use-a-map-in-an-excel-chart/#comments</comments> <pubDate>Tue, 14 May 2013 07:44:57 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Charts]]></category> <category><![CDATA[Drop down lists]]></category> <category><![CDATA[Excel]]></category> <category><![CDATA[table]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13843</guid> <description><![CDATA[This post describes how to add a map (background picture) to a chart. The following animated picture shows a scatter chart with a background picture. A drop down list let´s you select a city and the chart displays the location. Step 1 - Insert a scatter chart Go to "Insert" tab on the ribbon Click [...]]]></description> <content:encoded><![CDATA[<p>This post describes how to add a map (background picture) to a chart. The following animated picture shows a scatter chart with a background picture. A drop down list let´s you select a city and the chart displays the location.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/map-in-a-chart6.gif"><img
class="alignnone size-full wp-image-13877" alt="map in a chart6" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/map-in-a-chart6.gif" width="614" height="384" /></a></p><h3>Step 1 - Insert a scatter chart</h3><ol><li><span
style="line-height: 13px;">Go to "Insert" tab on the ribbon</span></li><li>Click "Scatter" button</li><li>Click "Scatter with only markers" button</li></ol><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/insert-scatter-chart.png"><img
class="alignnone size-full wp-image-13888" alt="insert scatter chart" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/insert-scatter-chart.png" width="680" height="320" /></a></p><h3>Step 2 - Create a drop down list</h3><ol><li><span
style="line-height: 13px;">Select cell B14</span></li><li>Go to tab "Data" on the ribbon</li><li>Click "Data Validation" button</li><li>Go to "Settings" tab</li><li>Select "List"</li><li>Select source range: B3:B10</li><li>Click OK</li></ol><p><img
class="alignnone size-full wp-image-13892" alt="create a drop down list" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/create-a-drop-down-list2.png" width="680" height="442" /></p><p><strong>Formula in cell C14:</strong></p><div
id="code1">=INDEX(C3:C10,MATCH($B$14,$B$3:$B$10,0))</div><p><strong>Formula in cell D14:</strong></p><div
id="code1">=INDEX(D3:D10,MATCH($B$14,$B$3:$B$10,0))</div><h3>Step 3 - Select chart data source</h3><ol><li><span
style="line-height: 13px;">Right click on chart</span></li><li>Click "Select Data"</li><li>Click "Add" button<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/select-data-source.png"><img
class="alignnone size-full wp-image-13881" style="margin-top: 15px; margin-bottom: 15px;" alt="select data source" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/select-data-source.png" width="587" height="316" /></a></li><li>Select name, x value and y value.<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/edit-chart-series.png"><img
class="alignnone size-full wp-image-13882" style="border: 1px solid black; margin-top: 15px; margin-bottom: 15px;" alt="edit chart series" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/edit-chart-series.png" width="575" height="191" /></a></li><li>Click Ok.</li></ol><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/scatter-chart.png"><img
class="alignnone size-full wp-image-13898" style="border: 1px solid black;" alt="scatter chart" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/scatter-chart.png" width="603" height="306" /></a></p><h3>Step 4 - Insert a background picture</h3><ol><li><span
style="line-height: 13px;">Right click on chart</span></li><li>Click "Format Plot Area..."</li><li>Click "Fill"</li><li>Select "Picture or texture fill"</li><li>Click "File..." button</li><li>Select a picture</li><li>Click "Insert"</li><li>If you like, change "Transparency" value</li><li>Click "Close"</li></ol><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Format-plot-area.png"><img
class="alignnone size-full wp-image-13899" alt="Format plot area" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Format-plot-area.png" width="488" height="540" /></a></p><h3>Step 5 - Chart settings</h3><ol><li><span
style="line-height: 13px;">Delete Legend and chart titel<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-title-and-legend.png"><img
class="alignnone size-full wp-image-13909" style="margin-top: 15px; margin-bottom: 15px;" alt="chart title and legend" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-title-and-legend.png" width="361" height="300" /></a><br
/> </span></li><li>Delete chart grid lines<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-gridlines.png"><img
class="alignnone size-full wp-image-13910" style="margin-top: 15px; margin-bottom: 15px;" alt="chart gridlines" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-gridlines.png" width="368" height="300" /></a></li><li>Change x and y axis minimum and maximum value to 0 and 100<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-x-y-axis.png"><img
class="alignnone size-full wp-image-13911" style="margin-top: 15px; margin-bottom: 15px;" alt="chart x y axis" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-x-y-axis.png" width="361" height="300" /></a></li><li>Make sure x and y coordinates in the table are ok<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/x-y-coordinates-table.png"><img
class="alignnone size-full wp-image-13908" style="margin-top: 15px; margin-bottom: 15px;" alt="x y coordinates table" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/x-y-coordinates-table.png" width="208" height="183" /></a></li><li>If you like, delete x and y axis<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-without-x-y-axis.png"><img
class="alignnone size-full wp-image-13912" style="margin-top: 15px; margin-bottom: 15px;" alt="chart without x y axis" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-without-x-y-axis.png" width="361" height="300" /></a></li><li>Select data series on the chart<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-select-data-series.png"><img
class="alignnone size-full wp-image-13914" style="margin-top: 15px; margin-bottom: 15px;" alt="chart select data series" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/chart-select-data-series.png" width="361" height="300" /></a></li><li>Right click on data series</li><li>Click "Format Data Series..."<br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Format-data-series.png"><img
class="alignnone size-full wp-image-13902" style="margin-top: 15px; margin-bottom: 15px;" alt="Format data series" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Format-data-series.png" width="488" height="541" /></a></li><li>Click "Marker Options"</li><li>Select "Built-in"</li><li>Select a type</li><li>Click "Marker Fill"</li><li>Select "Solid fill"</li><li>Pick a color</li><li>Click Close</li></ol><h3>Final notes</h3><p>First I thought of using longitude and latitude coordinates but I gave that up really quickly. The map is downloaded from <a
href="http://commons.wikimedia.org/wiki/File:Europe_map.png">Wikimedia Commons</a>.</p><p><strong>Tip!</strong> You can add a data label and use the series name to show the city name on the map.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Format-data-label.png"><img
class="alignnone size-full wp-image-13906" alt="Format data label" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Format-data-label.png" width="364" height="330" /></a></p><h3>Download excel *.xlsx file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Maps-in-a-xy-scatter-chart.xlsx">Maps in a xy scatter chart.xlsx</a></p><h3>Functions in this post</h3><p><a
href="http://www.get-digital-help.com/2013/03/15/index-function-explained/"><strong>INDEX(</strong>array,row_num,[column_num]<strong>)</strong></a><br
/> Returns a value or reference of the cell at the intersection of a particular row and column, in a given range</p><p><a
href="http://www.get-digital-help.com/2013/03/20/match-function/"><strong>MATCH(</strong>lookup_value;lookup_array; [match_type])</a><br
/> Returns the relative position of an item in an array that matches a specified value</p><p>&nbsp;</p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/RVCWWazNkgA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/05/14/use-a-map-in-an-excel-chart/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/05/14/use-a-map-in-an-excel-chart/</feedburner:origLink></item> <item><title>SEARCH and FIND functions</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/9aLSKAsFJ6Y/</link> <comments>http://www.get-digital-help.com/2013/05/06/search-and-find-functions/#comments</comments> <pubDate>Mon, 06 May 2013 12:02:27 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Functions]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13854</guid> <description><![CDATA[SEARCH function Returns the number of the character at which a specific character or text string is found reading left to rigt (not case-sensitive) SEARCH(find_text,within_text, [start_num]) Arguments find_text - Is the text you want to find. ? and * wildcard characters are allowed. within_text - is the text in which you want to search for [...]]]></description> <content:encoded><![CDATA[<p><strong>SEARCH function</strong><br
/> Returns the number of the character at which a specific character or text string is found reading left to rigt (not case-sensitive)</p><p>SEARCH(<em>find_text</em>,<em>within_text</em>, [<em>start_num</em>])</p><p><em><strong>Arguments</strong></em></p><p><em>find_text</em> - Is the text you want to find. ? and * wildcard characters are allowed.</p><p><em>within_text</em> - is the text in which you want to search for<em> find_text</em></p><p><em>start_num - </em>is the character number in within_text, counting from the left at which you want to start searching. Optional, if omitted 1 is used.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SEARCH-function1.png"><img
class="alignnone size-full wp-image-13857" alt="SEARCH function" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SEARCH-function1.png" width="640" height="289" /></a></p><p><strong>Formula in cell C5:</strong></p><div
id="code1">=SEARCH($D$5, B5)</div><p>The function returns 11 in cell C5. Text string "blue" is found and begins in the 11-th character in "My car is blue". See cell range F5:S6.</p><p>I am using a absolute cell reference to cell D5 so I can copy the function to cell C11 without changing the argument. If you are interested in how absolute and relative cell references work, read this post:  <a
href="http://www.get-digital-help.com/2010/06/10/absolute-and-relative-references-in-excel/">Absolute and relative cell references</a></p><p><strong>Formula in cell C11:</strong></p><div
id="code1">=SEARCH($D$5, B5)</div><p>becomes</p><p>=SEARCH("blue","My car is white")</p><p>and returns #VALUE!. Text string "blue" is not found in "My car is white".</p><p><strong>FIND function</strong><br
/> The function works the same as the search function except case-sensitive.</p><h3>SEARCH function returns an array</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SEARCH-function-array-formula1.png"><img
class="alignnone size-full wp-image-13869" alt="SEARCH function array formula" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/SEARCH-function-array-formula1.png" width="640" height="289" /></a></p><p><strong>Array formula in cell B5:B9: </strong></p><div
id="code1">=SEARCH($C$5,A5:A9)</div><p>becomes</p><p>=SEARCH("is", {"My car is blue"; "My car is white"; "My house is grey"; "My bird was green"; "My dog is here"})</p><p>and returns {8; 8; 10; #VALUE!; 8} in cell range B5:B9. I have highlighted the beginning character in cell range D5:T9.</p><h3>Download excel *.xlsx file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Search-and-Find-functions.xlsx">Search and Find functions.xlsx</a></p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/9aLSKAsFJ6Y" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/05/06/search-and-find-functions/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/05/06/search-and-find-functions/</feedburner:origLink></item> <item><title>Yet another excel calendar</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/uE7ZoCqln6k/</link> <comments>http://www.get-digital-help.com/2013/05/03/yet-another-excel-calendar/#comments</comments> <pubDate>Fri, 03 May 2013 08:19:00 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[vba]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13815</guid> <description><![CDATA[The first sheet contains an overview. You have the option to select a year, date and color. Days with many "events" have a darker color, days with less "events" have a lighter color. The window to the right shows all events for the selected day. Double clicking on a month takes you to sheet "Month". Double clicking on [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/yeac4.gif"><img
class="alignnone size-full wp-image-13818" alt="yeac4" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/yeac4.gif" width="680" height="672" /></a></p><p>The first sheet contains an overview. You have the option to select a year, date and color. Days with many "events" have a darker color, days with less "events" have a lighter color.</p><p>The window to the right shows all events for the selected day. Double clicking on a month takes you to sheet "Month". Double clicking on a date takes you to sheet "Day".</p><h3>Sheet Month</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/excel-calendar2.png"><img
class="alignnone  wp-image-13819" alt="excel calendar2" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/excel-calendar2.png" width="762" height="395" /></a></p><p>(Click to view a larger image)</p><p>You can quickly jump between months and years using the top two rows. The first four "events" are shown in each date. Select a date and all events are displayed in the window to the right.</p><p>Double clicking on a date takes you to sheet "Day"</p><h3>Sheet Day</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/excel-calendar3.png"><img
class="alignnone size-full wp-image-13821" alt="excel calendar3" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/excel-calendar3.png" width="665" height="449" /></a></p><p>Here you can select a date in the top right calendar, you also select an hour and the corresponding event is shown in the window to the right.</p><p>Double click an event and you will be taken to sheet "Table" and the corresponding row. Likewise, if you double click an empty cell, a new row is created with date and time, see picture below.</p><h3>Sheet Table</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/excel-calendar4.png"><img
class="alignnone size-full wp-image-13823" alt="excel calendar4" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/excel-calendar4.png" width="680" height="521" /></a></p><h3>Download excel *.xlsm file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/05/Yet-another-excel-calendar.xlsm">Yet another excel calendar.xlsm</a></p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/uE7ZoCqln6k" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/05/03/yet-another-excel-calendar/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/05/03/yet-another-excel-calendar/</feedburner:origLink></item> <item><title>MMULT function – Matrix multiplication</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/3bg58orH4FE/</link> <comments>http://www.get-digital-help.com/2013/04/26/mmult-function-matrix-multiplication/#comments</comments> <pubDate>Fri, 26 Apr 2013 09:15:17 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Functions]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13769</guid> <description><![CDATA[MMULT(array1, array2) Returns the matrix product of two arrays, an array as the same number of rows as array1 and columns as array2. This function must be entered as an array formula. The following examples demonstrates how the function works. Example 1 Array1 (B2:C3) has 2 rows and array2 (E2:F3) has 2 columns, the returning [...]]]></description> <content:encoded><![CDATA[<p><strong>MMULT(</strong><em>array1</em>, <em>array2</em><strong>)</strong><br
/> Returns the matrix product of two arrays, an array as the same number of rows as array1 and columns as array2.</p><p>This function must be entered as an array formula.</p><p>The following examples demonstrates how the function works.</p><h3>Example 1</h3><p>Array1 (B2:C3) has <strong>2</strong> rows and array2 (E2:F3) has <strong>2</strong> columns, the returning array has <strong>2</strong> rows and <strong>2</strong> columns.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/MMULT1.png"><img
class="alignnone size-full wp-image-13796" alt="MMULT1" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/MMULT1.png" width="579" height="266" /></a></p><p><strong>Array formula in cell range L8:M9:</strong></p><div
id="code1">=MMULT(B8:C9,E8:F9)</div><p>Cell L8: a₁₁*b₁₁+a₁₂*b₂₁ becomes 0*0+1*1 and returns 1</p><p>Cell L9: a₂₁*b₁₁+a₂₂*b₂₁ becomes 1*0+0*1 and returns 0</p><p>Cell M8: a₁₁*b₁₂+a₁₂*b₂₂ becomes 0*1+1*0 and returns 0</p><p>Cell M9: a₂₁*b₁₂+a₂₂*b₂₂ becomes 1*1+0*0 and returns 1</p><h3><span
style="font-size: 1.17em;">Example 2</span></h3><p>Array1 (B2:C4) has <strong>3</strong> rows and array2 (E2:G3) has <strong>3</strong> columns, the returning array has <strong>3</strong> rows and <strong>3</strong> columns.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/MMULT21.png"><img
class="alignnone size-full wp-image-13800" alt="MMULT2" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/MMULT21.png" width="680" height="259" /></a></p><p><strong>Array formula in cell range L8:M9:</strong></p><div
id="code1">=MMULT(B8:C10,E8:G9)</div><p>Cell M8: a₁₁*b₁₁+a₁₂*b₂₁ becomes 0*1+1*4 and returns 4</p><p>Cell M9: a₂₁*b₁₁+a₂₂*b₂₁ becomes -4*1+0*4 and returns -4</p><p>Cell M10: a₃₁*b₁₁+a₃₂*b₂₁ becomes 3*1+1*4 and returns 7</p><p>Cell N8: a₁₁*b₁₂+a₁₂*b₂₂ becomes 0*2+1*-5 and returns -5</p><p>Cell N9: a₂₁*b₁₂+a₂₂*b₂₂ becomes -4*2+0*-5 and returns -8</p><p>Cell N10: a₃₁*b₁₂+a₃₂*b₂₂ becomes 3*2+1*-5 and returns 1</p><p>Cell O8: a₁₁*b₁₃+a₁₂*b₂₃ becomes 0*3+1*-6 and returns -6</p><p>Cell O9: a₂₁*b₁₃+a₂₂*b₂₃ becomes -4*3+0*-6 and returns -12</p><p>Cell O10: a₃₁*b₁₃+a₃₂*b₂₃ becomes 3*3+1*-6 and returns 3</p><h3>Example 3</h3><p>Array1 (B2:D3) has <strong>2</strong> rows and array2 (F2:G4) has <strong>2</strong> columns, the returning array has <strong>2</strong> rows and <strong>2</strong> columns.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/MMULT3.png"><img
class="alignnone size-full wp-image-13805" alt="MMULT3" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/MMULT3.png" width="645" height="241" /></a></p><p><strong>Array formula in cell range L8:M9:</strong></p><p>=MMULT(B8:D9,F8:G10)</p><p>Cell L8: a₁₁*b₁₁+a₁₂*b₂₁+a₁₃*b₃₁ becomes 1*0+2*-4+3*3 and returns 1</p><p>Cell L9: a₂₁*b₁₁+a₂₂*b₂₁+a₂₃*b₃₁ becomes 4*0+-5*-4+-6*3 and returns 2</p><p>Cell M8: a₁₁*b₁₂+a₁₂*b₂₂+a₁₃*b₃₂ becomes 1*1+2*0+3*1 and returns 4</p><p>Cell M9: a₂₁*b₁₂+a₂₂*b₂₂+a₂₃*b₃₂ becomes 4*1+-5*0+-6*1 and returns -2</p><h3>Download excel *.xlsx file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/MMULT.xlsx">MMULT.xlsx</a></p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/3bg58orH4FE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/04/26/mmult-function-matrix-multiplication/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/04/26/mmult-function-matrix-multiplication/</feedburner:origLink></item> <item><title>SMALL function and LARGE function</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/UxsoyYH1sX4/</link> <comments>http://www.get-digital-help.com/2013/04/23/small-function-and-large-function/#comments</comments> <pubDate>Tue, 23 Apr 2013 13:25:29 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Functions]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13731</guid> <description><![CDATA[SMALL(array, k) Returns the k-th smallest value in a data set. LARGE(array, k) Returns the k-th largest value in a data set. Arguments array - Is a reference to a cell range or is an array of constants. k - The position in the array of the value to return. Example 1 - Cell range contains [...]]]></description> <content:encoded><![CDATA[<p><strong><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/SMALL2.png"><img
class="size-full wp-image-13773 alignright" alt="SMALL2" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/SMALL2.png" width="242" height="132" /></a>SMALL(</strong><em>array</em>, <em>k</em><strong>)</strong></p><p>Returns the k-th smallest value in a data set.</p><p><strong>LARGE(</strong><em>array</em>, <em>k</em><strong>)</strong></p><p>Returns the k-th largest value in a data set.</p><p><em><strong>Arguments</strong></em></p><p>array - Is a reference to a cell range or is an array of constants.</p><p>k - The position in the array of the value to return.</p><h3>Example 1 - Cell range contains numbers, text and blanks</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/SMALL1.png"><img
class="alignnone size-full wp-image-13770" alt="SMALL1" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/SMALL1.png" width="416" height="327" /></a></p><div
id="code1">=SMALL(B3:B10, 3)</div><p>becomes</p><p>=SMALL({3; 6; "A"; 5; "X"; 0; 4; 4},3)</p><p>Text strings and blanks are overlooked. The array becomes</p><p>=SMALL({3; 6; ; 5; ; ; 4; 4},3)</p><p>and returns 4. 4 is the third smallest numerical value in the array.</p><h3>Example 2 - Use a condition (Array formula)</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/SMALL3.png"><img
class="alignnone size-full wp-image-13776" alt="SMALL3" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/SMALL3.png" width="590" height="346" /></a></p><p>The following array formula looks for the second smallest value in column C if corresponding value in adjacent column D is 2012-Dec:</p><div
id="code1">=SMALL(IF(B4:B14=F3, C4:C14, ""), F4)</div><p>becomes</p><p>=SMALL(IF({"2013-Jan"; "2012-Dec"; "2013-Jan"; "2012-Dec"; "2012-Nov"; "2013-Jan"; "2013-Jan"; "2012-Dec"; "2013-Jan"; "2012-Nov"; "2012-Dec"}="2012-Dec", C4:C14, ""), F4)</p><p>becomes</p><p>=SMALL(IF({FALSE;TRUE;FALSE;TRUE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE;TRUE}, C4:C14, ""), F4)</p><p>becomes</p><p>=SMALL({"";60.69;"";8.08;"";"";"";24.44;"";"";2.25}, 2)</p><p>and returns 8.08 in cell F7.</p><h3>Download excel *.xlsx file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/SMALL-and-LARGE-function.xlsx">SMALL and LARGE function.xlsx</a></p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/UxsoyYH1sX4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/04/23/small-function-and-large-function/feed/</wfw:commentRss> <slash:comments>6</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/04/23/small-function-and-large-function/</feedburner:origLink></item> <item><title>Copy/Rename a file (excel vba)</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/CHmlgDwDwjw/</link> <comments>http://www.get-digital-help.com/2013/04/19/copyrename-a-file-excel-vba/#comments</comments> <pubDate>Fri, 19 Apr 2013 12:07:08 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[vba]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13715</guid> <description><![CDATA[The code below is tested in Excel 2010, Windows 7. Copy a file Copy and rename a file Rename a file List files in a folder List files in a folders and sub-folders List files in a folder and subfolders Download excel *.xlsm file Copy rename files (excel vba).xlsm]]></description> <content:encoded><![CDATA[<p>The code below is tested in Excel 2010, Windows 7.</p><h3>Copy a file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/copyfile.png"><img
class="alignnone size-full wp-image-13734" alt="copyfile" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/copyfile.png" width="350" height="240" /></a></p><pre class="brush: vb; title: ; notranslate">
Sub CopyFile()
Dim src As String, dst As String, fl As String
'Source directory
src = Range(&quot;B3&quot;)
'Destination directory
dst = Range(&quot;D3&quot;)
'File name
fl = Range(&quot;B6&quot;)
On Error Resume Next
    FileCopy src &amp; &quot;\&quot; &amp; fl, dst &amp; &quot;\&quot; &amp; fl
    If Err.Number &lt;&gt; 0 Then
        MsgBox &quot;Copy error: &quot; &amp; src &amp; &quot;\&quot; &amp; fl
    End If
On Error GoTo 0
End Sub
</pre><h3>Copy and rename a file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/copyrenamefilevba.png"><img
class="alignnone size-full wp-image-13736" alt="copyrenamefilevba" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/copyrenamefilevba.png" width="350" height="240" /></a></p><pre class="brush: vb; title: ; notranslate">
Sub CopyRenameFile()
Dim src As String, dst As String, fl As String
Dim rfl As String
'Source directory
src = Range(&quot;B3&quot;)
'Destination directory
dst = Range(&quot;D3&quot;)
'File name
fl = Range(&quot;B6&quot;)
'Rename file
rfl = Range(&quot;D6&quot;)
On Error Resume Next
    FileCopy src &amp; &quot;\&quot; &amp; fl, dst &amp; &quot;\&quot; &amp; rfl
    If Err.Number &lt;&gt; 0 Then
        MsgBox &quot;Copy error: &quot; &amp; src &amp; &quot;\&quot; &amp; rfl
    End If
On Error GoTo 0
End Sub
</pre><h3>Rename a file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/rename-file-vba.png"><img
class="alignnone size-full wp-image-13737" alt="rename-file-vba" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/rename-file-vba.png" width="350" height="240" /></a></p><pre class="brush: vb; title: ; notranslate">
Sub RenameFile()
Dim src As String, dst As String, fl As String
Dim rfl As String
'Folder
src = Range(&quot;B3&quot;)
'File name
fl = Range(&quot;B6&quot;)
'Rename file
rfl = Range(&quot;D6&quot;)
On Error Resume Next
    Name src &amp; &quot;\&quot; &amp; fl As src &amp; &quot;\&quot; &amp; rfl
    If Err.Number &lt;&gt; 0 Then
        MsgBox &quot;Error: &quot; &amp; src &amp; &quot;\&quot; &amp; rfl
    End If
On Error GoTo 0
End Sub
</pre><h3>List files in a folder</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/listfilesfoldervba.png"><img
src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/listfilesfoldervba.png" alt="listfilesfoldervba" width="350" height="300" class="alignnone size-full wp-image-13748" /></a></p><pre class="brush: vb; title: ; notranslate">
Sub ListFilesinFolder()
Dim Value As String
Dim strt As Range
Set strt = Range(&quot;B6&quot;)
Value = Dir(Range(&quot;B3&quot;), &amp;H1F)
Do Until Value = &quot;&quot;
If Value &lt;&gt; &quot;.&quot; And Value &lt;&gt; &quot;..&quot; Then
    strt = Value
    Set strt = strt.Offset(1, 0)
End If
Value = Dir
Loop
End Sub
</pre><h3>List files in a folders and sub-folders</h3><p><a
href="http://www.get-digital-help.com/2011/06/29/excel-recursive-udf-list-files-in-a-folder-and-subfolders/">List files in a folder and subfolders</a></p><h3>Download excel *.xlsm file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/Copy-rename-files-excel-vba.xlsm">Copy rename files (excel vba).xlsm</a></p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/CHmlgDwDwjw" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/04/19/copyrename-a-file-excel-vba/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/04/19/copyrename-a-file-excel-vba/</feedburner:origLink></item> <item><title>Assign each person with randomly unique objects as a daily activity</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/rTqrlFnaNXg/</link> <comments>http://www.get-digital-help.com/2013/04/17/assign-each-person-with-randomly-unique-objects-as-a-daily-activity/#comments</comments> <pubDate>Wed, 17 Apr 2013 07:12:06 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Random]]></category> <category><![CDATA[Unique distinct values]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13684</guid> <description><![CDATA[Vijay asks:  I've 30 objects and 10 people, and I need to assign each person with randomly (unique) selected objects as a daily activity. Would you please suggest me on how I can do it using excel formulae? Answer: The objects are unique within that day. It means that a person can get the same [...]]]></description> <content:encoded><![CDATA[<p><strong>Vijay <a
href="http://www.get-digital-help.com/2009/07/03/how-to-create-a-random-list-of-unique-numbers-in-excel/#comment-54102">asks</a>: </strong></p><p>I've 30 objects and 10 people, and I need to assign each person with randomly (unique) selected objects as a daily activity. Would you please suggest me on how I can do it using excel formulae?</p><p><strong>Answer:</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/Assign-each-person-with-randomly-unique-selected-objects-as-a-daily-activity1.png"><img
class="alignnone size-full wp-image-13722" alt="Assign each person with randomly (unique) selected objects as a daily activity" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/Assign-each-person-with-randomly-unique-selected-objects-as-a-daily-activity1.png" width="456" height="544" /></a></p><p>The objects are unique within that day. It means that a person can get the same object next day if unlucky. If this is not what you are looking for, let me know.</p><p>The array formula in cell C3:C32 returns a random unique value every time you press F9. The objects are in column F.  The table does not need to be sorted by date.</p><p><strong>Array formula in cell C3:</strong></p><div
id="code1">=INDEX($F$3:$F$32, LARGE((COUNTIFS($C$2:C2, $F$3:$F$32, $A$2:A2,A3)=0)*MATCH(ROW($F$3:$F$32), ROW($F$3:$F$32)), RANDBETWEEN(1, 31-COUNTIF($A$2:A3, A3))))</div><p><strong>How to enter an array formula</strong></p><ol><li><span
style="line-height: 13px;">Select cell C3</span></li><li>Copy/Paste above array formula to formula bar</li><li>Press and hold CTRL + SHIFT</li><li>Press ENTER</li></ol><h3>Explaining array formula in cell C3</h3><p><em><strong>Step 1 - Calculate possible objects</strong></em></p><p
style="padding-left: 30px;">COUNTIFS($C$2:C2, $F$3:$F$32, $A$2:A2,A3)=0</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0}=0</p><p
style="padding-left: 30px;">and returns</p><p
style="padding-left: 30px;">{TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE}</p><p
style="padding-left: 30px;">All objects can be randomly selected. If there had been previous object that day they would have been ruled out.</p><p><em><strong>Step 2 - Calculate row numbers</strong></em></p><p
style="padding-left: 30px;">(COUNTIFS($C$2:C2, $F$3:$F$32, $A$2:A2,A3)=0)*MATCH(ROW($F$3:$F$32), ROW($F$3:$F$32))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">{TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE; TRUE}*{1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24; 25; 26; 27; 28; 29; 30}</p><p
style="padding-left: 30px;">and returns {1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24; 25; 26; 27; 28; 29; 30}</p><p><em><strong>Step 3 - Return a random number</strong></em></p><p
style="padding-left: 30px;">RANDBETWEEN(1, 31-COUNTIF($A$2:A3, A3))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">RANDBETWEEN(1, 31-1)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">RANDBETWEEN(1, 30)</p><p><em><strong>Step 4 - Return the k-th largest number</strong></em></p><p
style="padding-left: 30px;">LARGE(array, k)</p><p
style="padding-left: 30px;">LARGE((COUNTIFS($C$2:C2, $F$3:$F$32, $A$2:A2,A3)=0)*MATCH(ROW($F$3:$F$32), ROW($F$3:$F$32)), RANDBETWEEN(1, 31-COUNTIF($A$2:A3, A3)))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">LARGE({1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24; 25; 26; 27; 28; 29; 30}, RANDBETWEEN(1, 30))</p><p
style="padding-left: 30px;">and returns a random row number between 1 and 30.</p><p><em><strong>Step 5 - Return a value</strong></em></p><p
style="padding-left: 30px;">=INDEX($F$3:$F$32, LARGE((COUNTIFS($C$2:C2, $F$3:$F$32, $A$2:A2,A3)=0)*MATCH(ROW($F$3:$F$32), ROW($F$3:$F$32)), RANDBETWEEN(1, 31-COUNTIF($A$2:A3, A3))))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=INDEX($F$3:$F$32, <em>random_row_number</em>)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=INDEX({"A"; "B"; "C"; "D"; "E"; "F"; "G"; "H"; "I"; "J"; "K"; "L"; "M"; "N"; "O"; "P"; "Q"; "R"; "S"; "T"; "U"; "V"; "X"; "Y"; "Z"; "AA"; "BB"; "CC"; "DD"; "EE"}, <em>random_row_number</em>)</p><p
style="padding-left: 30px;">and returns a random object.</p><h3>Download excel *.xlsx file</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/Assign-each-person-with-randomly-unique-selected-objects-as-a-daily-activity.xlsx">Assign each person with randomly (unique) selected objects as a daily activity.xlsx</a></p><p>&nbsp;</p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/rTqrlFnaNXg" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/04/17/assign-each-person-with-randomly-unique-objects-as-a-daily-activity/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/04/17/assign-each-person-with-randomly-unique-objects-as-a-daily-activity/</feedburner:origLink></item> <item><title>ROW function explained</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/R_PLwE5ZRSU/</link> <comments>http://www.get-digital-help.com/2013/04/15/row-function-explained/#comments</comments> <pubDate>Mon, 15 Apr 2013 12:57:22 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Functions]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=13669</guid> <description><![CDATA[ROW(reference) Returns the row number of a reference. You can enter a reference to a single cell or a cell range. The ROW function returns an array of numbers if you enter a reference to a cell range. Remember to enter the formula as an array formula. The reference argument is optional. Enter =ROW() in a [...]]]></description> <content:encoded><![CDATA[<p><strong>ROW(</strong>reference<strong>)</strong><br
/> Returns the row number of a reference.</p><p>You can enter a <a
href="http://www.get-digital-help.com/2010/06/10/absolute-and-relative-references-in-excel/">reference</a> to a single cell or a cell range. The ROW function returns an array of numbers if you enter a reference to a cell range. Remember to enter the formula as an array formula.</p><p>The reference argument is optional. Enter =ROW() in a cell and a reference to the cell itself is used. Example, =ROW() in cell F4 returns 4.</p><p>The first example demonstrates basic usage. Example 2 and 3 are more advanced and requires some knowledge about MATCH and INDEX function.</p><h3>Example 1</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/row-function-11.png"><img
class="alignnone size-full wp-image-13689" alt="row function 1" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/row-function-11.png" width="449" height="281" /></a></p><p>A cell reference can be relative or absolute or a combination of relative and absolute.</p><p><a
title="View this post, &quot;Absolute and relative references in excel&quot;" href="http://www.get-digital-help.com/2010/06/10/absolute-and-relative-references-in-excel/">Absolute and relative references in excel</a></p><p>In cell B2: =ROW(B2) returns 2.</p><p>In cell B6: =ROW() returns 6</p><p>In cell B11: =ROW($D$10) returns 10 (absolute cell reference).</p><h3>Example 2 - Duplicate columns in an array</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/row-function-2.png"><img
class="alignnone size-full wp-image-13687" alt="row function 2" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/row-function-2.png" width="356" height="221" /></a></p><p>In cell range B3:B5:</p><div
id="code1">=ROW($C$3:$D$5)</div><p>returns {3; 4; 5}</p><p>Now you might wonder why the array formula doesn´t return {3, 3; 4, 4; 5, 5}. There are six cells in the cell range, how come only three values are returned?</p><p>The answer is that there is no need for multiple <strong>duplicate</strong> columns in the array. Excel simplifies the array down to a single column. But when used with multiple cell ranges in more complicated array formulas, make sure the number of rows match. See this example: <a
href="http://www.get-digital-help.com/2009/03/16/unique-values-from-multiple-columns-using-array-formulas/">Unique distinct values from a cell range</a></p><h3>Example 3 - Row numbering a cell range</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/row-function-3.png"><img
class="alignnone size-full wp-image-13693" alt="row function 3" src="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/row-function-3.png" width="424" height="201" /></a></p><p>The <a
href="http://www.get-digital-help.com/2013/03/15/index-function-explained/">INDEX function</a> returns a value of the cell at the intersection of a particular row and column, in a given range. To be able to work with multiple values from an arbitrary cell range using the INDEX function we must <strong>number each row</strong>. That is exactly what we did in the previous example but the first row in a given range has to be 1 and the second 2 and so on. Why? The INDEX function needs properly numbered cell ranges.</p><p>This is where the ROW and <a
href="http://www.get-digital-help.com/2013/03/20/match-function/">MATCH function</a> comes in.</p><div
id="code1">=MATCH(ROW(cell_range), ROW(cell_range))</div><p>The beauty with this formula is that it row numbers any cell range with any size.</p><p><strong>In this example, the cell range is C3:D5:</strong></p><div
id="code1">=MATCH(ROW(C3:D5), ROW(C3:D5))</div><p>becomes =MATCH({3; 4; 5}, {3; 4; 5}) and returns {1; 2; 3}.</p><p>Remember, enter the formula as an array formula.</p><p><strong>So what can you do with row numbered cell ranges?</strong></p><ul><li><span
style="line-height: 13px;"><a
title="View this post, &quot;How to return multiple values using vlookup in excel&quot;" href="http://www.get-digital-help.com/2009/10/25/how-to-return-multiple-values-using-vlookup-in-excel/">How to return multiple values using vlookup</a><br
/> </span></li><li><a
href="http://www.get-digital-help.com/2010/02/11/match-two-criteria-and-return-multiple-rows-in-excel/">Match two criteria and return multiple rows in excel</a></li></ul><p><strong>The MATCH function can also be used to find the relative position of a value in a cell range. See these posts:</strong></p><ul><li><span
style="line-height: 13px;"><a
href="http://www.get-digital-help.com/2009/03/30/how-to-extract-a-unique-list-and-the-duplicates-in-excel-from-one-column/#uniquedistinct">How to extract unique distinct values from a column</a><br
/> </span></li><li><a
title="View this post, &quot;Repeat values&quot;" href="http://www.get-digital-help.com/2013/01/18/repeat-values/">Repeat values</a></li><li><a
title="View this post, &quot;Fetch data from another table&quot;" href="http://www.get-digital-help.com/2012/09/03/fetch-data-from-another-table/">Fetch data from another table</a></li><li><a
href="http://www.get-digital-help.com/2012/08/17/shift-schedule/">Shift Schedule</a></li></ul><h3>Download example file:</h3><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2013/04/ROW-function.xlsx">ROW function.xlsx</a></p> <img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/R_PLwE5ZRSU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2013/04/15/row-function-explained/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2013/04/15/row-function-explained/</feedburner:origLink></item> </channel> </rss><!-- Dynamic page generated in 0.725 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-05-22 13:16:42 -->
