<?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>Tue, 22 May 2012 06:09:14 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</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>Lookup multiple values in different columns and return a single value</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/LaxdSOFmRc4/</link> <comments>http://www.get-digital-help.com/2012/05/22/lookup-multiple-values-in-different-columns-and-return-a-single-value/#comments</comments> <pubDate>Tue, 22 May 2012 06:09:14 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Search/Lookup]]></category> <category><![CDATA[Vlookup]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=11234</guid> <description><![CDATA[S.Babu asks: Dear Oscar, I m working on the below table. ORDER MODEL MATERIAL QTY STATUS BOM a s6 1 COMPLETED BOM b c6 2 NOT COMPLETED BOM c s6 1 COMPLETED DEL d c6 3 NOT COMPLETED EXP a a8 4 IN PROGRESS DEL b d2 5 COMPLETED DEL c c6 4 NOT COMPLETED [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2010/12/20/excel-udf-lookup-and-return-multiple-values-concatenated-into-one-cell/' rel='bookmark' title='Permanent Link: Excel udf: Lookup and return multiple values concatenated into one cell'>Excel udf: Lookup and return multiple values concatenated into one cell</a></li><li><a
href='http://www.get-digital-help.com/2010/01/10/vlookup-of-three-columns-to-pull-a-single-record/' rel='bookmark' title='Permanent Link: Vlookup of three columns to pull a single record'>Vlookup of three columns to pull a single record</a></li><li><a
href='http://www.get-digital-help.com/2010/04/07/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel-part-2/' rel='bookmark' title='Permanent Link: Lookup values in a range using two or more criteria and return multiple matches in excel, part 2'>Lookup values in a range using two or more criteria and return multiple matches in excel, part 2</a></li><li><a
href='http://www.get-digital-help.com/2010/04/05/explaining-a-formula-lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/' rel='bookmark' title='Permanent Link: Explaining a formula: Lookup values in a range using two or more criteria and return multiple matches in excel'>Explaining a formula: Lookup values in a range using two or more criteria and return multiple matches in excel</a></li><li><a
href='http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/' rel='bookmark' title='Permanent Link: Lookup values in a range using two or more criteria and return multiple matches in excel'>Lookup values in a range using two or more criteria and return multiple matches in excel</a></li></ol>]]></description> <content:encoded><![CDATA[<p><strong><a
href="http://www.get-digital-help.com/2010/02/11/match-two-criteria-and-return-multiple-rows-in-excel/comment-page-2/#comment-51827">S.Babu asks:</a><br
/> </strong></p><div
id="code1">Dear Oscar,<br
/> I m working on the below table.<br
/> ORDER MODEL MATERIAL QTY STATUS<br
/> BOM a s6 1 COMPLETED<br
/> BOM b c6 2 NOT COMPLETED<br
/> BOM c s6 1 COMPLETED<br
/> DEL d c6 3 NOT COMPLETED<br
/> EXP a a8 4 IN PROGRESS<br
/> DEL b d2 5 COMPLETED<br
/> DEL c c6 4 NOT COMPLETED<br
/> DEL d s6 7 NOT COMPLETED<br
/> DEL e c6 8 NOT COMPLETED<br
/> DEL r a8 1 COMPLETED<br
/> EXP g d1 5 COMPLETED<br
/> EXP r c6 9 COMPLETED<br
/> EXP t a8 2 COMPLETED<br
/> EXP a c6 1 NOT COMPLETED<br
/> EXP b s6 9 COMPLETED<br
/> EXP c c6 1 NOT COMPLETED<br
/> EXP d a8 4 NOT COMPLETED<br
/> I need the status column to be vlooked up on another file by comparing all the remaining 4 columns.(the sheet to be updated carries the 4 columns not in the same order as in the original sheet.. its mixed).. Pls help me with dis..<br
/> Thanks<br
/> S.Babu</div><p><strong>Answer:</strong></p><p>Sheet2</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Lookup-multiple-values-in-different-columns.png"><img
class="alignnone size-full wp-image-11236" title="Lookup multiple values in different columns" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Lookup-multiple-values-in-different-columns.png" alt="" width="435" height="352" /></a></p><p><strong>Array formula in cell E2:</strong></p><div
id="code1">=INDEX(Sheet1!$E$2:$E$18, MATCH(1, COUNTIFS(Sheet2!A2, Sheet1!$D$2:$D$18, Sheet2!B2, Sheet1!$B$2:$B$18, Sheet2!C2, Sheet1!$C$2:$C$18, Sheet2!D2, Sheet1!$A$2:$A$18), 0))</div><p><strong>How to create an array formula</strong></p><ol><li>Select cell E2</li><li>Paste array formula</li><li>Press and hold Ctrl + Shift</li><li>Press Enter</li></ol><p><strong>How to copy array formula</strong></p><ol><li>Select cell E2</li><li>Copy cell (Ctrl + c)</li><li>Select cell E3:E20</li><li>Paste (Ctrl + v)</li></ol><p><strong>Download excel *.xlsx file</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/SBabu.xlsx">SBabu.xlsx</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2010/12/20/excel-udf-lookup-and-return-multiple-values-concatenated-into-one-cell/' rel='bookmark' title='Permanent Link: Excel udf: Lookup and return multiple values concatenated into one cell'>Excel udf: Lookup and return multiple values concatenated into one cell</a></li><li><a
href='http://www.get-digital-help.com/2010/01/10/vlookup-of-three-columns-to-pull-a-single-record/' rel='bookmark' title='Permanent Link: Vlookup of three columns to pull a single record'>Vlookup of three columns to pull a single record</a></li><li><a
href='http://www.get-digital-help.com/2010/04/07/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel-part-2/' rel='bookmark' title='Permanent Link: Lookup values in a range using two or more criteria and return multiple matches in excel, part 2'>Lookup values in a range using two or more criteria and return multiple matches in excel, part 2</a></li><li><a
href='http://www.get-digital-help.com/2010/04/05/explaining-a-formula-lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/' rel='bookmark' title='Permanent Link: Explaining a formula: Lookup values in a range using two or more criteria and return multiple matches in excel'>Explaining a formula: Lookup values in a range using two or more criteria and return multiple matches in excel</a></li><li><a
href='http://www.get-digital-help.com/2010/01/03/lookup-values-in-a-range-using-two-or-more-criteria-and-return-multiple-matches-in-excel/' rel='bookmark' title='Permanent Link: Lookup values in a range using two or more criteria and return multiple matches in excel'>Lookup values in a range using two or more criteria and return multiple matches in excel</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/LaxdSOFmRc4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/05/22/lookup-multiple-values-in-different-columns-and-return-a-single-value/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/05/22/lookup-multiple-values-in-different-columns-and-return-a-single-value/</feedburner:origLink></item> <item><title>Learn how to return values depending on udf deployment (vba)</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/sesb_-qBRb8/</link> <comments>http://www.get-digital-help.com/2012/05/21/learn-how-to-return-values-depending-on-udf-deployment-vba/#comments</comments> <pubDate>Mon, 21 May 2012 13:57:13 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[User defined functions (udf)]]></category> <category><![CDATA[vba]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=11218</guid> <description><![CDATA[In this vba tutorial I am going to show you how to create a simple udf. It removes blank cells and transposes values depending on your selection. BasicUDF(range) removes blank cells. The values are returned horizontally and #N/A are returned when there are no more values. User defined function BasicUDF1(range) also removes blank cells. Values [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/04/21/excel-udf-combine-cell-ranges-into-a-single-range-while-eliminating-blanks/' rel='bookmark' title='Permanent Link: Excel udf: Combine cell ranges into a single range while eliminating blanks'>Excel udf: Combine cell ranges into a single range while eliminating blanks</a></li><li><a
href='http://www.get-digital-help.com/2011/05/03/excel-udf-filter-unique-distinct-values-case-sensitive/' rel='bookmark' title='Permanent Link: Excel udf: Filter unique distinct values (case sensitive)'>Excel udf: Filter unique distinct values (case sensitive)</a></li><li><a
href='http://www.get-digital-help.com/2011/06/29/excel-recursive-udf-list-files-in-a-folder-and-subfolders/' rel='bookmark' title='Permanent Link: Excel recursive udf: List files in a folder and subfolders'>Excel recursive udf: List files in a folder and subfolders</a></li><li><a
href='http://www.get-digital-help.com/2011/11/02/extract-unique-distinct-values-from-a-filtered-table-udf-and-array-formula/' rel='bookmark' title='Permanent Link: Extract unique distinct values from a filtered table (udf and array formula)'>Extract unique distinct values from a filtered table (udf and array formula)</a></li><li><a
href='http://www.get-digital-help.com/2011/09/14/excel-udf-reorganize-data/' rel='bookmark' title='Permanent Link: Excel udf: Reorganize data'>Excel udf: Reorganize data</a></li></ol>]]></description> <content:encoded><![CDATA[<p>In this vba tutorial I am going to show you how to create a simple udf. It removes blank cells and transposes values depending on your selection.</p><p>BasicUDF(range) removes blank cells.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF.gif"><img
class="alignnone size-full wp-image-11223" title="Remove blanks UDF" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF.gif" alt="" width="548" height="280" /></a></p><p>The values are returned horizontally and #N/A are returned when there are no more values.</p><p><strong>User defined function</strong></p><pre class="brush: vb; title: ; notranslate">
Function BasicUDF(Rng As Range)
Dim Cell As Variant
'Create an array
Dim temp() As Variant
ReDim temp(0)
'Process every cell in Range
For Each Cell In Rng
    'Check if cell is empty
    If Cell &lt;&gt; &quot;&quot; Then
        'Copy cell value to the last value in array
        temp(UBound(temp)) = Cell
        'Increase array size with 1
        ReDim Preserve temp(UBound(temp) + 1)
    End If
Next Cell
'Remove the last value in array
ReDim Preserve temp(UBound(temp) - 1)
'Return values
BasicUDF = temp
End Function
</pre><p>BasicUDF1(range) also removes blank cells.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF1.gif"><img
class="alignnone size-full wp-image-11228" title="Remove blanks UDF1" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF1.gif" alt="" width="548" height="280" /></a></p><p>Values are transposed vertically.</p><p><strong>User defined function</strong></p><pre class="brush: vb; title: ; notranslate">
Function BasicUDF1(Rng As Range)
Dim Cell As Variant
'Create an array
Dim temp() As Variant
ReDim temp(0)
'Process every cell in Range
For Each Cell In Rng
    'Check if cell is empty
    If Cell &lt;&gt; &quot;&quot; Then
        'Copy cell value to the last value in array
        temp(UBound(temp)) = Cell
        'Increase array size with 1
        ReDim Preserve temp(UBound(temp) + 1)
    End If
Next Cell
'Remove the last value in array
ReDim Preserve temp(UBound(temp) - 1)
'Transpose temp array from horizontal to vertical and return values to sheet
BasicUDF1 = Application.Transpose(temp)
End Function
</pre><p>BasicUDF2(range) removes blank cells.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF2.gif"><img
class="alignnone size-full wp-image-11229" title="Remove blanks UDF2" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF2.gif" alt="" width="548" height="280" /></a></p><p>Values are transposed vertically, #N/A are now replaced with blank cells.</p><p><strong>User defined function</strong></p><pre class="brush: vb; title: ; notranslate">
Function BasicUDF2(Rng As Range)
Dim Cell As Variant
Dim row As Single
'Create an array
Dim temp() As Variant
ReDim temp(0)
'Process every cell in Range
For Each Cell In Rng
    'Check if cell is empty
    If Cell &lt;&gt; &quot;&quot; Then
        'Copy cell value to the last value in array
        temp(UBound(temp)) = Cell
        'Increase array size with 1
        ReDim Preserve temp(UBound(temp) + 1)
    End If
Next Cell
'Add remaining blanks to array
For row = UBound(temp) To Application.Caller.Rows.Count
    temp(UBound(temp)) = &quot;&quot;
    ReDim Preserve temp(UBound(temp) + 1)
Next row
'Remove last blank
ReDim Preserve temp(UBound(temp) - 1)
'Transpose temp array from horizontal to vertical and return values to sheet
BasicUDF2 = Application.Transpose(temp)
End Function
</pre><p>BasicUDF3(range) removes blank cells.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF3.gif"><img
class="alignnone size-full wp-image-11231" title="Remove blanks UDF3" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Remove-blanks-UDF3.gif" alt="" width="548" height="280" /></a></p><p>Values are transposed to fill the entire selection, #N/A are replaced with blank cells.</p><p><strong>User defined function</strong></p><pre class="brush: vb; title: ; notranslate">
Function BasicUDF3(Rng As Range)
Dim Cell As Variant
Dim row, i As Single
'Create an array
Dim temp() As Variant
'Dim array with same size as selection
ReDim temp(Application.Caller.Columns.Count - 1, 0)
i = 0
'Process every cell in Range
For Each Cell In Rng
    'Check if cell is empty
    If Cell &lt;&gt; &quot;&quot; Then
        'Copy cell value to the last value in array
        temp(i, UBound(temp, 2)) = Cell
        i = i + 1
        'Add a new row to the array
        If i = Application.Caller.Columns.Count Then
            i = 0
            ReDim Preserve temp(UBound(temp, 1), UBound(temp, 2) + 1)
        End If
    End If
Next Cell
'Process remaining cells in selection
Do
    'Every remaining value is &quot;&quot;
    temp(i, UBound(temp, 2)) = &quot;&quot;
    'Current column number
    i = i + 1
    'Check if current column is equal to the number of columns in selection
    If i = Application.Caller.Columns.Count Then
        'Start over at column 1 (0)
        i = 0
        'Add a new row in array
        ReDim Preserve temp(UBound(temp, 1), UBound(temp, 2) + 1)
    End If
Loop Until UBound(temp, 2) &gt; Application.Caller.Rows.Count - 1
'Remove last row in array
ReDim Preserve temp(UBound(temp, 1), UBound(temp, 2) - 1)
'Return values
BasicUDF3 = Application.Transpose(temp)
End Function
</pre><p><strong>Download excel *.xlsm file</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/udf-basics.xlsm">udf basics.xlsm</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/04/21/excel-udf-combine-cell-ranges-into-a-single-range-while-eliminating-blanks/' rel='bookmark' title='Permanent Link: Excel udf: Combine cell ranges into a single range while eliminating blanks'>Excel udf: Combine cell ranges into a single range while eliminating blanks</a></li><li><a
href='http://www.get-digital-help.com/2011/05/03/excel-udf-filter-unique-distinct-values-case-sensitive/' rel='bookmark' title='Permanent Link: Excel udf: Filter unique distinct values (case sensitive)'>Excel udf: Filter unique distinct values (case sensitive)</a></li><li><a
href='http://www.get-digital-help.com/2011/06/29/excel-recursive-udf-list-files-in-a-folder-and-subfolders/' rel='bookmark' title='Permanent Link: Excel recursive udf: List files in a folder and subfolders'>Excel recursive udf: List files in a folder and subfolders</a></li><li><a
href='http://www.get-digital-help.com/2011/11/02/extract-unique-distinct-values-from-a-filtered-table-udf-and-array-formula/' rel='bookmark' title='Permanent Link: Extract unique distinct values from a filtered table (udf and array formula)'>Extract unique distinct values from a filtered table (udf and array formula)</a></li><li><a
href='http://www.get-digital-help.com/2011/09/14/excel-udf-reorganize-data/' rel='bookmark' title='Permanent Link: Excel udf: Reorganize data'>Excel udf: Reorganize data</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/sesb_-qBRb8" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/05/21/learn-how-to-return-values-depending-on-udf-deployment-vba/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/05/21/learn-how-to-return-values-depending-on-udf-deployment-vba/</feedburner:origLink></item> <item><title>Select a cell in a table and the chart updates automatically (vba)</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/fzgX-Dd8cWI/</link> <comments>http://www.get-digital-help.com/2012/05/19/select-a-cell-in-a-table-and-the-chart-updates-automatically-vba/#comments</comments> <pubDate>Sat, 19 May 2012 08:24:57 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Charts]]></category> <category><![CDATA[Excel]]></category> <category><![CDATA[vba]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=11205</guid> <description><![CDATA[The following vba code makes it possible to automatically update a chart when you click a cell in a table. See animated gif. You can also select multiple cells in the table (Press and hold Ctrl when selecting cells). Vba code Right click on sheet name: Sheet1 Left click on "View Code" Copy/Paste vba code [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/11/04/excel-vba-filter-a-table-using-the-selection-change-event/' rel='bookmark' title='Permanent Link: Excel vba: Filter a table using the selection change event'>Excel vba: Filter a table using the selection change event</a></li><li><a
href='http://www.get-digital-help.com/2011/12/02/change-chart-data-range-using-a-drop-down-list-vba/' rel='bookmark' title='Permanent Link: Change chart data range using a drop down list (vba)'>Change chart data range using a drop down list (vba)</a></li><li><a
href='http://www.get-digital-help.com/2011/10/24/excel-vba-populate-a-combobox-with-values-from-a-pivot-table/' rel='bookmark' title='Permanent Link: Excel vba: Populate a combobox with values from a pivot table'>Excel vba: Populate a combobox with values from a pivot table</a></li><li><a
href='http://www.get-digital-help.com/2011/04/26/how-to-create-a-dynamic-pivot-table-and-refresh-automatically-in-excel-2007/' rel='bookmark' title='Permanent Link: How to create a dynamic pivot table and refresh automatically in excel'>How to create a dynamic pivot table and refresh automatically in excel</a></li><li><a
href='http://www.get-digital-help.com/2011/11/29/change-pivot-table-data-source-using-a-drop-down-list/' rel='bookmark' title='Permanent Link: Change pivot table data source using a drop down list'>Change pivot table data source using a drop down list</a></li></ol>]]></description> <content:encoded><![CDATA[<p>The following vba code makes it possible to automatically update a chart when you click a cell in a table.</p><p>See animated gif.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Select-column-and-update-chart.gif"><img
class="alignnone size-full wp-image-11206" title="Select column and update chart" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Select-column-and-update-chart.gif" alt="" width="552" height="412" /></a></p><p>You can also select multiple cells in the table (Press and hold Ctrl when selecting cells).</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Select-column-and-update-chart2.gif"><img
src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Select-column-and-update-chart2.gif" alt="" title="Select column and update chart2" width="552" height="412" class="alignnone size-full wp-image-11210" /></a></p><p><strong>Vba code</strong></p><pre class="brush: vb; title: ; notranslate">
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim ACell As Range
Dim ActiveCellInTable As Boolean
Dim c As Single
Dim str As String
'Iterate every cell in selection
For Each ACell In Target
    'Don´t stop if an error occurs
    On Error Resume Next
    'If selected cell is in a table and the table name is Table1, save TRUE in ActiveCellInTable (boolean)
    ActiveCellInTable = (ACell.ListObject.Name = &quot;Table1&quot;)
    'Resume normal error handling (stop if an error occurs)
    On Error GoTo 0
    If ActiveCellInTable = True Then
        'Save cell reference (First column in table) if str is empty
        If str = &quot;&quot; Then str = &quot;Table1[[#ALL],&quot; &amp; ACell.ListObject.Range.Cells(1, 1).Value &amp; &quot;]&quot;
        'Calculate selected cell's column number in table
        c = ACell.Column - ACell.ListObject.Range.Cells(1, 1).Column + 1
        'Check if column number is above 1
        If c &gt; 1 Then
            'Add cell reference
            str = str &amp; &quot;,&quot; &amp; &quot;Table1[[#ALL],&quot; &amp; ACell.ListObject.Range.Cells(1, c).Value &amp; &quot;]&quot;
            'Change &quot;Chart 1&quot; data source
            ChartObjects(&quot;Chart 1&quot;).Chart.SetSourceData Source:=Range(str)
        End If
    End If
Next ACell
End Sub
</pre><ol><li>Right click on sheet name: Sheet1</li><li>Left click on "View Code"</li><li>Copy/Paste vba code to module</li><li>Return to excel</li></ol><p><strong>Download excel *.xlsm file</strong><br
/> <a
href='http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Select-a-cell-in-a-table-to-update-a-chart.xlsm'>Select a cell in a table to update a chart.xlsm</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/11/04/excel-vba-filter-a-table-using-the-selection-change-event/' rel='bookmark' title='Permanent Link: Excel vba: Filter a table using the selection change event'>Excel vba: Filter a table using the selection change event</a></li><li><a
href='http://www.get-digital-help.com/2011/12/02/change-chart-data-range-using-a-drop-down-list-vba/' rel='bookmark' title='Permanent Link: Change chart data range using a drop down list (vba)'>Change chart data range using a drop down list (vba)</a></li><li><a
href='http://www.get-digital-help.com/2011/10/24/excel-vba-populate-a-combobox-with-values-from-a-pivot-table/' rel='bookmark' title='Permanent Link: Excel vba: Populate a combobox with values from a pivot table'>Excel vba: Populate a combobox with values from a pivot table</a></li><li><a
href='http://www.get-digital-help.com/2011/04/26/how-to-create-a-dynamic-pivot-table-and-refresh-automatically-in-excel-2007/' rel='bookmark' title='Permanent Link: How to create a dynamic pivot table and refresh automatically in excel'>How to create a dynamic pivot table and refresh automatically in excel</a></li><li><a
href='http://www.get-digital-help.com/2011/11/29/change-pivot-table-data-source-using-a-drop-down-list/' rel='bookmark' title='Permanent Link: Change pivot table data source using a drop down list'>Change pivot table data source using a drop down list</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/fzgX-Dd8cWI" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/05/19/select-a-cell-in-a-table-and-the-chart-updates-automatically-vba/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/05/19/select-a-cell-in-a-table-and-the-chart-updates-automatically-vba/</feedburner:origLink></item> <item><title>Excel template: Getting Things Done (vba)</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/wcLY4FOoDsE/</link> <comments>http://www.get-digital-help.com/2012/05/16/excel-template-getting-things-done-vba/#comments</comments> <pubDate>Wed, 16 May 2012 19:57:48 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Templates]]></category> <category><![CDATA[vba]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=11165</guid> <description><![CDATA[In this blog post I am going to demonstrate a simple workbook where you can create or delete projects and add "next" actions to each project. You can also mark actions completed. "The Getting Things Done method rests on the idea that a person needs to move tasks out of the mind by recording them externally, [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2012/02/13/advanced-gantt-chart-template/' rel='bookmark' title='Permanent Link: Advanced Gantt Chart Template'>Advanced Gantt Chart Template</a></li><li><a
href='http://www.get-digital-help.com/2007/07/29/win-xp-access-denied-error-deleting-a-file-or-folder/' rel='bookmark' title='Permanent Link: Win xp: Deleting a file or folder:Access denied error'>Win xp: Deleting a file or folder:Access denied error</a></li><li><a
href='http://www.get-digital-help.com/2007/09/18/win-xp-free-antivirus-software/' rel='bookmark' title='Permanent Link: Win xp: Free antivirus software'>Win xp: Free antivirus software</a></li><li><a
href='http://www.get-digital-help.com/2011/08/03/excel-vba-select-cell-a1-on-all-sheets-before-you-close-a-workbook/' rel='bookmark' title='Permanent Link: Excel vba: Select cell A1 on all sheets before you close a workbook'>Excel vba: Select cell A1 on all sheets before you close a workbook</a></li><li><a
href='http://www.get-digital-help.com/2011/01/24/monthly-calendar-template-2-in-excel/' rel='bookmark' title='Permanent Link: Monthly calendar template #2 in excel'>Monthly calendar template #2 in excel</a></li></ol>]]></description> <content:encoded><![CDATA[<p>In this blog post I am going to demonstrate a simple workbook where you can create or delete projects and add "next" actions to each project. You can also mark actions completed.</p><p><em>"<a
href="http://en.wikipedia.org/wiki/Getting_Things_Done">The Getting Things Done</a> method rests on the idea that a person needs to move tasks out of the mind by recording them externally, so the mind is free from the job of remembering the tasks that need to be completed. One can concentrate on performing the tasks, instead of remembering."</em> Source: <a
href="http://en.wikipedia.org/wiki/Getting_Things_Done">Wikipedia</a></p><p><strong>Add a project</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-add-projects2.gif"><img
class="alignnone size-full wp-image-11171" title="GTD - add projects2" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-add-projects2.gif" alt="" width="600" height="252" /></a></p><p><strong>Delete a project</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-delete-project11.gif"><img
class="alignnone size-full wp-image-11174" title="GTD - delete project1" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-delete-project11.gif" alt="" width="684" height="252" /></a></p><p><strong>Select a project</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-select-a-project1.gif"><img
class="alignnone size-full wp-image-11176" title="GTD - select a project1" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-select-a-project1.gif" alt="" width="680" height="252" /></a></p><p><strong>Add actions to a project</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-add-actions1.gif"><img
class="alignnone size-full wp-image-11178" title="GTD - add actions1" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-add-actions1.gif" alt="" width="684" height="252" /></a></p><p><strong>Mark an action completed</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-mark-action-completed1.gif"><img
class="alignnone size-full wp-image-11179" title="GTD - mark action completed1" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/GTD-mark-action-completed1.gif" alt="" width="548" height="324" /></a></p><p><strong>Download excel *.xlsm file</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Getting-things-done-template.xlsm">Getting things done - template.xlsm</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2012/02/13/advanced-gantt-chart-template/' rel='bookmark' title='Permanent Link: Advanced Gantt Chart Template'>Advanced Gantt Chart Template</a></li><li><a
href='http://www.get-digital-help.com/2007/07/29/win-xp-access-denied-error-deleting-a-file-or-folder/' rel='bookmark' title='Permanent Link: Win xp: Deleting a file or folder:Access denied error'>Win xp: Deleting a file or folder:Access denied error</a></li><li><a
href='http://www.get-digital-help.com/2007/09/18/win-xp-free-antivirus-software/' rel='bookmark' title='Permanent Link: Win xp: Free antivirus software'>Win xp: Free antivirus software</a></li><li><a
href='http://www.get-digital-help.com/2011/08/03/excel-vba-select-cell-a1-on-all-sheets-before-you-close-a-workbook/' rel='bookmark' title='Permanent Link: Excel vba: Select cell A1 on all sheets before you close a workbook'>Excel vba: Select cell A1 on all sheets before you close a workbook</a></li><li><a
href='http://www.get-digital-help.com/2011/01/24/monthly-calendar-template-2-in-excel/' rel='bookmark' title='Permanent Link: Monthly calendar template #2 in excel'>Monthly calendar template #2 in excel</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/wcLY4FOoDsE" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/05/16/excel-template-getting-things-done-vba/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/05/16/excel-template-getting-things-done-vba/</feedburner:origLink></item> <item><title>Disable autofit column widths for all pivot tables in a sheet</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/dr4wJwiA8l4/</link> <comments>http://www.get-digital-help.com/2012/05/11/disable-autofit-column-widths-for-all-pivot-tables-in-a-sheet/#comments</comments> <pubDate>Fri, 11 May 2012 08:42:36 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Pivot table]]></category> <category><![CDATA[vba]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=11120</guid> <description><![CDATA[I read this post Quick Trick: Resizing column widths in pivot tables on the Microsoft Excel blog. It is about Excel automatically making column widths too wide when using urls in pivot tables. Stacey Armstrong demonstrates how to disable this setting. Lindsay Hughes commented: This should be the default setting, or there should be some way [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/10/24/excel-vba-populate-a-combobox-with-values-from-a-pivot-table/' rel='bookmark' title='Permanent Link: Excel vba: Populate a combobox with values from a pivot table'>Excel vba: Populate a combobox with values from a pivot table</a></li><li><a
href='http://www.get-digital-help.com/2011/09/29/follow-hyperlinks-in-a-pivot-table/' rel='bookmark' title='Permanent Link: Follow hyperlinks in a pivot table'>Follow hyperlinks in a pivot table</a></li><li><a
href='http://www.get-digital-help.com/2011/05/20/google-spreadsheets-pivot-tables/' rel='bookmark' title='Permanent Link: Google spreadsheets: Pivot tables'>Google spreadsheets: Pivot tables</a></li><li><a
href='http://www.get-digital-help.com/2011/06/13/auto-refresh-a-pivot-table-in-excel/' rel='bookmark' title='Permanent Link: Auto refresh a pivot table in excel'>Auto refresh a pivot table in excel</a></li><li><a
href='http://www.get-digital-help.com/2012/03/30/auto-populate-a-sheet/' rel='bookmark' title='Permanent Link: Auto populate a sheet'>Auto populate a sheet</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I read this post <a
href="http://blogs.office.com/b/microsoft-excel/archive/2012/05/08/changing-column-widths-in-pivot-tables.aspx">Quick Trick: Resizing column widths in pivot tables</a> on the Microsoft Excel blog. It is about Excel automatically making column widths too wide when using urls in pivot tables. Stacey Armstrong demonstrates how to disable this setting.</p><p>Lindsay Hughes commented:</p><div
id="code1"><em>This should be the default setting, or there should be some way to enable this as the default setting. I have to do this everytime I make a pivot table (which can be a dozen times a day in some projects)</em></div><p>I can´t make it the default setting but the code below automatically disables this setting for all pivot tables in an activated sheet.</p><pre class="brush: vb; title: ; notranslate">
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Dim pt As PivotTable
    For Each pt In ActiveSheet.PivotTables
        pt.HasAutoFormat = False
    Next pt
End Sub
</pre><p><strong>Where to copy code?</strong></p><ol><li>Open VB Editor (Press Alt+F11)</li><li>Double click on Thisworkbook in the project explorer window</li><li>Paste code to module</li><li>Return to excel</li></ol><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/10/24/excel-vba-populate-a-combobox-with-values-from-a-pivot-table/' rel='bookmark' title='Permanent Link: Excel vba: Populate a combobox with values from a pivot table'>Excel vba: Populate a combobox with values from a pivot table</a></li><li><a
href='http://www.get-digital-help.com/2011/09/29/follow-hyperlinks-in-a-pivot-table/' rel='bookmark' title='Permanent Link: Follow hyperlinks in a pivot table'>Follow hyperlinks in a pivot table</a></li><li><a
href='http://www.get-digital-help.com/2011/05/20/google-spreadsheets-pivot-tables/' rel='bookmark' title='Permanent Link: Google spreadsheets: Pivot tables'>Google spreadsheets: Pivot tables</a></li><li><a
href='http://www.get-digital-help.com/2011/06/13/auto-refresh-a-pivot-table-in-excel/' rel='bookmark' title='Permanent Link: Auto refresh a pivot table in excel'>Auto refresh a pivot table in excel</a></li><li><a
href='http://www.get-digital-help.com/2012/03/30/auto-populate-a-sheet/' rel='bookmark' title='Permanent Link: Auto populate a sheet'>Auto populate a sheet</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/dr4wJwiA8l4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/05/11/disable-autofit-column-widths-for-all-pivot-tables-in-a-sheet/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/05/11/disable-autofit-column-widths-for-all-pivot-tables-in-a-sheet/</feedburner:origLink></item> <item><title>Vba macro: Normalize data</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/Y_fSEaUCefs/</link> <comments>http://www.get-digital-help.com/2012/05/07/vba-macro-normalize-data/#comments</comments> <pubDate>Mon, 07 May 2012 15:14:02 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Excel]]></category> <category><![CDATA[Pivot table]]></category> <category><![CDATA[vba]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=11043</guid> <description><![CDATA[Debra has a great post and video about normalizing data for excel pivot table. This post describes a macro that normalizes data for excel pivot tables. VBA macro Press Alt+ F11 Right click your workbook in project explorer Click Insert Click Module Paste macro code below to module Exit VB Editor Download excel *.xlsm file Normalize [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2010/12/01/excel-vba-save-invoice-data/' rel='bookmark' title='Permanent Link: Excel vba: Save invoice data'>Excel vba: Save invoice data</a></li><li><a
href='http://www.get-digital-help.com/2012/03/26/toggle-a-macro-onoff-using-a-button/' rel='bookmark' title='Permanent Link: Toggle a macro on/off using a button'>Toggle a macro on/off using a button</a></li><li><a
href='http://www.get-digital-help.com/2010/12/03/excel-vba-edit-invoice-data/' rel='bookmark' title='Permanent Link: Excel vba: Edit invoice data'>Excel vba: Edit invoice data</a></li><li><a
href='http://www.get-digital-help.com/2011/11/29/change-pivot-table-data-source-using-a-drop-down-list/' rel='bookmark' title='Permanent Link: Change pivot table data source using a drop down list'>Change pivot table data source using a drop down list</a></li><li><a
href='http://www.get-digital-help.com/2012/02/26/categorize-data-entry-values-vba/' rel='bookmark' title='Permanent Link: Categorize data entry values (vba)'>Categorize data entry values (vba)</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Debra has a great post and video about <a
href="http://blog.contextures.com/archives/2011/07/20/normalize-data-for-excel-pivot-table/">normalizing data for excel pivot table</a>. This post describes a macro that normalizes data for excel pivot tables.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Normalize-data.gif"><img
class="alignnone size-full wp-image-11114" title="Normalize data" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Normalize-data.gif" alt="" width="600" height="288" /></a></p><p><strong>VBA macro</strong></p><ol><li>Press Alt+ F11</li><li>Right click your workbook in project explorer</li><li>Click Insert</li><li>Click Module</li><li>Paste macro code below to module</li><li>Exit VB Editor</li></ol><pre class="brush: vb; title: ; notranslate">
Sub NormalizeData()
Dim Rng As Range
Dim WS As Worksheet
On Error Resume Next
Set Rng = Application.InputBox(Prompt:=&quot;Select a range to normalize data&quot; _
, Title:=&quot;Select a range&quot;, Default:=ActiveCell.Address, Type:=8)
On Error GoTo 0
If Rng Is Nothing Then
Else
    Application.ScreenUpdating = False
    Set WS = Sheets.Add
    i = 0
    For r = 1 To Rng.Rows.Count - 1
        For c = 1 To Rng.Columns.Count - 1
            WS.Range(&quot;A1&quot;).Offset(i, 0) = Rng.Offset(0, c).Value
            WS.Range(&quot;A1&quot;).Offset(i, 1) = Rng.Offset(r, 0).Value
            WS.Range(&quot;A1&quot;).Offset(i, 2) = Rng.Offset(r, c).Value
            i = i + 1
        Next c
    Next r
    WS.Range(&quot;A:C&quot;).EntireColumn.AutoFit
    Application.ScreenUpdating = True
End If
End Sub
</pre><p><strong>Download excel *.xlsm file</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Normalize-data.xlsm">Normalize data.xlsm</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2010/12/01/excel-vba-save-invoice-data/' rel='bookmark' title='Permanent Link: Excel vba: Save invoice data'>Excel vba: Save invoice data</a></li><li><a
href='http://www.get-digital-help.com/2012/03/26/toggle-a-macro-onoff-using-a-button/' rel='bookmark' title='Permanent Link: Toggle a macro on/off using a button'>Toggle a macro on/off using a button</a></li><li><a
href='http://www.get-digital-help.com/2010/12/03/excel-vba-edit-invoice-data/' rel='bookmark' title='Permanent Link: Excel vba: Edit invoice data'>Excel vba: Edit invoice data</a></li><li><a
href='http://www.get-digital-help.com/2011/11/29/change-pivot-table-data-source-using-a-drop-down-list/' rel='bookmark' title='Permanent Link: Change pivot table data source using a drop down list'>Change pivot table data source using a drop down list</a></li><li><a
href='http://www.get-digital-help.com/2012/02/26/categorize-data-entry-values-vba/' rel='bookmark' title='Permanent Link: Categorize data entry values (vba)'>Categorize data entry values (vba)</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/Y_fSEaUCefs" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/05/07/vba-macro-normalize-data/feed/</wfw:commentRss> <slash:comments>4</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/05/07/vba-macro-normalize-data/</feedburner:origLink></item> <item><title>Date ranges: Weeks within a month</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/K22tnIe9Tg4/</link> <comments>http://www.get-digital-help.com/2012/05/02/date-ranges-weeks-within-a-month/#comments</comments> <pubDate>Wed, 02 May 2012 11:34:26 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Dates]]></category> <category><![CDATA[Excel]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=10929</guid> <description><![CDATA[Anees asks: Hi, The above formula in A9 "Increasing date in a column" works pretty good however I have a small request to change the formula as per my need. As I fill the first column in excel with this formula than use + handler on bottom right of the column to drag and copy [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2007/09/13/excel-calculate-last-date-of-a-specific-month/' rel='bookmark' title='Permanent Link: Excel: Calculate last date of a specific month'>Excel: Calculate last date of a specific month</a></li><li><a
href='http://www.get-digital-help.com/2010/04/19/filter-duplicates-within-same-date-week-or-month-in-excel/' rel='bookmark' title='Permanent Link: Filter duplicates within same date, week or month in excel'>Filter duplicates within same date, week or month in excel</a></li><li><a
href='http://www.get-digital-help.com/2011/12/23/filter-weeks-from-a-date-range/' rel='bookmark' title='Permanent Link: Filter weeks from a date range'>Filter weeks from a date range</a></li><li><a
href='http://www.get-digital-help.com/2010/04/24/highlight-duplicates-on-same-date-week-or-month-using-conditional-formatting-in-excel/' rel='bookmark' title='Permanent Link: Highlight duplicates on same date, week or month using conditional formatting in excel'>Highlight duplicates on same date, week or month using conditional formatting in excel</a></li><li><a
href='http://www.get-digital-help.com/2009/03/04/how-to-automatically-calculate-a-specific-day-of-a-month/' rel='bookmark' title='Permanent Link: How to automatically calculate a specific day of  a month'>How to automatically calculate a specific day of  a month</a></li></ol>]]></description> <content:encoded><![CDATA[<p><strong><a
href="http://www.get-digital-help.com/2009/06/16/create-a-date-range-using-excel-formula/comment-page-2/#comment-51662">Anees asks:</a></strong></p><div
id="code1">Hi,<br
/> The above formula in A9 "Increasing date in a column" works pretty good however I have a small request to change the formula as per my need.<br
/> As I fill the first column in excel with this formula than use + handler on bottom right of the column to drag and copy it to next cell so the date increases. That works but when it reaches the end of month it continues in the same cell. Is it possible so at the end of the month the range would stay within the month instead of increasing to next month?<br
/> Here let me try to explain visually.<br
/> 01/01/12-01/07/12<br
/> 01/08/12-01/14/12<br
/> 01/15/12-01/21/12<br
/> 01/22/12-01/28/12<br
/> 01/29/12-02/04/12 And next month would be per week in each coulmn as well and so on.<br
/> 02/01/12-02/04/12<br
/> 02/05/12-02/11/12<br
/> 02/12/12-02/18/12<br
/> 02/19/12-02/25/12<br
/> 02/26/12-02/29/12<br
/> 03/01/12-03/03/12<br
/> Thank you.</div><p><strong>Answer:</strong></p><p>The array formula becomes quickly complicated if I try to concatenate the start and end date in one cell. I am going to use two cells.</p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/anees.png"><img
class="alignnone size-full wp-image-11064" title="anees" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/anees.png" alt="" width="637" height="261" /></a></p><p><strong>Date in cell A1: </strong></p><p>2012-01-01</p><p><strong>Array Formula in cell B1:</strong></p><div
id="code1">=IF(MONTH(A1)&lt;&gt;MONTH(A1+6), DATE(YEAR(A1), MONTH(A1)+1, 1)-1, A1+MAX(IF(WEEKDAY(A1+{0, 1, 2, 3, 4, 5, 6})=7, {0, 1, 2, 3, 4, 5, 6}, "")))</div><p><strong>How to create an array formula</strong></p><ol><li>Select cell B1</li><li>Paste array formula</li><li>Press and hold Ctrl + Shift</li><li>Press Enter</li></ol><p><strong>How to copy array formula in cell B1</strong></p><ol><li>Select cell B1</li><li>Copy (Ctrl +c)</li><li>Select cell range B2:B11</li><li>Paste (Ctrl + v)</li></ol><p><strong>Formula in cell A2:</strong></p><div
id="code1">=B1+1</div><p>Copy cell A2 and paste down as far as necessary.</p><p><strong>Explaining array formula in cell B1</strong></p><p><em><strong>Step 1 - Compare dates and check if months are not equal</strong></em></p><p
style="padding-left: 30px;">=IF(MONTH(A1)&lt;&gt;MONTH(A1+6), formula_TRUE, formula_FALSE)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=IF(MONTH(40909)&lt;&gt;MONTH(40909+6), formula_TRUE, formula_FALSE)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=IF(MONTH(40909)&lt;&gt;MONTH(40915), formula_TRUE, formula_FALSE)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=IF(1&lt;&gt;1, formula_TRUE, <strong>formula_FALSE</strong>)</p><p><em><strong>Step 2 - Calculate days to last day in week</strong></em></p><p
style="padding-left: 30px;">A1+MAX(IF(WEEKDAY(A1+{0, 1, 2, 3, 4, 5, 6})=7, {0, 1, 2, 3, 4, 5, 6}, ""))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">40909+MAX(IF(WEEKDAY(40909+{0, 1, 2, 3, 4, 5, 6})=7, {0, 1, 2, 3, 4, 5, 6}, ""))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">40909+MAX(IF(WEEKDAY({40909, 40910, 40911, 40912, 40913, 40914, 40915})=7, {0, 1, 2, 3, 4, 5, 6}, ""))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">40909+MAX(IF({1, 2, 3, 4, 5, 6, 7}=7, {0, 1, 2, 3, 4, 5, 6}, ""))</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">40909+MAX({"", "", "", "", "", "", 6})</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">40909+6</p><p
style="padding-left: 30px;">and returns 40915 (2012-01-07) in cell A2.</p><p><em><strong>Step 3 - Calculate last day in month</strong></em></p><p
style="padding-left: 30px;">Example in cell B5</p><p
style="padding-left: 30px;">=IF(MONTH(A5)&lt;&gt;MONTH(A5+6), formula_TRUE, formula_FALSE)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=IF(MONTH(40937)&lt;&gt;MONTH(40943), formula_TRUE, formula_FALSE)</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">=IF(1&lt;&gt;2, <strong>formula_TRUE</strong>, formula_FALSE)</p><p
style="padding-left: 30px;">DATE(YEAR(A5), MONTH(A5)+1, 1)-1</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">DATE(YEAR(40937), MONTH(40937)+1, 1)-1</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">DATE(2012, 2, 1)-1</p><p
style="padding-left: 30px;">becomes</p><p
style="padding-left: 30px;">40940-1</p><p
style="padding-left: 30px;">and returns 40939 in cell B5.</p><p><strong>Download excel *.xlsx file</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/05/Anees.xlsx">Anees.xlsx</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2007/09/13/excel-calculate-last-date-of-a-specific-month/' rel='bookmark' title='Permanent Link: Excel: Calculate last date of a specific month'>Excel: Calculate last date of a specific month</a></li><li><a
href='http://www.get-digital-help.com/2010/04/19/filter-duplicates-within-same-date-week-or-month-in-excel/' rel='bookmark' title='Permanent Link: Filter duplicates within same date, week or month in excel'>Filter duplicates within same date, week or month in excel</a></li><li><a
href='http://www.get-digital-help.com/2011/12/23/filter-weeks-from-a-date-range/' rel='bookmark' title='Permanent Link: Filter weeks from a date range'>Filter weeks from a date range</a></li><li><a
href='http://www.get-digital-help.com/2010/04/24/highlight-duplicates-on-same-date-week-or-month-using-conditional-formatting-in-excel/' rel='bookmark' title='Permanent Link: Highlight duplicates on same date, week or month using conditional formatting in excel'>Highlight duplicates on same date, week or month using conditional formatting in excel</a></li><li><a
href='http://www.get-digital-help.com/2009/03/04/how-to-automatically-calculate-a-specific-day-of-a-month/' rel='bookmark' title='Permanent Link: How to automatically calculate a specific day of  a month'>How to automatically calculate a specific day of  a month</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/K22tnIe9Tg4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/05/02/date-ranges-weeks-within-a-month/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/05/02/date-ranges-weeks-within-a-month/</feedburner:origLink></item> <item><title>Add values to different sheets (vba)</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/w34b0L23e8Y/</link> <comments>http://www.get-digital-help.com/2012/04/30/add-values-to-different-sheets-vba/#comments</comments> <pubDate>Mon, 30 Apr 2012 11:14:18 +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=11018</guid> <description><![CDATA[Phil asks: Could you please show me the code to place the copied data into a different tab instead of below the input cells. Its annoying me and I'm rubbish at this. thanks. Answer: Create drop down list Go to tab "Data" Click "Data Validation" button Go to "Settings" tab Select List Type 2011, 2012 [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2012/04/26/add-values-to-a-table-vba/' rel='bookmark' title='Permanent Link: Add values to a table (vba)'>Add values to a table (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/01/14/basic-data-entry-vba/' rel='bookmark' title='Permanent Link: Basic data entry (vba)'>Basic data entry (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/01/17/list-all-open-workbooks-and-corresponding-sheets-vba/' rel='bookmark' title='Permanent Link: List all open workbooks and corresponding sheets (vba)'>List all open workbooks and corresponding sheets (vba)</a></li><li><a
href='http://www.get-digital-help.com/2011/09/16/quickly-filter-a-column-in-an-excel-table/' rel='bookmark' title='Permanent Link: Quickly filter a column in an excel table'>Quickly filter a column in an excel table</a></li><li><a
href='http://www.get-digital-help.com/2012/03/26/toggle-a-macro-onoff-using-a-button/' rel='bookmark' title='Permanent Link: Toggle a macro on/off using a button'>Toggle a macro on/off using a button</a></li></ol>]]></description> <content:encoded><![CDATA[<p><strong><a
href="http://www.get-digital-help.com/2012/01/14/basic-data-entry-vba/comment-page-1/#comment-51727">Phil asks:</a></strong></p><div
id="code1">Could you please show me the code to place the copied data into a different tab instead of below the input cells. Its annoying me and I'm rubbish at this. thanks.</div><p><strong>Answer:</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Add-values-to-different-sheets1.gif"><img
class="alignnone size-full wp-image-11046" title="Add values to different sheets1" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Add-values-to-different-sheets1.gif" alt="" width="576" height="172" /></a></p><p><strong>Create drop down list</strong></p><ol><li>Go to tab "Data"</li><li>Click "Data Validation" button</li><li>Go to "Settings" tab</li><li>Select List</li><li>Type 2011, 2012 (sheet names) in Source:</li><li>Click OK</li></ol><p><strong>Macro code</strong></p><ol><li>Press Alt+ F11</li><li>Right click your workbook in project explorer</li><li>Click Insert</li><li>Click Module</li><li>Paste macro code below to module</li><li>Exit VB Editor</li></ol><pre class="brush: vb; title: ; notranslate">Sub AddValues()
Dim i As Single
i = Worksheets(&quot;&quot; &amp; Range(&quot;D2&quot;)).Range(&quot;A&quot; &amp; Rows.Count).End(xlUp).Row + 1
Worksheets(&quot;&quot; &amp; Range(&quot;D2&quot;)).Range(&quot;A&quot; &amp; i &amp; &quot;:C&quot; &amp; i) = _
Worksheets(&quot;Enter Data&quot;).Range(&quot;A2:C2&quot;).Value
Worksheets(&quot;Enter Data&quot;).Range(&quot;A2:C2&quot;) = &quot;&quot;
End Sub
</pre><p><strong>Create button</strong></p><ol><li>Go to "Developer" tab</li><li>Click "Insert" button</li><li>Click "Button" (form control)</li><li>Assign macro AddValues()</li><li>Click OK</li></ol><p><strong>Download excel file *.xlsm</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Add-values-to-different-sheets.xlsm">Add values to different sheets.xlsm</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2012/04/26/add-values-to-a-table-vba/' rel='bookmark' title='Permanent Link: Add values to a table (vba)'>Add values to a table (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/01/14/basic-data-entry-vba/' rel='bookmark' title='Permanent Link: Basic data entry (vba)'>Basic data entry (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/01/17/list-all-open-workbooks-and-corresponding-sheets-vba/' rel='bookmark' title='Permanent Link: List all open workbooks and corresponding sheets (vba)'>List all open workbooks and corresponding sheets (vba)</a></li><li><a
href='http://www.get-digital-help.com/2011/09/16/quickly-filter-a-column-in-an-excel-table/' rel='bookmark' title='Permanent Link: Quickly filter a column in an excel table'>Quickly filter a column in an excel table</a></li><li><a
href='http://www.get-digital-help.com/2012/03/26/toggle-a-macro-onoff-using-a-button/' rel='bookmark' title='Permanent Link: Toggle a macro on/off using a button'>Toggle a macro on/off using a button</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/w34b0L23e8Y" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/04/30/add-values-to-different-sheets-vba/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/04/30/add-values-to-different-sheets-vba/</feedburner:origLink></item> <item><title>Add values to a table (vba)</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/xGe8_gw77tc/</link> <comments>http://www.get-digital-help.com/2012/04/26/add-values-to-a-table-vba/#comments</comments> <pubDate>Thu, 26 Apr 2012 08:20:14 +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=11016</guid> <description><![CDATA[Cyril asks: I do remember seeing one nice way of populating a table with the use of vba such as : How would it be possible to modify the code to populate a table such as: the first column header could be chosen from the drop-down list as well as the first row header. In [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/10/05/add-values-to-a-data-validation-list-vba/' rel='bookmark' title='Permanent Link: Add values to a data validation list (vba)'>Add values to a data validation list (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/02/26/categorize-data-entry-values-vba/' rel='bookmark' title='Permanent Link: Categorize data entry values (vba)'>Categorize data entry values (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/03/12/apply-data-validation-lists-dynamically-vba/' rel='bookmark' title='Permanent Link: Apply data validation lists dynamically (vba)'>Apply data validation lists dynamically (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/01/14/basic-data-entry-vba/' rel='bookmark' title='Permanent Link: Basic data entry (vba)'>Basic data entry (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/02/22/dependent-data-validation-lists-in-multiple-rows/' rel='bookmark' title='Permanent Link: Dependent data validation lists in multiple rows'>Dependent data validation lists in multiple rows</a></li></ol>]]></description> <content:encoded><![CDATA[<p><strong><a
href="http://www.get-digital-help.com/2012/03/14/automate-data-entry-vba/comment-page-1/#comment-51694">Cyril asks:</a></strong><em></em></p><div
id="code1"><p>I do remember seeing one nice way of populating a table with the use of vba such as :</p><pre class="brush: vb; title: ; notranslate">
Sub EnterName()
Dim col, Lrow As Single
Dim tmp As String
col = Application.WorksheetFunction.Match(Range(&quot;C2&quot;), Range(&quot;B4:H4&quot;), 0) - 1
tmp = Range(&quot;B&quot; &amp;amp; Rows.Count).Offset(0, col).Address
Lrow = Range(tmp).End(xlUp).Row
Range(&quot;B1&quot;).Offset(Lrow, col).Value = Range(&quot;E2&quot;).Value
Range(&quot;B1&quot;).Offset(Lrow, col + 1).Value = Range(&quot;F2&quot;).Value
Range(&quot;E2&quot;).Value = &quot;&quot;
Range(&quot;F2&quot;).Value = &quot;&quot;
End Sub</pre><p>How would it be possible to modify the code to populate a table such as: the first column header could be chosen from the drop-down list as well as the first row header. In other word the location of the data to be entered could be determined by the row AND the column.</p><p>C2 should be a data validation (list).<br
/> B4:H4 (here only 7 columns) would be the headers to match the value in C2.<br
/> A second data validation should make reference to Column A.<br
/> Hence:<br
/> 1st data validation correlated to Column's Headers (B to ect)<br
/> 2nd data validation correlated to values in Column A ("Row Header")</p><p>As for the kind of values, being headers they would most likely be (but not limited to) text strings.</p></div><p><strong>Answer:</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Add-values-to-a-table-excel.gif"><img
class="alignnone size-full wp-image-11035" title="Add values to a table excel" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Add-values-to-a-table-excel.gif" alt="" width="564" height="376" /></a></p><p><strong>Create drop down lists</strong></p><ol><li>Select cell C15</li><li>Go to tab "Data"</li><li>Click "Data validation" button</li><li>Select "List" in Allow: field</li><li>Select cell range B1:H1 in Source: field</li></ol><p>Repeat above steps with cell C16 and cell range A2:A13<br
/> <strong>Insert macro</strong></p><ol><li>Press Alt+ F11</li><li>Right click on your workbook in project explorer</li><li>Click Insert</li><li>Click Module</li><li>Paste vba code to module window</li></ol><pre class="brush: vb; title: ; notranslate">Sub AddValue()
Dim column, row As String
Dim c, r As Single
With Worksheets(&quot;Sheet1&quot;)
If .Range(&quot;C15&quot;).Value = &quot;&quot; Or .Range(&quot;C16&quot;).Value = &quot;&quot; Then Exit Sub
column = .Range(&quot;C15&quot;).Value
row = .Range(&quot;C16&quot;).Value
c = Application.Match(column, .Range(&quot;B1:H1&quot;), 0)
r = Application.Match(row, .Range(&quot;A2:A13&quot;), 0)
.Range(&quot;A1&quot;).Offset(r, c).Value = .Range(&quot;C17&quot;).Value
End With
End Sub</pre><p><strong>Create button</strong></p><ol><li>Go to "<a
href="http://msdn.microsoft.com/en-us/library/bb608625.aspx">Developer</a>" tab</li><li>Click "Insert" button</li><li>Click "Button"</li><li>Create a button</li><li>Assign macro "AddValues"</li><li>Click OK</li><li>Change button text</li></ol><p><strong>Download excel *.xlsm file</strong><br
/> <a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Add-values-to-a-table.xlsm">Add values to a table.xlsm</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/10/05/add-values-to-a-data-validation-list-vba/' rel='bookmark' title='Permanent Link: Add values to a data validation list (vba)'>Add values to a data validation list (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/02/26/categorize-data-entry-values-vba/' rel='bookmark' title='Permanent Link: Categorize data entry values (vba)'>Categorize data entry values (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/03/12/apply-data-validation-lists-dynamically-vba/' rel='bookmark' title='Permanent Link: Apply data validation lists dynamically (vba)'>Apply data validation lists dynamically (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/01/14/basic-data-entry-vba/' rel='bookmark' title='Permanent Link: Basic data entry (vba)'>Basic data entry (vba)</a></li><li><a
href='http://www.get-digital-help.com/2012/02/22/dependent-data-validation-lists-in-multiple-rows/' rel='bookmark' title='Permanent Link: Dependent data validation lists in multiple rows'>Dependent data validation lists in multiple rows</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/xGe8_gw77tc" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/04/26/add-values-to-a-table-vba/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/04/26/add-values-to-a-table-vba/</feedburner:origLink></item> <item><title>Unique distinct records sorted by frequency</title><link>http://feedproxy.google.com/~r/GetDigitalHelp/~3/iqRBS9jqT3Y/</link> <comments>http://www.get-digital-help.com/2012/04/23/unique-distinct-records-sorted-by-frequency/#comments</comments> <pubDate>Mon, 23 Apr 2012 08:40:41 +0000</pubDate> <dc:creator>Oscar</dc:creator> <category><![CDATA[Count values]]></category> <category><![CDATA[Excel]]></category> <category><![CDATA[Records]]></category> <guid isPermaLink="false">http://www.get-digital-help.com/?p=11000</guid> <description><![CDATA[Sara asks: How can you use large with multiple criteria?? Example looking for top 5 of a list based on name, state and city.. Answer: Array formula in cell E3: =INDEX($A$2:$C$29, MATCH(LARGE(IF(COUNTIFS($E$2:E2, $A$2:$A$29, $F$2:F2, $B$2:$B$29, $G$2:G2, $C$2:$C$29)=0, COUNTIFS($A$2:$A$29, $A$2:$A$29, $B$2:$B$29, $B$2:$B$29, $C$2:$C$29, $C$2:$C$29), ""), 1), COUNTIFS($A$2:$A$29, $A$2:$A$29, $B$2:$B$29, $B$2:$B$29, $C$2:$C$29, $C$2:$C$29)*(COUNTIFS($E$2:E2, $A$2:$A$29, $F$2:F2, $B$2:$B$29, $G$2:G2, [...]
Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/01/17/count-unique-distinct-records-in-excel-2007/' rel='bookmark' title='Permanent Link: Count unique distinct records in excel 2007'>Count unique distinct records in excel 2007</a></li><li><a
href='http://www.get-digital-help.com/2011/05/19/filter-unique-distinct-records-with-a-condition-in-excel-2007/' rel='bookmark' title='Permanent Link: Filter unique distinct records with a condition in excel 2007'>Filter unique distinct records with a condition in excel 2007</a></li><li><a
href='http://www.get-digital-help.com/2011/05/25/excel-2007-pivot-table-count-unique-distinct-records-rows/' rel='bookmark' title='Permanent Link: Excel 2007 pivot table: Count unique distinct records (rows)'>Excel 2007 pivot table: Count unique distinct records (rows)</a></li><li><a
href='http://www.get-digital-help.com/2011/05/23/count-unique-distinct-records-between-two-dates-and-a-condition-in-excel-2007/' rel='bookmark' title='Permanent Link: Count unique distinct records with a date and column criteria in excel 2007'>Count unique distinct records with a date and column criteria in excel 2007</a></li><li><a
href='http://www.get-digital-help.com/2009/01/14/automatically-filter-unique-row-records-from-multiple-columns/' rel='bookmark' title='Permanent Link: Filter unique distinct row records in excel 2007'>Filter unique distinct row records in excel 2007</a></li></ol>]]></description> <content:encoded><![CDATA[<p><strong><a
href="http://www.get-digital-help.com/2009/04/24/create-a-unique-list-and-sort-by-occurrances-from-large-to-small/comment-page-1/#comment-51680">Sara asks:</a></strong></p><p>How can you use large with multiple criteria?? Example looking for top 5 of a list based on name, state and city..</p><p><strong>Answer:</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Unique-distinct-records-sorted-by-frequency.png"><img
class="alignnone size-full wp-image-10999" title="Unique distinct records sorted by frequency" src="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Unique-distinct-records-sorted-by-frequency.png" alt="" width="570" height="301" /></a></p><p><strong>Array formula in cell E3:</strong></p><div
id="code1">=INDEX($A$2:$C$29, MATCH(LARGE(IF(COUNTIFS($E$2:E2, $A$2:$A$29, $F$2:F2, $B$2:$B$29, $G$2:G2, $C$2:$C$29)=0, COUNTIFS($A$2:$A$29, $A$2:$A$29, $B$2:$B$29, $B$2:$B$29, $C$2:$C$29, $C$2:$C$29), ""), 1), COUNTIFS($A$2:$A$29, $A$2:$A$29, $B$2:$B$29, $B$2:$B$29, $C$2:$C$29, $C$2:$C$29)*(COUNTIFS($E$2:E2, $A$2:$A$29, $F$2:F2, $B$2:$B$29, $G$2:G2, $C$2:$C$29)=0), 0), COLUMN(A1))</div><p><strong>Formula in cell H3:</strong></p><div
id="code1">=COUNTIFS($A$2:$A$29, E3, $B$2:$B$29, F3, $C$2:$C$29, G3)</div><p><strong>How to create an array formula</strong></p><ol><li>Select cell E3</li><li>Paste array formula</li><li>Press and hold Ctrl + Shift</li><li>Press Enter</li></ol><p><strong>How to copy array formula</strong></p><ol><li> Select cell E3</li><li>Copy cell (not formula)</li><li>Select cell range F3:G3</li><li>Paste</li><li>Select cell range E3:G3</li><li>Copy cells (not formulas)</li><li>Select cell range E4:G9</li><li>Paste</li></ol><p><strong>Explaining array formula in cell E3</strong></p><p>See post: <a
href="http://www.get-digital-help.com/2009/04/24/create-a-unique-list-and-sort-by-occurrances-from-large-to-small/">Create a unique distinct list and sort by occurrances from large to small</a></p><p><strong>Download example *.xlsx file</strong></p><p><a
href="http://cdn.get-digital-help.com/wp-content/uploads/2012/04/Unique-distinct-records-sorted-by-frequency.xlsx">Unique distinct records sorted by frequency.xlsx</a></p><p>Related posts:<ol><li><a
href='http://www.get-digital-help.com/2011/01/17/count-unique-distinct-records-in-excel-2007/' rel='bookmark' title='Permanent Link: Count unique distinct records in excel 2007'>Count unique distinct records in excel 2007</a></li><li><a
href='http://www.get-digital-help.com/2011/05/19/filter-unique-distinct-records-with-a-condition-in-excel-2007/' rel='bookmark' title='Permanent Link: Filter unique distinct records with a condition in excel 2007'>Filter unique distinct records with a condition in excel 2007</a></li><li><a
href='http://www.get-digital-help.com/2011/05/25/excel-2007-pivot-table-count-unique-distinct-records-rows/' rel='bookmark' title='Permanent Link: Excel 2007 pivot table: Count unique distinct records (rows)'>Excel 2007 pivot table: Count unique distinct records (rows)</a></li><li><a
href='http://www.get-digital-help.com/2011/05/23/count-unique-distinct-records-between-two-dates-and-a-condition-in-excel-2007/' rel='bookmark' title='Permanent Link: Count unique distinct records with a date and column criteria in excel 2007'>Count unique distinct records with a date and column criteria in excel 2007</a></li><li><a
href='http://www.get-digital-help.com/2009/01/14/automatically-filter-unique-row-records-from-multiple-columns/' rel='bookmark' title='Permanent Link: Filter unique distinct row records in excel 2007'>Filter unique distinct row records in excel 2007</a></li></ol></p><img src="http://feeds.feedburner.com/~r/GetDigitalHelp/~4/iqRBS9jqT3Y" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.get-digital-help.com/2012/04/23/unique-distinct-records-sorted-by-frequency/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.get-digital-help.com/2012/04/23/unique-distinct-records-sorted-by-frequency/</feedburner:origLink></item> </channel> </rss><!-- Dynamic page generated in 0.699 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-05-22 13:49:08 -->

