<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2509167754737584590</id><updated>2026-04-02T14:49:30.718+05:30</updated><category term="Excel Macros"/><category term="Macros in Excel"/><category term="Excel Formulas"/><category term="Working with date function"/><category term="Formating Cells in Excel"/><category term="Custom Functions"/><category term="Working with Data Range"/><category term="Formating Numbers in Excel"/><category term="Learn Excel VBA"/><category term="Visual Basic Grammar"/><category term="Excel Closest Match"/><category term="Excel Number Format"/><category term="Excel Vlookup Function"/><category term="Making EMI Calculator"/><category term="Add Spin Buttons ActiveX Controls"/><category term="Adding non printing information to your worksheet"/><category term="Auto Open Macro"/><category term="Automating Tasks in Excel"/><category term="Convert Numbers to Words"/><category term="Converting Text to date"/><category term="Countif Multiple Criteria"/><category term="Defined Names"/><category term="Deploy Macros Found Elsewhere"/><category term="Disable Cut Copy Paste in Excel"/><category term="Disable right click menu"/><category term="EMI Calculator"/><category term="Email Address Extract"/><category term="Excel Addins"/><category term="Excel Currency Format"/><category term="Excel Date Picker"/><category term="Excel Kay Board Shortcuts"/><category term="Excel Last Row"/><category term="Excel Pop up Calendar"/><category term="Extract Number From String"/><category term="Extract Number From Text"/><category term="File Open"/><category term="Find Duplicate"/><category term="Find Last Row"/><category term="Forcing users to Enable Macros"/><category term="Forcing users to use updated version"/><category term="Get Number From String"/><category term="Hardware Locking for Excel Workbook"/><category term="Hide cell contents before printing"/><category term="Indian Style Comma Separation for numbers"/><category term="Logging User Activity"/><category term="Macro Last Row"/><category term="Numbers to Text"/><category term="PMT Function in Excel"/><category term="Pivot Tables"/><category term="Profit and Loss report using Pivot Tables"/><category term="Range Name Excel"/><category term="Remove Duplicate"/><category term="Send email with VBA"/><category term="Show Developer Tab"/><category term="Sorting Dates by Birthday"/><category term="Spell Currency"/><category term="SpellCurr()"/><category term="Sum Top 5 values in Unsorted Range"/><category term="Symbol Check Mark"/><category term="Test if workbook is open or not"/><category term="Text To Numbers"/><category term="VBA Last Row"/><category term="Wingdings Check Mark with double click"/><category term="calculating age"/><category term="countif array"/><category term="countif multiple conditions"/><category term="countif two criteria"/><category term="countif with multiple criteria"/><category term="excel subtotals"/><category term="multiple countif"/><category term="multiple sumif criteria"/><category term="subtotal excel"/><category term="subtotal function excel"/><category term="subtotal in excel"/><category term="subtotals in excel"/><category term="sumif multiple"/><category term="sumif multiple criteria"/><title type='text'>Yogesh Gupta&#39;s Excel Tips</title><subtitle type='html'>Daily use tips for excel. Solution to frequently faced excel problems in simple manner.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default?start-index=26&amp;max-results=25'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>61</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-6598286192056686</id><published>2012-02-13T22:51:00.019+05:30</published><updated>2023-11-06T14:49:28.426+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Addins"/><category scheme="http://www.blogger.com/atom/ns#" term="Spell Currency"/><category scheme="http://www.blogger.com/atom/ns#" term="SpellCurr()"/><title type='text'>Excel Addins : Spell Currency Excel Addin</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I am sharing Excel Addin for converting Numbers to Words. I keep getting mails / comments where people are not able to install the VBA code shared in my earlier post&lt;br /&gt;
&lt;h2&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2009/07/excel-functions-convert-numbers-into.html&quot; target=&quot;_blank&quot;&gt;Excel Functions : Convert Numbers to Words.&lt;/a&gt;&lt;/h2&gt;

  &lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjymCLmzQHoPfIZZCLbZ3ewOfX4rD75TjD28YENHwXAVbzsqZNDkEkh9WIJ8eYdzZRymE_lcBPZleNDwpy5oIpalUK5XZ8fVG1ww7mvu2GmEPbP43_VAMkEn0mOabVH-3J8Kop0d0rNdXivLziN91MCq5qqQHGv_I1JdkwwlajFoB8Fi3RJN4ApLxi-90w/s440/spellcurr.gif&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;400&quot; data-original-height=&quot;136&quot; data-original-width=&quot;440&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjymCLmzQHoPfIZZCLbZ3ewOfX4rD75TjD28YENHwXAVbzsqZNDkEkh9WIJ8eYdzZRymE_lcBPZleNDwpy5oIpalUK5XZ8fVG1ww7mvu2GmEPbP43_VAMkEn0mOabVH-3J8Kop0d0rNdXivLziN91MCq5qqQHGv_I1JdkwwlajFoB8Fi3RJN4ApLxi-90w/s400/spellcurr.gif&quot;/&gt;&lt;/a&gt;&lt;/div&gt;

  This Addin will make it easier to use. This Addin can be installed on any computer having Excel 2007 and above versions. Once Installed you can use SpellCurr() formula in any excel file on that computer.&lt;br /&gt;
&lt;br /&gt;
You need to download and open Addin file on your machine. This will install the Addin automatically to your machine.   &lt;br /&gt;
&lt;br /&gt;
However if you send file to another person you need to send the Addin along and ask that person to install it on his/her machine so that your formula can work there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;a href=&quot;https://drive.google.com/file/d/1sKB36m9XLPyIJAgS_Dr7I77E-_kr3VEt/view?usp=drive_link&quot; target=&quot;_blank&quot;&gt;Download SpellCurr Excel Addin for converting numbers to words - Excel 2007 Version&lt;/a&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
  
&lt;a href=&quot;https://drive.google.com/file/d/1t4ROvzndrC7rZKhmFAdmWiuHaiSi-IEt/view?usp=drive_link &quot; target=&quot;_blank&quot;&gt;Download SpellCurr Excel Addin for converting numbers to words - Excel 2003 Version&lt;/a&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Numbers to Words , Convert Number to Words , Convert Number to Word , Number to Words , Number to Word , Number to Text , Number in Words , Number to Letters , Convert Number to Text , VBA Number to Text , Number to Text Function , Numeric to Text &lt;/h2&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/6598286192056686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2012/02/excel-addins-spell-currency-excel-addin.html#comment-form' title='138 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6598286192056686'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6598286192056686'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2012/02/excel-addins-spell-currency-excel-addin.html' title='Excel Addins : Spell Currency Excel Addin'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjymCLmzQHoPfIZZCLbZ3ewOfX4rD75TjD28YENHwXAVbzsqZNDkEkh9WIJ8eYdzZRymE_lcBPZleNDwpy5oIpalUK5XZ8fVG1ww7mvu2GmEPbP43_VAMkEn0mOabVH-3J8Kop0d0rNdXivLziN91MCq5qqQHGv_I1JdkwwlajFoB8Fi3RJN4ApLxi-90w/s72-c/spellcurr.gif" height="72" width="72"/><thr:total>138</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-7235845626200938262</id><published>2010-07-24T23:24:00.001+05:30</published><updated>2023-11-06T14:58:38.757+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Send email with VBA"/><title type='text'>Excel Macros : Send Email with VBA</title><content type='html'>The Code I am sharing with you today is capable of sending active sheet of your workbook through outlook mail to email ID specified by you. You will not get any warning messages and the email will be sent using outlook profile available on your machine.&lt;br /&gt;&lt;br /&gt;This code saves active sheet to temp file and then email it to the recipient. Once the mail has been sent the temp file is deleted by the code.&lt;br /&gt;&lt;br /&gt;You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Regular&quot; target=&quot;_blank&quot;&gt; copy this code to regular VBA module&lt;/a&gt; of your workbook&lt;br /&gt;&lt;div style=&quot;height: 400px; overflow: auto; width: 200x;&quot;&gt; &lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;Sub EmailActiveSheetWithOutlook()&lt;br /&gt;    &lt;br /&gt;    Dim oApp, oMail As Object, _&lt;br /&gt;    tWB, cWB As Workbook, _&lt;br /&gt;    FileName, FilePath As String&lt;br /&gt;&lt;br /&gt;    Application.ScreenUpdating = False&lt;br /&gt;&lt;br /&gt;&#39;Set email id here, it may be a range in case you have email id on your worksheet&lt;br /&gt;    &lt;br /&gt;    Mailid = &quot;yogesh@yogeshguptaonline.com&quot;&lt;br /&gt;    &lt;br /&gt;&#39;Write your email message body here , add more lines using &amp;amp; vbLf _ at the end of each line&lt;br /&gt;    &lt;br /&gt;    Body = &quot;Please find enclosed &quot; &amp;amp; vbLf _&lt;br /&gt;    &amp;amp; vbLf _&lt;br /&gt;    &amp;amp; &quot;Thanks &amp;amp; Regards&quot;&lt;br /&gt;    &lt;br /&gt;   &lt;br /&gt;&#39;Copy Active Sheet and save it to a temporary file&lt;br /&gt;&lt;br /&gt;    Set cWB = ActiveWorkbook&lt;br /&gt;    ActiveSheet.Copy&lt;br /&gt;    &lt;br /&gt;    Set tWB = ActiveWorkbook&lt;br /&gt;    FileName = &quot;Temp.xls&quot; &#39;You can define the name&lt;br /&gt;    FilePath = Environ(&quot;TEMP&quot;)&lt;br /&gt;    &lt;br /&gt;    On Error Resume Next&lt;br /&gt;    Kill FilePath &amp;amp; &quot;\&quot; &amp;amp; FileName&lt;br /&gt;    On Error GoTo 0&lt;br /&gt;    Application.DisplayAlerts = False&lt;br /&gt;    tWB.SaveAs FileName:=FilePath &amp;amp; &quot;\&quot; &amp;amp; FileName, FileFormat:=56&lt;br /&gt;    Application.DisplayAlerts = True&lt;br /&gt;     &lt;br /&gt;&#39;Sending email through outlook&lt;br /&gt;&lt;br /&gt;    Set oApp = CreateObject(&quot;Outlook.Application&quot;)&lt;br /&gt;    Set oMail = oApp.CreateItem(0)&lt;br /&gt;    With oMail&lt;br /&gt;        .To = Mailid&lt;br /&gt;        .Subject = &quot;Update Message Subject here&quot;&lt;br /&gt;        .Body = Body&lt;br /&gt;        .Attachments.Add tWB.FullName&lt;br /&gt;        .send&lt;br /&gt;    End With&lt;br /&gt;     &lt;br /&gt;&#39;Delete the temporary file and restore screen updating&lt;br /&gt;    &lt;br /&gt;    tWB.ChangeFileAccess Mode:=xlReadOnly&lt;br /&gt;    Kill tWB.FullName&lt;br /&gt;    tWB.Close SaveChanges:=False&lt;br /&gt;    cWB.Activate&lt;br /&gt;    Application.ScreenUpdating = True&lt;br /&gt;    Set oMail = Nothing&lt;br /&gt;    Set oApp = Nothing&lt;br /&gt;    &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;a href=&quot;https://drive.google.com/file/d/1FqXIV6DNU-eznv-2X1qIbB7TShIMn7PS/view?usp=drive_link &quot; target=&quot;_blank&quot;&gt;Download file with VBA code to send active sheet through outlook&lt;/a&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/7235845626200938262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/07/excel-macros-send-email-with-vba.html#comment-form' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7235845626200938262'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7235845626200938262'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/07/excel-macros-send-email-with-vba.html' title='Excel Macros : Send Email with VBA'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-5331369413325928738</id><published>2010-05-31T21:16:00.000+05:30</published><updated>2023-11-06T14:45:20.525+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="calculating age"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Formulas"/><category scheme="http://www.blogger.com/atom/ns#" term="Working with date function"/><title type='text'>Excel Formula : Calculating Age</title><content type='html'>Today I am sharing with a long formula for calculating age based in Date of Birth as input. &lt;br /&gt;&lt;br /&gt;=YEAR(DATE(YEAR(TODAY())-YEAR(A1),MONTH(TODAY())-MONTH(A1)+1,DAY(TODAY())-DAY(A1)+1))-1900&amp;&quot; Years &quot;&amp;IF(MONTH(DATE(YEAR(TODAY())-YEAR(A1),MONTH(TODAY())-MONTH(A1)+1,DAY(TODAY())-DAY(A1)+1))-1=0,&quot;&quot;,MONTH(DATE(YEAR(TODAY())-YEAR(A1),MONTH(TODAY())-MONTH(A1)+1,DAY(TODAY())-DAY(A1)+1))-1&amp;&quot; Months &quot;)&amp;IF(DAY(DATE(YEAR(TODAY())-YEAR(A1),MONTH(TODAY())-MONTH(A1)+1,DAY(TODAY())-DAY(A1)+1))-1=0,&quot;&quot;,DAY(DATE(YEAR(TODAY())-YEAR(A1),MONTH(TODAY())-MONTH(A1)+1,DAY(TODAY())-DAY(A1)+1))-1&amp;&quot; Days&quot;)&lt;br /&gt;&lt;br /&gt;This formula calculates age of a person with the accuracy of exact years , months and days&lt;br /&gt;&lt;br /&gt;This considers that the Date of Birth is available at Cell A1 of the worksheet. You will need to replace this&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;&lt;a href=&quot;https://drive.google.com/file/d/1Fb6WzJ9Xm5utB5wnSgz0PcZygQtLwo2L/view?usp=drive_link &quot; target=&quot;_blank&quot;&gt;Download excel file containing formula to calculate age based on Date of Birth&lt;/a&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/5331369413325928738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/05/excel-formula-calculating-age.html#comment-form' title='26 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5331369413325928738'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5331369413325928738'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/05/excel-formula-calculating-age.html' title='Excel Formula : Calculating Age'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>26</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-118520081666093107</id><published>2010-04-18T14:30:00.004+05:30</published><updated>2023-11-06T13:11:26.417+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Defined Names"/><category scheme="http://www.blogger.com/atom/ns#" term="Range Name Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Working with Data Range"/><title type='text'>Create Range Name in Excel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Today I am sharing quickest way to create Range Name in Excel. Just 3 easy steps&lt;br /&gt;
&lt;br /&gt;
1. Select the cell(s) you want to name&lt;br /&gt;
2. Type Range name in the name box&lt;br /&gt;
3. Press Enter&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/create-range-name-in-excel.html&quot;&gt;&lt;img alt=&quot;Create Range Name in Excel&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT98438i7I1jy5CwoUsvqKG5sVkrK6VOEjGn_5JjnoTTAOBmVHSSEusARzdJ0PPiqH583w9bU6B6MtaZHsdFhCsN76wDC2Tz57L9Fmt8VqIu_tLk-d5r7IT10oi-4CJV_ZY4QR8SoGkvAl2GMO63Wz5KKs8zCYgYAg6gNzJY0Z6AcMhih_vVwoXxOIi58/s400/CreateRangeNameExcel.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is a list of syntax rules that you need to be aware of when you create and edit names.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Valid characters&lt;/strong&gt; The first character of a name must be a letter, an underscore character (_), or a backslash (\). Remaining characters in the name can be letters, numbers, periods, and underscore characters.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Cell references disallowed&lt;/strong&gt; Names cannot be the same as a cell reference, such as Z$100 or R1C1. Spaces are not valid Spaces are not allowed as part of a name. Use the underscore character (_) and period (.) as word separators, such as, Sales_Tax or First.Quarter.&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Name length&lt;/strong&gt; A name can contain up to 255 characters.&lt;br /&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Case sensitivity&lt;/strong&gt; Names can contain uppercase and lowercase letters. Excel does not distinguish between uppercase and lowercase characters in names. For example, if you created the name Sales and then create another name called SALES in the same workbook, Excel prompts you to choose a unique name&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Check out screen cast below to see it happening.&lt;/b&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/create-range-name-in-excel.html&quot;&gt;&lt;img alt=&quot;Create Range Name in Excel&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG5A0RY7GQDJC1HwEJ6XQoxaBmHaRQ1e05weml49-ByFmBnpglfsM90NjZMoFxwjFMyLoyX8jRKgtl2xf7m8KeTEzK5v6z25DIBtdHK98p-ecWrP9TgzjA4sEX7nayR4x3vdpk0NnI053WmdmUyJnVf1MjOeET8yPoiWVIM451wVFKi2VM5sTmYu_54f8/s400/CreateRangeName.gif&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Named ranges is part of defined names in excel. It is just not limited to a cell on the worksheet or range of cells, it can also be a constant or a formula in your workbook. &lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
It has many uses in Excel, some of them are :-&lt;/h3&gt;
&lt;br /&gt;
1. Make your formulas much easier to understand.&lt;br /&gt;
2. Refer to dynamic ranges in excel by &lt;a href=&quot;http://www.yogeshguptaonline.com/2008/12/defining-dynamic-ranges-range-names.html&quot; target=&quot;_blank&quot;&gt;creating dynamic range names&lt;/a&gt;&lt;br /&gt;
3. Can be used in data validation based on contents on another worksheet&lt;br /&gt;
4. Can be used for conditional formatting based on contents on another worksheet.&lt;br /&gt;
5. These are best used in Excel Macros. It makes your macros more robust&lt;br /&gt;
6. Use them as constant value without referring to contents on your worksheet. &lt;br /&gt;
&lt;br /&gt;
Will be covering some of the topics in my upcoming posts, so stay tuned to learn more uses of defined names in excel.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/118520081666093107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/create-range-name-in-excel.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/118520081666093107'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/118520081666093107'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/create-range-name-in-excel.html' title='Create Range Name in Excel'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT98438i7I1jy5CwoUsvqKG5sVkrK6VOEjGn_5JjnoTTAOBmVHSSEusARzdJ0PPiqH583w9bU6B6MtaZHsdFhCsN76wDC2Tz57L9Fmt8VqIu_tLk-d5r7IT10oi-4CJV_ZY4QR8SoGkvAl2GMO63Wz5KKs8zCYgYAg6gNzJY0Z6AcMhih_vVwoXxOIi58/s72-c/CreateRangeNameExcel.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-7918516182727459908</id><published>2010-04-10T15:21:00.004+05:30</published><updated>2023-11-06T15:28:42.180+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Add Spin Buttons ActiveX Controls"/><category scheme="http://www.blogger.com/atom/ns#" term="Making EMI Calculator"/><title type='text'>Add Spin Buttons Active X Excel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div align=&quot;justify&quot;&gt;
In my previous posts I have shared &lt;strong&gt;&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/emi-calculator.html&quot; target=&quot;_blank&quot;&gt;EMI Calculator&lt;/a&gt;&lt;/strong&gt; with you. This was mode using &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/excel-formula-pmt-function.html&quot;&gt;&lt;b&gt;Excel PMT function&lt;/b&gt;&lt;/a&gt; and Spin Buttons ActiveX Controls in Excel. In this post I am sharing how to add spin buttons ActiveX controls to excel worksheet.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/add-spin-buttons-active-x-excel.html&quot;&gt;&lt;img alt=&quot;Add Spin Buttons Active X Excel&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB7_WQh1fLSbfOK18zL_sSS3Oav505bfnJjV7EyznPBBHBAyuqmEwC_fkZisS6cHPJbT9sRa_77i0945-AWfdCLnlyGLMqPbKaCWC1h9lLvgphSeJ3n6Tasba7u1ZwsfGfdARbkCY1BAfnQJxerl29XsXhjVbWprdB50JP5yxfGMO8MRxhUNu42SqP3tU/s320/SpinButtonsActiveX.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Step 1 &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/show-developer-tab-in-excel-2007-ribbon.html&quot; target=&quot;_blank&quot;&gt;Have Developer Tab visible in your Excel 2007&lt;/a&gt;. In case you already have it proceed to step 2&lt;br /&gt;
Step 2 Click on Insert under controls group&lt;br /&gt;
Step 3 Click on Spin Buttons under ActiveX Controls&lt;br /&gt;
Step 4 Draw Spin Button on your worksheet.&lt;br /&gt;
Step 5 Rename the Spin Button Object&lt;br /&gt;
Step 6 Add VBA code to the Spin Button&lt;br /&gt;
&lt;br /&gt;
Checkout Screen Cast Below&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/add-spin-buttons-active-x-excel.html&quot;&gt;&lt;img alt=&quot;Add Spin Buttons Active X Excel&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR6RxGRJ3t5EbNvAFg4O9RI73goFN1IlM_xvL4xjZvoa3LJSHGvu1CijZ9ByMv2PRPBs04ZlHtmbdSchsYrJKHc4KAsS9eX0Xr7FH3uvGA8nCEwINJrk2cFR1_yTesXhHM9k8wKsiWw8OvbVGqKt0N4C2dTZsR7bZ_wQon-Xn-xte4SkcWghXR6cONjuM/s400/AddSpinButtons.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
In this screen cast we have added spin button next to loan amount and renamed the spin button object as Loan&lt;/div&gt;
&lt;div align=&quot;justify&quot;&gt;
Similarly add two more spin buttons next to Interest Rate and Years. Rename them as Interest and Years respectively.&lt;br /&gt;
&lt;br /&gt;
To make these buttons work we need to add VBA code. Separate macros are required for each button that is why we have renamed the spin buttons. It is to give them a name that can be related later on by us when we look at the macro code. Macro code will be using the names we have given to them&lt;br /&gt;
&lt;br /&gt;
Now to add the VBA code , double click on the spin button object, it will open VBA editor. Copy following &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#WorkSheet&quot; target=&quot;_blank&quot;&gt;VBA code to worksheet module&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;height: 400px; overflow: auto;&quot;&gt;
&lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;#aaaaaa&quot;&gt;&lt;td&gt;&lt;pre&gt;Private Sub Loan_SpinDown()
    With Range(&quot;C4&quot;)
        .Value = WorksheetFunction.Max(100000, .Value - 100000)
    End With
End Sub

Private Sub Loan_SpinUp()
    With Range(&quot;C4&quot;)
        .Value = WorksheetFunction.Min(10000000, .Value + 100000)
    End With
End Sub

Private Sub Interest_SpinDown()
    With Range(&quot;C5&quot;)
        .Value = WorksheetFunction.Max(0.03, .Value - 0.0025)
    End With
End Sub

Private Sub Interest_SpinUp()
    With Range(&quot;C5&quot;)
        .Value = WorksheetFunction.Min(0.25, .Value + 0.0025)
    End With
End Sub
Private Sub Years_SpinDown()
    With Range(&quot;C6&quot;)
        .Value = WorksheetFunction.Max(1, .Value - 1)
    End With
End Sub

Private Sub Years_SpinUp()
    With Range(&quot;C6&quot;)
        .Value = WorksheetFunction.Min(25, .Value + 1)
    End With
End Sub
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
With this your EMI Calculator with Spin Buttons ActiveX Controls is ready&lt;br /&gt;
&lt;br /&gt;
Visit &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/emi-calculator.html&quot; target=&quot;_blank&quot;&gt;EMI Calculator&lt;/a&gt; page if you want to download excel file complete with macros and Spin Buttons Activex controls&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/7918516182727459908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/add-spin-buttons-active-x-excel.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7918516182727459908'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7918516182727459908'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/add-spin-buttons-active-x-excel.html' title='Add Spin Buttons Active X Excel'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB7_WQh1fLSbfOK18zL_sSS3Oav505bfnJjV7EyznPBBHBAyuqmEwC_fkZisS6cHPJbT9sRa_77i0945-AWfdCLnlyGLMqPbKaCWC1h9lLvgphSeJ3n6Tasba7u1ZwsfGfdARbkCY1BAfnQJxerl29XsXhjVbWprdB50JP5yxfGMO8MRxhUNu42SqP3tU/s72-c/SpinButtonsActiveX.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-5437914070115288913</id><published>2010-04-10T13:28:00.003+05:30</published><updated>2023-11-06T15:35:29.054+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Show Developer Tab"/><title type='text'>Show Developer Tab in Excel 2007 Ribbon</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In case you are working with ActiveX Controls or Macros in Excel , you need to have Developers Tab visibile in your Excel 2007. When you start using Excel 2007, developers Tab is not visible , however you can set it visible with following steps&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/show-developer-tab-in-excel-2007-ribbon.html&quot;&gt;&lt;img alt=&quot;Show Developer Tab in Excel 2007 Ribbon&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF9rPu9E5kFYqicBZnEdIA8dZNS3XdrAbdKiUcGO7ETUY7whgqEYrvr5K_HHXH_M6jq88bh1OtTRhrxp4YMVD4OkUaMEdI_hSrYa7aLS9_46A8W_k_fi-O7KI1fZWx8jcXAn-IYdN-26l1e6ftyibDMxDS4zpjUGfCF-_LD8U6Qk9ID2oGh4WfyVBaqyE/s320/ShowDeveloperTabInExcel.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Step 1 - Click MS Office Button&lt;br /&gt;
Step 2 - Click Excel Options&lt;br /&gt;
Step 3 - Click Populor&lt;br /&gt;
Step 4 - Tick Show Developer Tab in the Ribbon check box&lt;br /&gt;
Step 5 - Click Ok&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/5437914070115288913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/show-developer-tab-in-excel-2007-ribbon.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5437914070115288913'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5437914070115288913'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/show-developer-tab-in-excel-2007-ribbon.html' title='Show Developer Tab in Excel 2007 Ribbon'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF9rPu9E5kFYqicBZnEdIA8dZNS3XdrAbdKiUcGO7ETUY7whgqEYrvr5K_HHXH_M6jq88bh1OtTRhrxp4YMVD4OkUaMEdI_hSrYa7aLS9_46A8W_k_fi-O7KI1fZWx8jcXAn-IYdN-26l1e6ftyibDMxDS4zpjUGfCF-_LD8U6Qk9ID2oGh4WfyVBaqyE/s72-c/ShowDeveloperTabInExcel.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-215177408654767143</id><published>2010-04-02T17:49:00.012+05:30</published><updated>2023-11-06T16:02:34.108+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Making EMI Calculator"/><category scheme="http://www.blogger.com/atom/ns#" term="PMT Function in Excel"/><title type='text'>Excel Formula : PMT Function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In my previous post I shared &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/emi-calculator.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;EMI Calculator&lt;/b&gt;&lt;/a&gt; with you. In this post I am sharing how to make EMI Calculator. This has been done using &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#PMT&quot;&gt;PMT Function in excel&lt;/a&gt; to calculate EMI amount and Spin Buttons ActiveX Controls to fine tune the amounts.&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/emi-calculator.html&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;EMI Calculator&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6sFw8Tlyy8qq_XIlYsNKEWHPz2BLjwUjpMl3ric1wFXp89dgvaWEy4fOFQfT2kGLS0VwGr4WGjiVOjBDqEyAjuauLq-OjJ9HwTyfBBwctGTritZ1Fh-fUpZxUr9W2QkCMgb-C5zNGeaShhwuUl9r-iPwdh2Q5-y5lZIL3Jq5dTF2hPgH_k8YlEYNA0Zw/s320/EMICalculator.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;PMT&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#PMT&quot;&gt;Using PMT Function in Excel&lt;/a&gt;&lt;/h3&gt;
&lt;br /&gt;
PMT Function Calculates the payment for a loan based on constant payments and a constant interest rate. For calculating EMI you need 3 inputs.&lt;br /&gt;
&lt;br /&gt;
Loan Amount , Annual Interest Rate, Loan Period in Years. Using these figures EMI can be calculated with PMT Function in Excel&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/excel-formula-pmt-function.html&quot;&gt;&lt;img alt=&quot;EMI Calculator&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhDxCpm3E-v6DJ0Oucg0xdda3CcvN40yr8KQidaGelK4wDXnEkMOHnjVyVz5WsHmlz6vpnyYlD_blxHJ-OEmCTy_ARi0eDCBwp9oSxJohYTzi45pvZ2Ff4BPoHY_D2fcKavCqF1PEYpdW6N3udw8ZzLNmjQCm7dbrTEoYax6Kxu5r0dy7Km4R-cRZP6vA/s320/EMI%20Calculator-1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
  
Syntax : PMT(RATE,NPER,PV,FV,TYPE)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;RATE :&lt;/b&gt; is the interest rate for the loan. In case you are making monthly payments devide the annual rate by 12 to get monthly rate.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;NPER :&lt;/b&gt; is the total number of payments for the loan. When payments are made on monthly basis you need to multiply number of years with 12 to arrive at total number of payments.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;PV :&lt;/b&gt; is the present value, or the total amount that a series of future payments is worth now; also known as the principal. We take this figure as (-) Negative in our formula since it is receipt of funds.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;FV :&lt;/b&gt; is the future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (zero), that is, the future value of a loan is 0. In our formula we omit this figure as we need to reach zero balance at the end of term.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Type :&lt;/b&gt; is the number 0 (zero) or 1 and indicates when payments are due. If payments are due at the end of the period use 0 or omit this figure. use 1 if payments are made at the beginning of the period. In our formula we have omitted this.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;We have calculated our figures with following formulas &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;EMI :&lt;/b&gt; =PMT(Interst/12,Years*12,-LoanAmt)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Total Amount with Interest &lt;/b&gt;- This is total outgo during the loan term. This can be calculated using : = EMI*Years*12&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Flat Interest Rate :&lt;/b&gt; = (Total Amount with Interest - LoanAmt)/LoanAmt/Years : Many financiers talk about Flat interest rate while landing money. They calculate simple interest on entire loan amount for entire period of the loan. Many people go for the loan without understanding the actual interest rate. Flat interest rate looks very attractive as it is much lower than the actual interest rate which is calculated on reducing balance. You can see the difference in the figures above. So be careful while borrowing on flat interest rate.&lt;br /&gt;
&lt;br /&gt;
In next post I will cover &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/add-spin-buttons-active-x-excel.html&quot; target=&quot;_blank&quot;&gt;Adding Spin Buttons ActiveX Controls to Worksheet&lt;/a&gt;.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/215177408654767143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/excel-formula-pmt-function.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/215177408654767143'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/215177408654767143'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/04/excel-formula-pmt-function.html' title='Excel Formula : PMT Function'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6sFw8Tlyy8qq_XIlYsNKEWHPz2BLjwUjpMl3ric1wFXp89dgvaWEy4fOFQfT2kGLS0VwGr4WGjiVOjBDqEyAjuauLq-OjJ9HwTyfBBwctGTritZ1Fh-fUpZxUr9W2QkCMgb-C5zNGeaShhwuUl9r-iPwdh2Q5-y5lZIL3Jq5dTF2hPgH_k8YlEYNA0Zw/s72-c/EMICalculator.gif" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-6281413217778504964</id><published>2010-03-22T09:11:00.007+05:30</published><updated>2023-11-06T16:18:08.859+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="EMI Calculator"/><title type='text'>EMI Calculator</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
My friend is taking a loan to buy a house and he asked me what will be my EMI. He knew following figures and was curious to know his EMI&lt;br /&gt;
&lt;br /&gt;
Loan Amount&lt;br /&gt;
Annual Interest Rate&lt;br /&gt;
Loan Period - Years&lt;br /&gt;
&lt;br /&gt;
I quickly calculated EMI using &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/excel-formula-pmt-function.html&quot; target=&quot;_blank&quot;&gt;PMT function in excel&lt;/a&gt;. This triggered me an idea of making a EMI calculator and sharing it with all of you.&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/emi-calculator.html&quot;&gt;&lt;img alt=&quot;EMI Calculator&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6sFw8Tlyy8qq_XIlYsNKEWHPz2BLjwUjpMl3ric1wFXp89dgvaWEy4fOFQfT2kGLS0VwGr4WGjiVOjBDqEyAjuauLq-OjJ9HwTyfBBwctGTritZ1Fh-fUpZxUr9W2QkCMgb-C5zNGeaShhwuUl9r-iPwdh2Q5-y5lZIL3Jq5dTF2hPgH_k8YlEYNA0Zw/s320/EMICalculator.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Equated Monthly Installments are commonly knows as EMI. As per business dictionary EMI is &quot;Hire purchase, lease, or loan -repayment installments that are constant in amount, and are usually collected in advance as post-dated checks&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;a href=&quot;https://drive.google.com/file/d/1nf0q4ZBQHcQIQ9gzuGKYWHt7km4BVqNZ/view?usp=drive_link &quot; target=&quot;_blank&quot;&gt;Download EMI Calculator Excel file to know your EMI&lt;/a&gt;&lt;/h3&gt;
Input your figures to find out resultant EMI. Use spin buttons to fine tune your results&lt;br /&gt;
&lt;br /&gt;
In next post I will discuss how to make EMI Calculator. This will be about &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/add-spin-buttons-active-x-excel.html&quot; target=&quot;_blank&quot;&gt;adding Spin Buttons ActiveX controls to worksheet&lt;/a&gt; and &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/04/excel-formula-pmt-function.html&quot; target=&quot;_blank&quot;&gt;PMT function&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/6281413217778504964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/emi-calculator.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6281413217778504964'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6281413217778504964'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/emi-calculator.html' title='EMI Calculator'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6sFw8Tlyy8qq_XIlYsNKEWHPz2BLjwUjpMl3ric1wFXp89dgvaWEy4fOFQfT2kGLS0VwGr4WGjiVOjBDqEyAjuauLq-OjJ9HwTyfBBwctGTritZ1Fh-fUpZxUr9W2QkCMgb-C5zNGeaShhwuUl9r-iPwdh2Q5-y5lZIL3Jq5dTF2hPgH_k8YlEYNA0Zw/s72-c/EMICalculator.gif" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-7688670895576787798</id><published>2010-03-17T18:09:00.003+05:30</published><updated>2023-11-06T16:30:27.632+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel subtotals"/><category scheme="http://www.blogger.com/atom/ns#" term="subtotal excel"/><category scheme="http://www.blogger.com/atom/ns#" term="subtotal function excel"/><category scheme="http://www.blogger.com/atom/ns#" term="subtotal in excel"/><category scheme="http://www.blogger.com/atom/ns#" term="subtotals in excel"/><title type='text'>Excel Formula : Subtotal Excel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Most of the time in our reporting we need to do subtotals followed by Grand total at the end of report. I have seen many people using SUM function for subtotals in between and then adding individual cells for calculating grand total at the end. There is nothing wrong with this method if you use it very carefully so that you do not miss any item while calculating grand total at the end. &lt;br /&gt;
&lt;br /&gt;
However better approach is to use Excel Subtotal function for calculating Subtotal and Grand Totals. &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-formula-subtotal-excel.html&quot;&gt;&lt;img alt=&quot;Subtotal Excel&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinrsx1XQVVPF-H25UMiJZTIZoedl9y0aMtppCWcof4I1D69S-cW3-U0kogjNWekV7ecfLo1uZtz-ceMFqEUW-zyo3WGahMXZQyjZuTFYGjUkw8LaLkiAWASzeOs0qJBP_jnoIyHktmepH7aN6zPvrktBdPXPUCQFqdjl_6ntZjuvlF46iA9jGSWTu9Ldo/s320/subtotal.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Image above is showing column B with the Subtotal formula and resultant values with this formula. You may notice that when we use subtotal function for calculating Grand Total, it ignores the values resulting from subtotal function within its range. This method ensures that we do not miss any item while doing Grand Totals for our reports thus higher accuracy. &lt;br /&gt;
&lt;br /&gt;
This becomes more helpful when you edit your report after some time to insert another subtotal. You do not need to remember to correct the final formula calculating the Grand Total.&lt;br /&gt;
&lt;br /&gt;
Another advantage of using Subtotal function is that you need not to recalculate your formulas when used with filteres. This function ignores the values hidden by the filters and considers the values in the visible rows only.&lt;br /&gt;
&lt;br /&gt;
Subtotal can be used for various type of calculations based on what do you want this fucntion to do for you. Syntex for this function is &lt;br /&gt;
&lt;br /&gt;
SUBTOTAL(function_num, ref1, ref2, ...)&lt;br /&gt;
&lt;br /&gt;
Following function numbers can be used in Subtotal function&lt;br /&gt;
&lt;br /&gt;
I have used &quot;9&quot; in my example above for sum you can change it as per your required working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;Center&quot; border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;width: 80%px;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;trbgeven&quot;&gt;&lt;th align=&quot;center&quot; width=&quot;35%&quot;&gt;Function_num&lt;br /&gt;
(Incl hidden values)&lt;/th&gt;&lt;th align=&quot;center&quot; width=&quot;35%&quot;&gt;Function_num&lt;br /&gt;
(Excl hidden values)&lt;/th&gt;&lt;th align=&quot;center&quot; width=&quot;30%&quot;&gt;Function&lt;/th&gt;&lt;/tr&gt;
&lt;tr class=&quot;trbgodd&quot;&gt;&lt;td align=&quot;center&quot;&gt;1&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;101&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;AVERAGE&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;trbgeven&quot;&gt;&lt;td align=&quot;center&quot;&gt;2&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;102&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;COUNT&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;trbgodd&quot;&gt;&lt;td align=&quot;center&quot;&gt;3&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;103&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;COUNTA&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;trbgeven&quot;&gt;&lt;td align=&quot;center&quot;&gt;4&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;104&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;MAX&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;trbgodd&quot;&gt;&lt;td align=&quot;center&quot;&gt;5&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;105&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;MIN&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;trbgeven&quot;&gt;&lt;td align=&quot;center&quot;&gt;6&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;106&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;PRODUCT&lt;/td&gt;&lt;/tr&gt;
&lt;tr class=&quot;trbgodd&quot;&gt;&lt;td align=&quot;center&quot;&gt;7&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;107&lt;/td&gt;&lt;td align=&quot;center&quot;&gt;STDEV&lt;/td&gt;&lt;/tr&gt;
&lt;tr align=&quot;center&quot; class=&quot;trbgeven&quot;&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;108&lt;/td&gt;&lt;td&gt;STDEVP&lt;/td&gt;&lt;/tr&gt;
&lt;tr align=&quot;center&quot; class=&quot;trbgodd&quot;&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;109&lt;/td&gt;&lt;td&gt;SUM&lt;/td&gt;&lt;/tr&gt;
&lt;tr align=&quot;center&quot; class=&quot;trbgeven&quot;&gt;&lt;td&gt;10&lt;/td&gt;&lt;td&gt;110&lt;/td&gt;&lt;td&gt;VAR&lt;/td&gt;&lt;/tr&gt;
&lt;tr align=&quot;center&quot; class=&quot;trbgodd&quot;&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;111&lt;/td&gt;&lt;td&gt;VARP&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/7688670895576787798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/excel-formula-subtotal-excel.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7688670895576787798'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7688670895576787798'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/excel-formula-subtotal-excel.html' title='Excel Formula : Subtotal Excel'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinrsx1XQVVPF-H25UMiJZTIZoedl9y0aMtppCWcof4I1D69S-cW3-U0kogjNWekV7ecfLo1uZtz-ceMFqEUW-zyo3WGahMXZQyjZuTFYGjUkw8LaLkiAWASzeOs0qJBP_jnoIyHktmepH7aN6zPvrktBdPXPUCQFqdjl_6ntZjuvlF46iA9jGSWTu9Ldo/s72-c/subtotal.png" height="72" width="72"/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-4614213842504019019</id><published>2010-03-08T22:08:00.002+05:30</published><updated>2023-11-06T17:23:01.852+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Currency Format"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Number Format"/><category scheme="http://www.blogger.com/atom/ns#" term="Formating Numbers in Excel"/><title type='text'>Format Numbers : Excel Currency Format</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You can add currency symbol to your numbers in excel.&lt;br /&gt;
&lt;br /&gt;
Open Number Format dialog box using Format Cells option or just press Ctrl+1&lt;br /&gt;
&lt;br /&gt;
1. Click Accounting&lt;br /&gt;
2. Choose currency symbol from drop down&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/format-numbers-excel-currency-format.html&quot;&gt;&lt;img alt=&quot;Format Numbers : Excel Currency Format&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlGAYNeErVmTa8y3HpB6ekJrMBvRFdC6yl0SgsHZR3K_Pfo-CpUE3TkkKbmYwdDdOnZthdT3fyY9jnh0VxqjQoGhyjedZ5faFIJ00ikcDmb51aTMaHQPYaFsx0rvJuTTudKO3LW6Ftm_dfXa_7ddAXYEkR6A0VaFqNegxv1LyHlBGiCMR5LIYycbkw4Ac/s320/Add%20Currency%20Symbol.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
In case you do not get your currency symbol from drop down, add your symbol using custom formating option in the same dialogbox&lt;br /&gt;
1. Click Custom&lt;br /&gt;
2. Type - &quot;Rs &quot;#,##0_);[Red](&quot;Rs &quot;#,##0)&lt;br /&gt;
&lt;br /&gt;
I use &quot;Rs &quot; to show numbers in Indian Currency. You can replace it with your symblol.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/format-numbers-excel-currency-format.html&quot;&gt;&lt;img alt=&quot;Format Numbers : Excel Currency Format&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjggnip7exd5wJKjK8EnD9IM9SHB70tt5YCYE7SiG4jms9j54nlVfYGy9YaBph4RXozEDinodci5A9LG_ieOg2AflkfcQIenmEnyOWemPtoz6ssrowwNcBCcRi2m8vsphaU9t43O2xJlgdmyktBFMLuJboazWLkq8WzBdTOmyb4bjXBHN5HobBeqTqXv4g/s320/Add%20Currency%20Symbol2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/4614213842504019019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/format-numbers-excel-currency-format.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/4614213842504019019'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/4614213842504019019'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/format-numbers-excel-currency-format.html' title='Format Numbers : Excel Currency Format'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlGAYNeErVmTa8y3HpB6ekJrMBvRFdC6yl0SgsHZR3K_Pfo-CpUE3TkkKbmYwdDdOnZthdT3fyY9jnh0VxqjQoGhyjedZ5faFIJ00ikcDmb51aTMaHQPYaFsx0rvJuTTudKO3LW6Ftm_dfXa_7ddAXYEkR6A0VaFqNegxv1LyHlBGiCMR5LIYycbkw4Ac/s72-c/Add%20Currency%20Symbol.png" height="72" width="72"/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-3345999191485490637</id><published>2010-03-07T19:11:00.008+05:30</published><updated>2023-11-06T17:26:49.492+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pivot Tables"/><category scheme="http://www.blogger.com/atom/ns#" term="Profit and Loss report using Pivot Tables"/><title type='text'>Pivot Tables : P&amp;L reporting for Multi Location Organisation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I have recently started a series via guest posts on &lt;a href=&quot;http://chandoo.org/wp/&quot; target=&quot;_blank&quot;&gt;pointy haired dilbert&lt;/a&gt; famous excel blog also known as PHD or &lt;a href=&quot;http://chandoo.org/wp/&quot; target=&quot;_blank&quot;&gt;Chandoo.org&lt;/a&gt;. This blog is run by Chandoo a excel blogger and &lt;a href=&quot;https://mvp.support.microsoft.com/profile/Purnachandra.Duggirala&quot; target=&quot;_blank&quot;&gt;Microsoft excel MVP&lt;/a&gt;. Most of you must be knowing chandoo, those who do not know about him can &lt;a href=&quot;http://chandoo.org/wp/about&quot; target=&quot;_blank&quot;&gt;know more about chandoo&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In this series we are covering on how to manage Profit and Loss (P&amp;amp;L) account reporting for Multi Location organization.&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/pivot-tables-p-reporting-for-multi.html&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;P&amp;amp;L Report using Pivot Table&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAx1a0d8LSNACpUUCO0pb88uKoEqUSWrVpRdPQeD1X4EVs6jnge9RX7JppixcBvRZaNlNhPRl4B_XdRJN4AkjTziVzziqLjaj2cuQoACGN68oJ1V7zw442JX4NDz6CwbN-0JYK7JBz2HLGuly67hxfNDRQypqW-zXQ_5pJw7c-GlRSxZPRfy0AuOy0Jp4/s320/profit-loss-report-with-calculated-fields.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
During this series our aim is to learn how we can do our P&amp;amp;L reporting on various dimensions with few clicks.&lt;br /&gt;
&lt;br /&gt;
We are using Pivot Tables for our reporting purpose and will setup P&amp;amp;L report of a Retails chain with multiple locations divided into various regions.&lt;br /&gt;
&lt;br /&gt;
Topics coverted in this series are :&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1. &lt;/strong&gt;&lt;a href=&quot;http://chandoo.org/wp/2010/02/04/profit-loss-reporting-in-excel-1/&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Data sheet structure for Preparing P&amp;amp;L using Pivot Tables&lt;/strong&gt; &lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;2. &lt;/strong&gt;&lt;a href=&quot;http://chandoo.org/wp/2010/02/10/profit-loss-reports-excel-2/&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Preparing P&amp;amp;L Pivot Table using Data sheet&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;3. &lt;/strong&gt;&lt;a href=&quot;http://chandoo.org/wp/2010/02/25/p-l-reports-calculated-fields-3/&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Adding Calculated Fields to Pivot Table P&amp;amp;L&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;4. &lt;/strong&gt;&lt;a href=&quot;http://chandoo.org/wp/2010/03/03/explore-profit-loss-reports-4/&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;Exploring Pivot Table P&amp;amp;L Reports&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br /&gt;
5. &lt;strong&gt;&lt;a href=&quot;http://chandoo.org/wp/2010/03/24/qtrly-half-yearly-pl-reports-5/&quot; target=&quot;_blank&quot;&gt;Preparing Quarterly and Half yearly P&amp;amp;L using grouping option&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;
6. &lt;strong&gt;&lt;a href=&quot;http://chandoo.org/wp/2010/04/21/budget-v-actual-profit-loss-reports-6/&quot; target=&quot;_blank&quot;&gt;Budget V/s Actual report using Pivot&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Do not think that series is only about the Profit and Loss Account. This series is also about PivotTables. We will cover many of PivotTable tricks during our series. I hope you will be able to use those tricks elsewhere also.&lt;br /&gt;
&lt;br /&gt;
Follow this series on &lt;a href=&quot;http://chandoo.org/wp/&quot; target=&quot;_blank&quot;&gt;PHD&lt;/a&gt;, I am sure that at the end of this series you will be able to do your P&amp;amp;L reporting on various dimentions with just few clicks.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/3345999191485490637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/pivot-tables-p-reporting-for-multi.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/3345999191485490637'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/3345999191485490637'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/pivot-tables-p-reporting-for-multi.html' title='Pivot Tables : P&amp;L reporting for Multi Location Organisation'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAx1a0d8LSNACpUUCO0pb88uKoEqUSWrVpRdPQeD1X4EVs6jnge9RX7JppixcBvRZaNlNhPRl4B_XdRJN4AkjTziVzziqLjaj2cuQoACGN68oJ1V7zw442JX4NDz6CwbN-0JYK7JBz2HLGuly67hxfNDRQypqW-zXQ_5pJw7c-GlRSxZPRfy0AuOy0Jp4/s72-c/profit-loss-report-with-calculated-fields.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-8605423537359261768</id><published>2010-03-04T11:52:00.009+05:30</published><updated>2023-11-06T18:21:47.029+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Deploy Macros Found Elsewhere"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><title type='text'>Excel VBA : Deploy Macros Found Elsewhere</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Today I am sharing various ways to add macros found elsewhere to a Excel file where that macro is to be deployed. Will be covering 6 ways to add macro code to your excel file.&lt;br /&gt;
&lt;br /&gt;
1. &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#Regular&quot;&gt;Excel VBA : Add code to a Regular Module&lt;/a&gt;&lt;br /&gt;
2. &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#WorkBook&quot;&gt;Excel VBA : Add code to WorkBook Module&lt;/a&gt;&lt;br /&gt;
3. &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#WorkSheet&quot;&gt;Excel VBA : Add code to Worksheet Module&lt;/a&gt;&lt;br /&gt;
4. &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#CopyModule&quot;&gt;Excel VBA : Copy Module from Existing Workbook&lt;/a&gt;&lt;br /&gt;
5. &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#CopyForm&quot;&gt;Excel VBA : Copy Forms from Existing Workbook&lt;/a&gt;&lt;br /&gt;
6. &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#ImportBAS&quot;&gt;Excel VBA : Import code from .bas file&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;Regular&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#Regular&quot;&gt;Excel VBA : Add code to a Regular Module&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
-Copy code from the source&lt;br /&gt;
-Open the workbook where you need to deploy this code&lt;br /&gt;
-Press ALT+F11 (Keep ALT key pressed while pressing F11 key)&lt;br /&gt;
-Click Insert &amp;gt; Module (Shortcut ALT+I+M)&lt;br /&gt;
-Paste macro code Click Edit &amp;gt; Paste (Shortcut CTRL+V) in right window where cursor is&lt;br /&gt;
&lt;br /&gt;
See screencast below for Alternate method using right click menu through mouse.&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Regular&quot;&gt;&lt;img alt=&quot;Excel VBA : Add code to a Regular Module&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2vF-mHTuP8TK1V9XihhcBq3MPdlOtJItelvj574RzwwnJFRzN8oZJbdENy9XIeFo6RVZXJ5Hv-JEI_AXXp-jwyNocgTMoDiLo0_897pyBjOR84JHf7GZrZD6irPRxCXyLMjujlDM90o8PJt6DkDCMWPzU0QB79w5xjvJpG-awxs2vmVU9j5wCjVkQZtY/s320/CopytoRegularModule.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;  
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;WorkBook&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#Workbook&quot;&gt;Excel VBA : Add code to WorkBook Module&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
Some macros are event based macros and get activated as soon as particular event happens. Events which are universally applicable to the entire workbook are called workbook events. These macros will run once a particular event happens in a particular workbook. Typical example of such macros are Auto Open / Auto Close macros&lt;br /&gt;
&lt;br /&gt;
-Copy code from the source&lt;br /&gt;
-Open the workbook where you need to deploy this&lt;br /&gt;
-Press ALT+F11 (Keep ALT key pressed while pressing F11 key)&lt;br /&gt;
-Double Click on ThisWorkbook object&lt;br /&gt;
-Paste macro code Click Edit &amp;gt; Paste (Shortcut CTRL+V) in right window where cursor is&lt;br /&gt;
&lt;br /&gt;
See screencast below&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Workbook&quot;&gt;&lt;img alt=&quot;Excel VBA : Add code to WorkBook Module&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIMlpE6lIDDUSW8QTSJf1H4PrwbEMyNUBcKjzxw991U3DU6kYeXqqA_hhVLIqrCuNY_syduEJ-pylDk0q9MkpqQug8QxvSM-40uTQcI7vFS_FpBzd9uaDhn8VglnOJOp9fnme8OhI3zEIP3y_jYE3-M98oIvKBrdCVCO-XEc0O6rVU1PO89xNofQs8XGs/s320/CopytoThisWorkbook.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;WorkSheet&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#WorkSheet&quot;&gt;Excel VBA : Add code to Worksheet Module&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
Some of event based macros get activated as soon as particular event happens on a particular worksheet within the workbook. These are the macros which will run on a event in particular worksheet. Typical example of such macros are Worksheet Select / Worksheet Change macros&lt;br /&gt;
&lt;br /&gt;
-Copy code from the source&lt;br /&gt;
-Open the workbook where you need to deploy this&lt;br /&gt;
-Press ALT+F11 (Keep ALT key pressed while pressing F11 key)&lt;br /&gt;
-Double Click on Worksheet object (Choose particular worksheet where you want to deploy the code)&lt;br /&gt;
-Paste macro code Click Edit &amp;gt; Paste (Shortcut CTRL+V) in right window where cursor is&lt;br /&gt;
&lt;br /&gt;
See screencast below&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#WorkSheet&quot;&gt;&lt;img alt=&quot;Excel VBA : Add code to Worksheet Module&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBO4vqTPZ1C8Exw_a6s869oOUuc-2eFndQJ3zRD2sNryqaBZTkeQnwrNaoUS2c152VYxAuEaS9g_-_LvEUm7_-0MlDFOqldTaIQ7_vKZK9LQnyT31HBdtY9v29i91yZv1feCDgdOiYutRIJJvWcUrAvz0_qy-3Hh95pbaRaZK5DGLYVVEkwp6sbc7GZh4/s320/CopytoWorksheetModule.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;CopyModule&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#CopyModule&quot;&gt;Excel VBA : Copy Module from Existing Workbook&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
You may have the code in existing workbook (Source) with you or recently downloaded from Internet. Following steps will deploy it to new workbook (Target)&lt;br /&gt;
-Open both the Workbooks (Source and Target)&lt;br /&gt;
-Press ALT+F11 (Keep ALT key pressed while pressing F11 key)&lt;br /&gt;
-In Left window of project explorer find Source workbook&lt;br /&gt;
-Select the source module&lt;br /&gt;
-Drag it to the Target workbook&lt;br /&gt;
&lt;br /&gt;
See screencast below&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#CopyModule&quot;&gt;&lt;img alt=&quot;Excel VBA : Copy Module from Existing Workbook&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglBvnp7fwNbT8y0ZXMEpHS93nAZnH6qLV-1bUAe5CVQhux-EI0rHkjZjXOFnC2vm4gHc5IfaS5dpdKCUmMG9TCnyZr7OILCkUZu58bGwaNCIPew6mPV8wOrt7TRholydhty1-TYBDE616ya2J73Owow8F2AeGd8iho7oyQBAqedt5wvXC8_PAlLaBaL3M/s320/CopyFromAnotherWorkbook.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;CopyForm&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#CopyForm&quot;&gt;Excel VBA : Copy Forms from Existing Workbook&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
Steps and requirement is similar to copy code from existing workbook&lt;br /&gt;
&lt;br /&gt;
-Open both the Workbooks (Source and Target)&lt;br /&gt;
-Press ALT+F11 (Keep ALT key pressed while pressing F11 key)&lt;br /&gt;
-In Left window of project explorer find Source workbook&lt;br /&gt;
-Select the Form to be copied&lt;br /&gt;
-Drag it to the Target workbook&lt;br /&gt;
&lt;br /&gt;
See screencast below&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#CopyForm&quot;&gt;&lt;img alt=&quot;Excel VBA : Copy Forms from Existing Workbook&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1WQscQUHc4okHktn_58T3JFixqXO3Tn19GgQHNPceIOJ5DwxwfXhysOmK_4SoLnayjYt8DiqebzrxXncME8yiJ29Ai3Q1jzdRTDdZJUm8THD_6M4Q-tncp_owcxoOEZSfeMdIZw-SNvm33t8qK1i3B1bgjVG7j4lZC6JfHf_5NszA8W7YO2__7DeWjsM/s320/CopyFormsfromAnotherWorkbook.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/null&quot; name=&quot;ImportBAS&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=2509167754737584590#ImportBAS&quot;&gt;Excel VBA : Import code from .bas file&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 140%;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
Some time you may get code in downloadable file with extention BAS. This is visual basic file .bas , you can import this to your workbook. &lt;br /&gt;
&lt;br /&gt;
-Open your Workbook&lt;br /&gt;
-Press ALT+F11 (Keep ALT key pressed while pressing F11 key)&lt;br /&gt;
-In Left window of project explorer find Source workbook&lt;br /&gt;
-Click File &amp;gt; Import (CTRL+M)&lt;br /&gt;
-Choose downloaded VB file (*.BAS , *.FRM, *.CLS)&lt;br /&gt;
-Click Open&lt;br /&gt;
&lt;br /&gt;
See screencast below&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#ImportBAS&quot;&gt;&lt;img alt=&quot;Excel VBA : Import code from .bas file&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIQaazxfniLC_BofwLMc82-qqmX5nuILGqO3zMMTsQ03QzBhHQWkluaf9odQDfxygEJPNWZhZUR_uclz5ffvK5R_xhg5crI25cuV_oZz4Rc1r_lYW0dVTmRjQkspsjlj24a5boZXCS6Eac8lOzEdGr2ZCAm5nstumu-A3AYRBczkIjMhBXp_hT9c-Djpw/s320/ImportVBACodeFromFile.gif&quot;/&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/8605423537359261768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#comment-form' title='55 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/8605423537359261768'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/8605423537359261768'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html' title='Excel VBA : Deploy Macros Found Elsewhere'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2vF-mHTuP8TK1V9XihhcBq3MPdlOtJItelvj574RzwwnJFRzN8oZJbdENy9XIeFo6RVZXJ5Hv-JEI_AXXp-jwyNocgTMoDiLo0_897pyBjOR84JHf7GZrZD6irPRxCXyLMjujlDM90o8PJt6DkDCMWPzU0QB79w5xjvJpG-awxs2vmVU9j5wCjVkQZtY/s72-c/CopytoRegularModule.gif" height="72" width="72"/><thr:total>55</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-1063086895511306071</id><published>2010-02-12T07:51:00.005+05:30</published><updated>2023-11-06T18:39:06.304+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sorting Dates by Birthday"/><category scheme="http://www.blogger.com/atom/ns#" term="Working with date function"/><title type='text'>Excel Sort Dates by Birthday</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Today&#39;s post is in &lt;a href=&quot;http://www.yogeshguptaonline.com/2009/02/custom-formating-date-format.html?showComment=1265919839549#c8567151039386470643&quot; target=&quot;_blank&quot;&gt;response to comment&lt;/a&gt; by Donna.&lt;br /&gt;
&lt;br /&gt;
Problem on hand is to sort data based on birthday of a person. If you sort it on the date of birth it has year also and you will not be able to sort them by month and date.&lt;br /&gt;
&lt;br /&gt;
One of the possible solution is to drop the Year and then sort them. You will need to add one more column to your data as sort key and use following formula considering that you have Date of Birth in Cell &quot;B2&quot;&lt;br /&gt;
&lt;br /&gt;
=TEXT(B2,&quot;MMDD&quot;) will convert 02-Dec-50 as 1202 and 24-Sep-89 as 0924. Now if you sort your data based on new column &quot;Sort Key&quot; on ascending manner, you will get 24-Sep-89 before 02-Dec-50&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/02/excel-sort-dates-by-birthday.html&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;excel-sort-dates-by-birthday&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6yfjYOC5n-KMlOxNlRBd5lkAL65TNwGbY7dsYv_vWDv0yP9aiCt7lUnyTU4C90dxdD5CkWNSBKi1aUI4W1AszDGsg3UiSsaIab9XN2s7qAuyEREoSIBA8Ku-6p4eNv37ao0um-bPsd3tIlEPB22QhrQ03wWZbaoGS2e1sHEgjMkxx_luKD3gqjuRpFeI/s320/Sorting%20dates%20on%20date%20of%20birth.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
You will be able to get this result only if the date of birth in your data is a real date. In case not you will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2009/10/excel-convert-text-to-date.html&quot; target=&quot;_Blank&quot;&gt;convert text date to real dates&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Use following formula to know Birthday during current year &lt;br /&gt;
&lt;br /&gt;
=--TEXT(B2,&quot;DD/MMM&quot;)&lt;br /&gt;
&lt;br /&gt;
You will get error in case birthday is 29-Feb and current year is not a leap year. I suppose this is correct as person will not have birthday every year.&lt;br /&gt;
&lt;br /&gt;
There are couple of other solutions to the sort dates on birthday , you can share one by way of comments if you know&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/1063086895511306071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/02/excel-sort-dates-by-birthday.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/1063086895511306071'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/1063086895511306071'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/02/excel-sort-dates-by-birthday.html' title='Excel Sort Dates by Birthday'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6yfjYOC5n-KMlOxNlRBd5lkAL65TNwGbY7dsYv_vWDv0yP9aiCt7lUnyTU4C90dxdD5CkWNSBKi1aUI4W1AszDGsg3UiSsaIab9XN2s7qAuyEREoSIBA8Ku-6p4eNv37ao0um-bPsd3tIlEPB22QhrQ03wWZbaoGS2e1sHEgjMkxx_luKD3gqjuRpFeI/s72-c/Sorting%20dates%20on%20date%20of%20birth.gif" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-23291451363166412</id><published>2010-02-01T23:31:00.001+05:30</published><updated>2017-10-22T20:44:40.000+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Formulas"/><category scheme="http://www.blogger.com/atom/ns#" term="Sum Top 5 values in Unsorted Range"/><title type='text'>Excel Formula : Sum top 5 in unsorted range</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Today I am sharing a formula to sum top 5 values in an unsorted range. &lt;br /&gt;
&lt;br /&gt;
=SUMPRODUCT(LARGE(Data,ROW(1:5)))&lt;br /&gt;
&lt;br /&gt;
See the screen cast below to know secret behind this formula.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/02/excel-formula-sum-top-5-in-unsorted.html&quot;&gt;&lt;img alt=&quot;Photobucket&quot; border=&quot;0&quot; src=&quot;https://ce03ef7b-a-2ae8f997-s-sites.googlegroups.com/a/yogeshguptaonline.com/resources/excel-macros/Sum%20Top%205%20in%20unsorted%20range.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Actually we are using array formula to find top 5 values , then summing them to find the sum of top 5 values in unsorted range.&lt;br /&gt;
&lt;br /&gt;
From the screen cast you can see that &lt;br /&gt;
&lt;br /&gt;
1. We are entering this formula using sumproduct, which is shortcut to enter array formulas in excel. &lt;br /&gt;
2. Data is a named range A3 to B36&lt;br /&gt;
3. We are using excel function Large to find Top values.&lt;br /&gt;
4. Row(1:5) - is is shortcut to create an array of numbers {1,2,3,4,5} as Kth position &lt;br /&gt;
&lt;br /&gt;
This leads to find top 5 values in unsorted range and then summing them.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Food for thought :&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Just change Row(1:5) to Row(1:10) you will be able to find Top 10 values.&lt;br /&gt;
&lt;br /&gt;
Or Change Large with small to find out bottom 5 values.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;a href=&quot;http://sites.google.com/a/yogeshguptaonline.com/resources/excel-formulas/sumtop5inunsortedrange.xls?attredirects=0&amp;amp;d=1&quot;&gt;Download Excel file with formula to sum top 5 values in an unsorted range&lt;/a&gt;&lt;/h3&gt;
to play furhter with this formula&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/23291451363166412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/02/excel-formula-sum-top-5-in-unsorted.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/23291451363166412'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/23291451363166412'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/02/excel-formula-sum-top-5-in-unsorted.html' title='Excel Formula : Sum top 5 in unsorted range'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-6746062816988202564</id><published>2010-01-16T22:05:00.002+05:30</published><updated>2010-01-16T22:10:45.854+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Closest Match"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Formulas"/><title type='text'>Excel Formula : Closest Match</title><content type='html'>Arun Singla one of my blog reader has sent me Excel Formula in response to my previous post &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/01/custom-function-excel-closest-match.html&quot; target=&quot;_blank&quot;&gt;Custom Function : Excel Closest Match using VBA&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Formula sent by Arun gives similar results as achieved by Custom Function using VBA. I am sharing the formula with you.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;For getting less than equal to value&lt;/strong&gt;&lt;br /&gt;=IF(COUNTIF(Data,Target)&gt;=1,Target,SMALL(Data,COUNTIF(Data,&quot;&lt;&quot;&amp;amp;Target))) &lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;For getting greater than equal to value&lt;/strong&gt;&lt;br /&gt;=IF(COUNTIF(Data,Target)&gt;=1,Target,LARGE(Data,COUNTIF(Data,&quot;&gt;&quot;&amp;amp;Target)))&lt;br /&gt;&lt;br /&gt;In above formula : Data is unsorted data range name, target is the named range having target value.&lt;br /&gt;&lt;br /&gt;Now let me explain how does this formula works. I will explain first formula which calculates less than equal to value.&lt;br /&gt;&lt;br /&gt;Step 1 - Formula calculates the number of values matching target value using countif function of excel. COUNTIF(Data,Target) gives the total number of values matching exactly with the target. In case you get even one value matching with the target, you return the target as closest match, no need for further working.&lt;br /&gt;&lt;br /&gt;Step 2 - In case formula does not get matching value at step 1 , it moves to find the closest match. SMALL(Data,COUNTIF(Data,&quot;&lt;&quot;&amp;amp;Target)) Returns the k-th smallest value in a data set. COUNTIF(Data,&quot;&lt;&quot;&amp;amp;Target) gives us total number of data points less than target. We are using this as k-th smallest value which is closest match less than the target value. I hope this explanation is not confusing to you. Check out the &lt;a href=&quot;http://sites.google.com/a/yogeshguptaonline.com/resources/excel-formulas/CMATCH.xls?attredirects=0&amp;amp;d=1&quot;&gt;file with this formula to find closest match in excel&lt;/a&gt; to understand it better.</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/6746062816988202564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/01/excel-formula-closest-match.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6746062816988202564'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6746062816988202564'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/01/excel-formula-closest-match.html' title='Excel Formula : Closest Match'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-8018143693738503276</id><published>2010-01-14T18:37:00.004+05:30</published><updated>2010-03-05T17:00:49.686+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Custom Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Closest Match"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><title type='text'>Custom Function : Excel Closest Match using VBA</title><content type='html'>Some days back I got a mail from Kevin asking for how to get closest match in a list sorted in acending order&lt;br /&gt;&lt;div style=&quot;hight: 200px,width=180px&quot;&gt;&lt;table bgcolor=&quot;#cccc99&quot;&gt;&lt;tbody&gt;&lt;tr style=&quot;WORD-BREAK: break-all&quot;&gt;&lt;tr bgcolor=&quot;#cccc99&quot;&gt;&lt;pre&gt;&lt;br /&gt;Hi Yogesh, is there a way for me to find the&lt;br /&gt;closest match (greater than or equal to) to&lt;br /&gt;a value in a list? The list is sorted in&lt;br /&gt;ascending order and cannot be changed.&lt;br /&gt;Regards,&lt;br /&gt;Kevin&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;I responded to him with a Custom Function capable to Finding Closest Match as per his requirement. This worked as the list was sorted in ascending order. He sent me a thanks note for this.&lt;br /&gt;&lt;br /&gt;However this left certain questions in my mind such as&lt;br /&gt;&lt;br /&gt;1. What if the list is not sorted, Custom function should be able to do this in unsorted list.&lt;br /&gt;&lt;br /&gt;2. He wanted greater than equal to value, however it should be able to handle less than equal to value also&lt;br /&gt;&lt;br /&gt;With these things in my mind I worked out another custom function which works with unsorted data range and is capable of finding both type of closest match in excel.&lt;br /&gt;&lt;br /&gt;I am sharing updated Custom Function with all of you. You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Regular&quot; target=&quot;_blank&quot;&gt;copy this code to regular VBA module&lt;/a&gt; of your workbook&lt;br /&gt;&lt;div style=&quot;OVERFLOW: auto; HEIGHT: 400px&quot;&gt;&lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;#aaaaaa&quot;&gt;&lt;td&gt;&lt;pre&gt;&lt;br /&gt;Function cmatch(ByVal n, l As Range, Optional Switch As Integer = 1)&lt;br /&gt;&#39;**************************************************************************************&lt;br /&gt;&#39;* Custom Function by Yogesh Gupta , yogesh@yogeshguptaonline.com                     *&lt;br /&gt;&#39;* Custom Function to find Closest Match in an unsorted data                          *&lt;br /&gt;&#39;* use Switch value as -1 in case you want less than equal to closest match           *&lt;br /&gt;&#39;* Default value for Switch is 1, and will find greater than equal to closest match   *&lt;br /&gt;&#39;**************************************************************************************&lt;br /&gt;&lt;br /&gt;If Switch = 1 Then               &#39; This will get greater than equal to value&lt;br /&gt;        &lt;br /&gt;        a = Application.Max(l)&lt;br /&gt;        If a &lt; n Then            &#39; Error in case list does not have value greater than or equal to n&lt;br /&gt;            cmatch = &quot;#N/A&quot;&lt;br /&gt;        Else&lt;br /&gt;            For Each c In l&lt;br /&gt;                If c &gt;= n Then&lt;br /&gt;                    If c &lt; a Then a = c&lt;br /&gt;                End If&lt;br /&gt;            Next c&lt;br /&gt;            cmatch = a&lt;br /&gt;        End If&lt;br /&gt;        &lt;br /&gt;ElseIf Switch = -1 Then          &#39; This will get less than equal to value&lt;br /&gt;&lt;br /&gt;        a = Application.Min(l)&lt;br /&gt;        If a &gt; n Then            &#39; Error in case list does not have value less than or equal to n&lt;br /&gt;            cmatch = &quot;#N/A&quot;&lt;br /&gt;        Else&lt;br /&gt;        &lt;br /&gt;        For Each c In l&lt;br /&gt;            If c &lt;= n Then&lt;br /&gt;                If c &gt; a Then a = c&lt;br /&gt;            End If&lt;br /&gt;        Next c&lt;br /&gt;        &lt;br /&gt;        cmatch = a&lt;br /&gt;        End If&lt;br /&gt;       &lt;br /&gt;Else&lt;br /&gt;&lt;br /&gt;        cmatch = &quot;#N/A&quot;            &#39; Error in case of Invalid Input&lt;br /&gt;&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;End Function&lt;br /&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;&lt;a href=&quot;http://sites.google.com/a/yogeshguptaonline.com/resources/excel-macros/closestmatch.xls?attredirects=0&amp;amp;d=1&quot;&gt;Download Excel file with Custom Function to Find Closest Match to see how it works&lt;/a&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/8018143693738503276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/01/custom-function-excel-closest-match.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/8018143693738503276'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/8018143693738503276'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/01/custom-function-excel-closest-match.html' title='Custom Function : Excel Closest Match using VBA'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-5378915991186336663</id><published>2010-01-01T13:10:00.005+05:30</published><updated>2017-10-22T20:49:12.420+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Date Picker"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Pop up Calendar"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><title type='text'>Excel Macros : Excel Date Picker</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is first post of the year 2010, I wish all my blog readers a very happy and prospurous year. Today I am sharing Excel Date Picker Utility with you. Following picture will demonstrate some to the capabilities of this utility.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.yogeshguptaonline.com/2010/01/excel-macros-excel-date-picker.html&quot;&gt;&lt;img alt=&quot;Photobucket&quot; border=&quot;0&quot; src=&quot;https://ce03ef7b-a-2ae8f997-s-sites.googlegroups.com/a/yogeshguptaonline.com/resources/excel-macros/date%20picker.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZXeSHoRYrHPrBkCXcqy-kTB6_UXl4_sODY2Q-99BHqw8ZjJeQPTffnEbGdlj1xK-o8dlDloBUnivmLpL5sW2GtZsYD3bmEDXfAGkfO8wybGQOhCAi1xKSwNUh9o2C1PWhjVkqql7htDI/s1600-h/Date+Picker.png&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5421644324468742466&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZXeSHoRYrHPrBkCXcqy-kTB6_UXl4_sODY2Q-99BHqw8ZjJeQPTffnEbGdlj1xK-o8dlDloBUnivmLpL5sW2GtZsYD3bmEDXfAGkfO8wybGQOhCAi1xKSwNUh9o2C1PWhjVkqql7htDI/s400/Date+Picker.png&quot; style=&quot;cursor: hand; display: block; height: 298px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This utility will help you with following&lt;br /&gt;
&lt;br /&gt;
1. In case you select a cell with date, or select any cell around the cell with a date. It will show floating button on the left side of the cell. If you click on the floating button it will show popup calender.&lt;br /&gt;
2. In case the cell already has a date , the calendar will show same date by default, else it will show current date.&lt;br /&gt;
3. You can jump the months by click on the month value on the popup calendar.&lt;br /&gt;
4. Click on the year will show spin buttons next to it and you can change year easily with spin buttons.&lt;br /&gt;
5. When you click on the date in popup calander, it will insert date clicked to the selected cell&lt;br /&gt;
6. You can also use Ctrl+Shift+d to show popup calender on your screen.&lt;br /&gt;
7. In case you get pop up calander and you do not want to click any date, just press Esc to close the pou up calendar.&lt;br /&gt;
&lt;br /&gt;
This utility could be usefull in following ways&lt;br /&gt;
&lt;br /&gt;
1. Many people end up entering date in text format as some time it is difficult to enter the date in correct computer readable format. With the popup calander, system takes care of the proper date entry.&lt;br /&gt;
2. Some times you have to get data from other users and you want them to enter dates in proper format so that rest of the worksheet can use those date inputs. With this utility you can be assured about this issue.&lt;br /&gt;
&lt;br /&gt;
You may figure out many more usage based on your needs. The VBA code for Excel date Picker is available in the downloadable file. You can further modify the code as per your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Now how to use this Excel Date Picker Utility &lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Download file and save it as Excel Addin on your machine.&lt;br /&gt;
2. You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#WorkSheet&quot; target=&quot;_blank&quot;&gt; copy this code to worksheet module&lt;/a&gt; of your workbook.&lt;br /&gt;
&lt;br /&gt;
You will need to add this code to show the Floating button. This code will creat the button in case it does not exist on it. All other features like cell menu on right click and popup calender on Ctrl+Shift+d will be available in case you do not add this code by saving download able file as Excel Addin on your machine. I am suggesting this because I still need to learn how to trigger worksheet selection change event with a vba code in addin.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;height: 400px; overflow: auto; width: 200x;&quot;&gt;
&lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;pre&gt;Private Sub FloatingButton_Click()
Calander.Show
End Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
        
    If Application.CutCopyMode = 1 Then
    Exit Sub
    ElseIf Target.Cells.Count &amp;gt; 1 Then
    Exit Sub
    Else
    
        Set r = Target
        Hasdate = 0

        For x = -1 To 1
        For y = -1 To 1

        On Error GoTo Etrap1

        If IsDate(r.Offset(x, y)) Then
            Hasdate = 1
            Exit For
        End If
Rsume1:
        Next y
        If Hasdate = 1 Then Exit For
Rsume:
        Next x
            
            If Hasdate = 1 Then
                
                FloatingButton.Left = r.Offset(0, 1).Left
                FloatingButton.Top = r.Top
                FloatingButton.Visible = True
                
            Else
                
                If Not FloatingButton.Visible = False Then
                FloatingButton.Visible = False
                End If
             
            End If
    
Exit Sub
    
    End If
    
Etrap1:
    If r.Row = 1 Then
        Resume Rsume
    ElseIf r.Column = 1 Then
        Resume Rsume1
    End If


End Sub

Private Sub Worksheet_Activate()
    Dim s As String
    On Error Resume Next
    s = ActiveSheet.FloatingButton.Caption
    If Err.Number &amp;lt;&amp;gt; 0 Then
    ActiveSheet.OLEObjects.Add(ClassType:=&quot;Forms.CommandButton.1&quot;, Link:=False _
        , DisplayAsIcon:=False, Left:=147.75, Top:=34.5, Width:=15.75, Height:= _
        15.75).Select
    
    Selection.Name = &quot;FloatingButton&quot;
    ActiveSheet.OLEObjects(&quot;FloatingButton&quot;).Object.Caption = &quot;&quot;
    ActiveSheet.OLEObjects(&quot;FloatingButton&quot;).Object.BackColor = &amp;amp;H80000005
    Range(&quot;A1&quot;).Select
    FloatingButton.Visible = False
    End If
    On Error GoTo 0

End Sub&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
However this will not work on the files you send to other users. In that case you need to builtin the entire utility into the file you are sending out.&lt;br /&gt;
&lt;br /&gt;
Following steps will help you to do this.&lt;br /&gt;
&lt;br /&gt;
1. You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Workbook&quot; target=&quot;_blank&quot;&gt; copy this code to workbook module&lt;/a&gt; of your workbook&lt;br /&gt;
&lt;div style=&quot;height: 400px; overflow: auto; width: 200x;&quot;&gt;
&lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;pre&gt;Private Sub Workbook_Open()
    Dim NewControl As CommandBarControl
    Application.OnKey &quot;+^{D}&quot;, &quot;Module1.ShowCalander&quot;
    On Error Resume Next
    Application.CommandBars(&quot;Cell&quot;).Controls(&quot;Show Date Picker&quot;).Delete
    On Error GoTo 0
    Set NewControl = Application.CommandBars(&quot;Cell&quot;).Controls.Add
    With NewControl
        .Caption = &quot;Show Date Picker&quot;
        .OnAction = &quot;Module1.ShowCalander&quot;
        .BeginGroup = True
    End With
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
    On Error Resume Next
    Application.CommandBars(&quot;Cell&quot;).Controls(&quot;Show Date Picker&quot;).Delete
End Sub&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
2. You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Regular&quot; target=&quot;_blank&quot;&gt; copy this code to regular VBA module - Module1 &lt;/a&gt; of your workbook&lt;br /&gt;
&lt;div style=&quot;height: 200px; overflow: auto; width: 200x;&quot;&gt;
&lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;pre&gt;Declare Function FindWindow Lib &quot;user32&quot; Alias &quot;FindWindowA&quot; (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function GetWindowLong Lib &quot;user32&quot; Alias &quot;GetWindowLongA&quot; (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Declare Function SetWindowLong Lib &quot;user32&quot; Alias &quot;SetWindowLongA&quot; (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare Function DrawMenuBar Lib &quot;user32&quot; (ByVal hwnd As Long) As Long
Declare Function SendMessage Lib &quot;user32&quot; Alias &quot;SendMessageA&quot; (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Declare Function ReleaseCapture Lib &quot;user32&quot; () As Long
Private Const GWL_STYLE As Long = (-16)
Private wHandle As Long

Sub ShowCalander()
    Calander.Show
End Sub&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
3. &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#CopyForm&quot; target=&quot;_blank&quot;&gt;Move form named calander from the downloadable file to your file&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
With these steps you can send the file to other users and it will work in similar way as it works on your machine.&lt;br /&gt;
&lt;br /&gt;
In addition you can &lt;a href=&quot;http://www.yogeshguptaonline.com/2009/05/macros-in-excel-forcing-users-to-enable.html&quot; target=&quot;_blank&quot;&gt;force users to enable macros&lt;/a&gt; while using your file&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
&lt;a href=&quot;http://sites.google.com/a/yogeshguptaonline.com/resources/excel-macros/datepicker.xls?attredirects=0&amp;amp;d=1&quot;&gt;Download file with Excel Date Picker Utility&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/5378915991186336663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2010/01/excel-macros-excel-date-picker.html#comment-form' title='51 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5378915991186336663'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5378915991186336663'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2010/01/excel-macros-excel-date-picker.html' title='Excel Macros : Excel Date Picker'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZXeSHoRYrHPrBkCXcqy-kTB6_UXl4_sODY2Q-99BHqw8ZjJeQPTffnEbGdlj1xK-o8dlDloBUnivmLpL5sW2GtZsYD3bmEDXfAGkfO8wybGQOhCAi1xKSwNUh9o2C1PWhjVkqql7htDI/s72-c/Date+Picker.png" height="72" width="72"/><thr:total>51</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-595254743607698695</id><published>2009-12-05T09:59:00.001+05:30</published><updated>2010-03-05T16:54:59.671+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Custom Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Extract Number From String"/><category scheme="http://www.blogger.com/atom/ns#" term="Extract Number From Text"/><category scheme="http://www.blogger.com/atom/ns#" term="Get Number From String"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Text To Numbers"/><title type='text'>Excel Macros : Text to Numbers VBA</title><content type='html'>Some times you get data which has some numbers surrounded by lots of text or non text characters or space in between text and numbers. Position of the numbers within text is not same in each data line. In such situation you may not be able to apply standard Excel Formulas to extract number from text. In such scenario you will need to use VBA to Extract Number from String. Today I am sharing with you UDF to perform this function. Just for illustration following table will show you capability of this UDF.&lt;br /&gt;&lt;table ALIGN=CENTERcellspacing=&quot;0&quot; cellpadding=&quot;0&quot; width=&quot;80%&quot; border=&quot;0&quot;&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Text Data&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;Extracted Numeric Value&lt;/Div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;xusdhd 10005000&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10005000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;AKSID0100050000 A1&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100050000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;IU EW KFID100050000 A 1&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100050000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;10005 0000 A1&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100050000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;01000 A1 B 12&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1000&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Above Numeric Values have been extracted using simple formula =Number(B3) , In this case text string is in Cell B3. This formula is not available in standard excel functions. To apply this formula You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Regular&quot; target=&quot;_blank&quot;&gt; copy this code to regular VBA module&lt;/a&gt; of your workbook&lt;br /&gt;&lt;div style=&quot;overflow: auto; width: 200x; height: 400px;&quot;&gt; &lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;Pre&gt;&lt;br /&gt;&#39;****************************************************************&lt;br /&gt;&#39;* User Defined Function (UDF) to Get Numeric Value from String *&lt;br /&gt;&#39;****************************************************************&lt;br /&gt;Function Number(ByVal CurrString As String)&lt;br /&gt;    Dim temp As String&lt;br /&gt;    &lt;br /&gt;    temp = Left(CurrString, 1)&lt;br /&gt;    Do While Not IsNumeric(temp)&lt;br /&gt;        If Len(CurrString) &lt;= 1 Then&lt;br /&gt;            Exit Function&lt;br /&gt;        Else&lt;br /&gt;            CurrString = Mid(CurrString, 2)&lt;br /&gt;            temp = Left(CurrString, 1)&lt;br /&gt;        End If&lt;br /&gt;    Loop&lt;br /&gt;    Number = Val(CurrString)&lt;br /&gt;End Function&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/Pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://sites.google.com/a/yogeshguptaonline.com/resources/excel-macros/ExtractNumberfromString.xls?attredirects=0&amp;d=1&quot;&gt;&lt;H3&gt;Download excel file with UDF for Text to Numbers&lt;/H3&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/595254743607698695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/595254743607698695'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/12/excel-macros-text-to-numbers-vba.html' title='Excel Macros : Text to Numbers VBA'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-7580232784723396100</id><published>2009-11-22T14:37:00.000+05:30</published><updated>2009-11-22T14:39:05.589+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Formulas"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Vlookup Function"/><title type='text'>Excel Formula : Using Vlookup Function</title><content type='html'>One Golden Rule while working with Excel Formula&#39;s is never enter a hard coded value into Formula. If you can calculate a value with a formula, it should not be hard coded into your formula&#39;s&lt;br /&gt;&lt;br /&gt;Today we will talk about how this is relevant in using Vlookup Function. We all use Vlookup function in our day to day working with the data in Excel. Given below is the Syntex for Vlookup function just for reference purpose.&lt;br /&gt;&lt;br /&gt;VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjujMUtT4hlniD_z8fciZhFVSVIqeD51tN6V4JHlc3apbQDZer4i40pvDeRAw5_iNbHTnM2ILAhkoSOk8RlRiHacKDrEqdS3q5kGKWYRVFVeP4iUFjetalJS3jcNQZ-Psh8K2xDO9xeBM8/s1600/TableforVlookupFunction.jpg&quot;&gt;&lt;img id=&quot;BLOGGER_PHOTO_ID_5406843976046189906&quot; style=&quot; MARGIN: 0px 10px 10px 0px; WIDTH: 400px; CURSOR: hand; HEIGHT: 295px&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjujMUtT4hlniD_z8fciZhFVSVIqeD51tN6V4JHlc3apbQDZer4i40pvDeRAw5_iNbHTnM2ILAhkoSOk8RlRiHacKDrEqdS3q5kGKWYRVFVeP4iUFjetalJS3jcNQZ-Psh8K2xDO9xeBM8/s400/TableforVlookupFunction.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;Picture on the above is typical data table used by us. Column C to N are hidden in this just to keep the table visible on screen. We need to get the sales value using vlookup formula. Most of the users (including me till some time back) hardcode col_index_num. Most common use of Vlookup Function for getting data from the table like above will be a formula like this. &lt;br /&gt;=VLOOKUP(B13,B3:P10,15,0)&lt;br /&gt;&lt;br /&gt;Here lookup_value is given at Cell B13, table_array is a Range B3:P10, col_index_num is 15 as it is 15th Column starting from Column B, range_lookup is 0 as we are looking for exact match.&lt;br /&gt;&lt;br /&gt;In above formula the col_index_num is hard coded. Formula will give correct results till you do not insert or delete columns in between. Once you have done so , all your formulas will not update sales figure but reference some other value.&lt;br /&gt;&lt;br /&gt;However with the following formula you can overcome this issue. You can calculate the number of columns with the help of Columns function of Excel.&lt;br /&gt;=VLOOKUP(B13,$B$3:$P$10,COLUMNS(B3:P3),0)&lt;br /&gt;&lt;br /&gt;COLUMNS(B3:P3) will be calculated as 15 and in case you insert any column between table_array your formula will change to VLOOKUP(B13,$B$3:$Q$10,COLUMNS(B3:Q3),0). Now columns function withing your formula will be calculated as 16 giving you correct value. This makes your Vlookup function dynamic.&lt;br /&gt;&lt;br /&gt;Do refer to my earlier tip on &lt;a href=&quot;http://http//www.yogeshguptaonline.com/2008/12/defining-dynamic-ranges-range-names.html&quot;&gt;Dynamic Range Names &lt;/a&gt;to make table_array also dynamic.&lt;br /&gt;&lt;br /&gt;You are welcome to share your way of entering Vlookup function by way of comments to this post.</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/7580232784723396100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-formula-using-vlookup-function.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7580232784723396100'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/7580232784723396100'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-formula-using-vlookup-function.html' title='Excel Formula : Using Vlookup Function'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjujMUtT4hlniD_z8fciZhFVSVIqeD51tN6V4JHlc3apbQDZer4i40pvDeRAw5_iNbHTnM2ILAhkoSOk8RlRiHacKDrEqdS3q5kGKWYRVFVeP4iUFjetalJS3jcNQZ-Psh8K2xDO9xeBM8/s72-c/TableforVlookupFunction.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-991389705082221801</id><published>2009-11-18T17:05:00.003+05:30</published><updated>2010-03-05T16:53:56.059+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Custom Functions"/><category scheme="http://www.blogger.com/atom/ns#" term="Email Address Extract"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><title type='text'>Excel Macro : Email Address Extract from String</title><content type='html'>Last week I got a mail from my friend asking for help in extracting email IDs from data available with him. The position of the mail IDs within the text string was not same and he was finding it difficult to us extract email addresses. &lt;br /&gt;&lt;br /&gt;I wrote a quick UDF for him which did the job. I am sharing same with you as you may find it use full. &lt;br /&gt;&lt;br /&gt;Sample of the data and mail IDs extracted with the UDF is as below&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpx-my1eXIM4WtHp_4KSoeoPVvyr0bN_qEaGwOOtiqVkkCz2QTtTW-xa155njoQgCkYCSmR36VdX0uf9O-SGlYLdmvC7icad0ustM2Pf5cyQhcfwAcWLAVIGh0Mo_iTDoMpWnYPergjBA/s1600/GetmailID.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 117px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpx-my1eXIM4WtHp_4KSoeoPVvyr0bN_qEaGwOOtiqVkkCz2QTtTW-xa155njoQgCkYCSmR36VdX0uf9O-SGlYLdmvC7icad0ustM2Pf5cyQhcfwAcWLAVIGh0Mo_iTDoMpWnYPergjBA/s400/GetmailID.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5405389200414307394&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here is the VBA code to Email Address Extract from String. You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Regular&quot; target=&quot;_blank&quot;&gt; copy this code to regular VBA module&lt;/a&gt; of your workbook&lt;br /&gt;&lt;div style=&quot;overflow: auto; width: 200x; height: 300px;&quot;&gt; &lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;Pre&gt;&lt;br /&gt;Function Getmailid(cell As Range) As String&lt;br /&gt;&lt;br /&gt;Dim Textstrng As String&lt;br /&gt;&lt;br /&gt;Textstrng = cell.Text&lt;br /&gt;Position@ = InStr(1, Textstrng, &quot;@&quot;)&lt;br /&gt;EmStart = InStrRev(Textstrng, &quot; &quot;, Position@)&lt;br /&gt;If EmStart = 0 Then EmStart = 1&lt;br /&gt;EmEnd = InStr(Position@, Textstrng, &quot; &quot;)&lt;br /&gt;If EmEnd = 0 Then EmEnd = Len(Textstrng) + 1&lt;br /&gt;&lt;br /&gt;mailid = Trim(Mid(Textstrng, EmStart, EmEnd - EmStart))&lt;br /&gt;&lt;br /&gt;If Right(mailid, 1) = &quot;.&quot; Then&lt;br /&gt;Getmailid = Left(mailid, Len(mailid) - 1)&lt;br /&gt;Else&lt;br /&gt;Getmailid = mailid&lt;br /&gt;End If&lt;br /&gt;End Function&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/Pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href=&quot;http://sites.google.com/a/yogeshguptaonline.com/resources/excel-macros/EmailAddressExtractfromstring.xls?attredirects=0&amp;d=1&quot;&gt;&lt;H3&gt;Download file with VBA code to Email Address Extract from Text String&lt;/H3&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/991389705082221801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html#comment-form' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/991389705082221801'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-macro-email-address-extract-from.html' title='Excel Macro : Email Address Extract from String'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpx-my1eXIM4WtHp_4KSoeoPVvyr0bN_qEaGwOOtiqVkkCz2QTtTW-xa155njoQgCkYCSmR36VdX0uf9O-SGlYLdmvC7icad0ustM2Pf5cyQhcfwAcWLAVIGh0Mo_iTDoMpWnYPergjBA/s72-c/GetmailID.jpg" height="72" width="72"/><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-6511851382483438605</id><published>2009-11-13T20:08:00.002+05:30</published><updated>2010-03-05T16:52:13.432+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adding non printing information to your worksheet"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Hide cell contents before printing"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><title type='text'>Excel Macro : Hide Cell Content from Printing</title><content type='html'>Some times we have some information in worksheet which is we need to input but do not want that information to be printed. With the following macro code you can achieve the desired results&lt;br /&gt;&lt;br /&gt;You will need to &lt;a href=&quot;http://www.yogeshguptaonline.com/2010/03/excel-vba-deploy-macros-found-elsewhere.html#Workbook&quot; target=&quot;_blank&quot;&gt; copy this code to workbook module&lt;/a&gt; of your workbook&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;overflow: auto; width: 200x; height: 250px;&quot;&gt; &lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;Pre&gt;&lt;br /&gt;Private Sub Workbook_BeforePrint(Cancel As Boolean)&lt;br /&gt;    Application.EnableEvents = False&lt;br /&gt;    Cancel = True&lt;br /&gt;    A = Range(&quot;A1&quot;).NumberFormat&lt;br /&gt;    Range(&quot;A1&quot;).NumberFormat = &quot;;;;&quot;&lt;br /&gt;    &lt;br /&gt;    Application.Dialogs(xlDialogPrint).Show&lt;br /&gt;     &lt;br /&gt;    Range(&quot;A1&quot;).NumberFormat = A&lt;br /&gt;    Application.EnableEvents = True&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/Pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;As per above code the contents of Range A1 will not be printed, you will need to change this reference to your cell.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://sites.google.com/a/yogeshguptaonline.com/resources/excel-macros/HideCellInformationwhileprinting.xls?attredirects=0&quot;&gt;&lt;H3&gt;Download file with the code to hide cell contents before printing&lt;/H3&gt;&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/6511851382483438605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-macro-hide-cell-content-from.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6511851382483438605'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6511851382483438605'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-macro-hide-cell-content-from.html' title='Excel Macro : Hide Cell Content from Printing'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-4500756832523407095</id><published>2009-11-06T17:10:00.003+05:30</published><updated>2009-11-06T17:16:22.240+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Formulas"/><category scheme="http://www.blogger.com/atom/ns#" term="multiple sumif criteria"/><category scheme="http://www.blogger.com/atom/ns#" term="sumif multiple"/><category scheme="http://www.blogger.com/atom/ns#" term="sumif multiple criteria"/><title type='text'>Excel Formula : Sumif Multiple Criteria</title><content type='html'>This is in continuation of my earlier post on &lt;a href=&quot;http://www.yogeshguptaonline.com/2009/10/excel-formulas-countif-multiple.html&quot;target=&quot;_blank&quot;&gt;Countif Multiple Criteria&lt;/a&gt; The same logic can be extended to calculate sum based on multiple criteria. &lt;br /&gt;&lt;br /&gt;In case you have Excel 2007, you can use built in function Sumifs . This will let you add multiple conditions. &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4jpB6wQMHX3S61LDzvwAXBCThhdTJOnbKez0wvfm8AN32qS4GpzxqMzD68kyFEBNS-2xQPINO-1QFZbWjh2KcEOeVjvF-NNZI_n_nVu4vZ-kaLfyKD9NSwWkkKJm_VBkY2ZRPSPmh2_s/s1600-h/sumif+Multiple+Criteria+-+Table.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 290px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4jpB6wQMHX3S61LDzvwAXBCThhdTJOnbKez0wvfm8AN32qS4GpzxqMzD68kyFEBNS-2xQPINO-1QFZbWjh2KcEOeVjvF-NNZI_n_nVu4vZ-kaLfyKD9NSwWkkKJm_VBkY2ZRPSPmh2_s/s320/sumif+Multiple+Criteria+-+Table.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5400876369338082722&quot; /&gt;&lt;/a&gt;&lt;br /&gt;In case of Excel 2003 or earlier version using Pivot table will get you the results easily but if You don&#39;t have liberty to use Pivot, then you will need formula trick. Consider that you have a data table like this and you need to know what is sales in &quot;North&quot; region by sales man &quot;Ram&quot;. &lt;br /&gt;&lt;br /&gt;Following sumproduct formula will do the calculation for you. &lt;br /&gt;&lt;br /&gt;=SUMPRODUCT(($B$13:$B$28=&quot;North&quot;)*($C$13:$C$28=&quot;Ram&quot;)*($E$13:$E$28))&lt;br /&gt;&lt;br /&gt;Another way is to write an array formula. &lt;br /&gt;=SUM(($B$13:$B$28=&quot;North&quot;)*($C$13:$C$28=&quot;Ram&quot;)*($E$13:$E$28))&lt;br /&gt;However this will need to be confirmed with CTRL+Shift+Enter (CSE)&lt;br /&gt;&lt;br /&gt;After CSE formula will show {} in formula bar. This will covert it to an array formula. The formula will look like following picture after CSE in formula bar&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1H25dg97QCgsI3Opk10nRNU_dnHwpytfssj4_t9z8Mjhb8yH7D9Asm2G4IcC9is4V6N3A8M-xvSswSq2nh-Xw4kwSDq1zxT8QLbdqt_poELyTO-s6pRZO7P5Q193ddlIcQhirfT_D7wQ/s1600-h/Sumif+Multiple+Criteria+-+Array+Formula.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 320px; height: 15px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1H25dg97QCgsI3Opk10nRNU_dnHwpytfssj4_t9z8Mjhb8yH7D9Asm2G4IcC9is4V6N3A8M-xvSswSq2nh-Xw4kwSDq1zxT8QLbdqt_poELyTO-s6pRZO7P5Q193ddlIcQhirfT_D7wQ/s320/Sumif+Multiple+Criteria+-+Array+Formula.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5400878866607016786&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I suggest you to use Sumproduct formula as you may find it difficult to enter array formula.&lt;br /&gt;&lt;br /&gt;If you see the dialog for sumproduct formula entry you will understand the reasons behind this recommendation. Actually sumproduct is a workaround to enter array formula. &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFpjIIW0enJVTyckpnJueT1G0OqfZIWWiy_-2-bbsS_V9nEbFQhfzpqKUWccpPNxG3gRHwEN3Bl3RD9YDZcrmr-d0EbdaHvUCB0HjedNqGSrnRb28i5DZR6AUs-njp2p7eOXtNUA6pTls/s1600-h/Sumproduct+Array.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 400px; height: 109px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFpjIIW0enJVTyckpnJueT1G0OqfZIWWiy_-2-bbsS_V9nEbFQhfzpqKUWccpPNxG3gRHwEN3Bl3RD9YDZcrmr-d0EbdaHvUCB0HjedNqGSrnRb28i5DZR6AUs-njp2p7eOXtNUA6pTls/s400/Sumproduct+Array.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5400881777940865426&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you see above dialog screen , you will notice &lt;br /&gt;&lt;br /&gt;1. When you enter ranges, you are actually entering array&#39;s.&lt;br /&gt;2. This formula is entered in single array only to get the results.&lt;br /&gt;&lt;br /&gt;If you try to use sumproduct as normal formula to calculate sum based on multiple conditions , you will not get the results.&lt;br /&gt;&lt;br /&gt;Actually multiple condistional sum can be calculated using arrays only and sumproduct allows you to enter array&#39;s easily and you can over come the difficulty of entering array formula.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://in.yogeshguptaonline.com/resources/excel-formulas/SumifMutlipleCondition.xls?attredirects=0&quot;target=&quot;_blank&quot;&gt;&lt;H3&gt;Download Excel File having Sumif Multiple Criteria Formulas&lt;/H3&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/4500756832523407095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-formula-sumif-multiple-criteria.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/4500756832523407095'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/4500756832523407095'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/11/excel-formula-sumif-multiple-criteria.html' title='Excel Formula : Sumif Multiple Criteria'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4jpB6wQMHX3S61LDzvwAXBCThhdTJOnbKez0wvfm8AN32qS4GpzxqMzD68kyFEBNS-2xQPINO-1QFZbWjh2KcEOeVjvF-NNZI_n_nVu4vZ-kaLfyKD9NSwWkkKJm_VBkY2ZRPSPmh2_s/s72-c/sumif+Multiple+Criteria+-+Table.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-1528776040457600695</id><published>2009-10-30T17:29:00.003+05:30</published><updated>2010-02-08T21:12:13.991+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Macros"/><category scheme="http://www.blogger.com/atom/ns#" term="Formating Cells in Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Formating Numbers in Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Indian Style Comma Separation for numbers"/><category scheme="http://www.blogger.com/atom/ns#" term="Macros in Excel"/><title type='text'>Excel Number Format : Indian Style Comma Separation</title><content type='html'>Yesterday I got a comment asking for custom number format for Indian style comma separation. While I responded to question by providing the custom number format I knew that the answer does not handle the complete range of numbers and can not be applied in all the cases. This forced me to look around for a solution that can be applied for all kind of numbers. &lt;br /&gt;&lt;br /&gt;Just for the information of people who are not aware of Indian Style of comma separation, I have produced table below which explains Indian style formatting for various numbers. The basic rule is that first comma separation happens at 3 digits i.e. 1000 then it happens after every 2 digits. Check out table below for better understanding.&lt;br /&gt;&lt;TABLE width=&quot;80%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;Number&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;Formatted As&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1,00,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1000000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10,00,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10000000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1,00,00,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100000000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10,00,00,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1000000000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1,00,00,00,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10000000000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;10,00,00,00,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;100000000000&lt;/DIV&gt;&lt;/td&gt;&lt;td&gt;&lt;div align=&quot;right&quot;&gt;1,00,00,00,00,000.00&lt;/DIV&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/TABLE&gt;&lt;br /&gt;Soon I realised that there is no single custom format available for handling all kind of number length and we need separate format for it depending upon the number of digits. Doing this manually and accuratly every time is very difficult. This leaves only one option to automate this through a macro. I got a Macro code for doing this and modified and tested that for long numbers. &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.yogeshguptaonline.com/2009/10/excel-number-format-indian-style-comma.html&quot;&gt;&lt;img src=&quot;http://i978.photobucket.com/albums/ae263/yogeshguptaonline/IndianStyleCommaSeparation.gif&quot; border=&quot;0&quot; alt=&quot;IndiaStyleCommaSeparation&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I am sharing the macro code with you. You will need to select the numbers and run macro to format them as per India style comma sepration.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;overflow: auto; width: 200x; height: 400px;&quot;&gt; &lt;table bgcolor=&quot;#777777&quot;&gt;&lt;tr bgcolor=&quot;#AAAAAA&quot;&gt;&lt;td&gt;&lt;Pre&gt;&lt;br /&gt;Sub IndianNumberFormat()&lt;br /&gt;For Each c In Selection&lt;br /&gt;Select Case Abs(c.Value)&lt;br /&gt;Case Is &lt; 100000&lt;br /&gt;c.Cells.NumberFormat = &quot;##,##0.00&quot;&lt;br /&gt;Case Is &lt; 10000000&lt;br /&gt;c.Cells.NumberFormat = &quot;#\,##\,##0.00&quot;&lt;br /&gt;Case Is &lt; 1000000000&lt;br /&gt;c.Cells.NumberFormat = &quot;#\,##\,##\,##0.00&quot;&lt;br /&gt;Case Is &lt; 1000000000&lt;br /&gt;c.Cells.NumberFormat = &quot;#\,##\,##\,##0.00&quot;&lt;br /&gt;Case Is &lt; 100000000000#&lt;br /&gt;c.Cells.NumberFormat = &quot;#\,##\,##\,##\,##0.00&quot;&lt;br /&gt;Case Else&lt;br /&gt;c.Cells.NumberFormat = &quot;#\,##\,##\,##\,##\,##0.00&quot;&lt;br /&gt;End Select&lt;br /&gt;Next c&lt;br /&gt;End Sub&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/Pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For easy application of this code you need to save it as a excel addin or add it to your personal macro book. Adding a custom toolbar for this code will make it easy to apply. You can chage the number of decimal places by changing the number of zeros at the end of custom number format given above.</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/1528776040457600695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/10/excel-number-format-indian-style-comma.html#comment-form' title='43 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/1528776040457600695'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/1528776040457600695'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/10/excel-number-format-indian-style-comma.html' title='Excel Number Format : Indian Style Comma Separation'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>43</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-5622459923055233398</id><published>2009-10-27T21:37:00.003+05:30</published><updated>2009-10-27T21:52:09.788+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Excel Number Format"/><category scheme="http://www.blogger.com/atom/ns#" term="Formating Cells in Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Formating Numbers in Excel"/><title type='text'>Excel Number Format : Telephone numbers with leading + sign</title><content type='html'>This is in continuation of my earlier post &lt;a href=&quot;http://www.yogeshguptaonline.com/2009/04/custom-formating-excel-number-format.html&quot; target=&quot;_blank&quot;&gt;Custom Formating - Excel Number Format&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Excel does not display the leading + sign entered by users, similarly the leading zeros are also not recoganised by excel. However custom formating trick can help you do this. Refer to the following table, where in Phone number 9971112814 has been formated differently to display different formats for the same cell contents.&lt;br /&gt;&lt;br /&gt;91 is country code for India, you can change it to whatever code you want to display the number accordingly. &lt;br /&gt;&lt;br /&gt;&lt;TABLE width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;Format&lt;/td&gt;&lt;td&gt;Displayed as&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;+91 0000000000&lt;/td&gt;&lt;td&gt;+91 9971112814&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;+91(0)0000000000&lt;/td&gt;&lt;td&gt;+91(0)9971112814&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;+91(0)000-000-0000&lt;/td&gt;&lt;td&gt;+91(0)997-111-2814&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;0091 0000000000&lt;/td&gt;&lt;td&gt;0091 9971112814&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/TABLE&gt;</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/5622459923055233398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/10/excel-number-format-telephone-numbers.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5622459923055233398'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/5622459923055233398'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/10/excel-number-format-telephone-numbers.html' title='Excel Number Format : Telephone numbers with leading + sign'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2509167754737584590.post-6770447092880995768</id><published>2009-10-23T18:57:00.013+05:30</published><updated>2010-02-05T14:25:55.815+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="countif array"/><category scheme="http://www.blogger.com/atom/ns#" term="countif multiple conditions"/><category scheme="http://www.blogger.com/atom/ns#" term="Countif Multiple Criteria"/><category scheme="http://www.blogger.com/atom/ns#" term="countif two criteria"/><category scheme="http://www.blogger.com/atom/ns#" term="countif with multiple criteria"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel Formulas"/><category scheme="http://www.blogger.com/atom/ns#" term="multiple countif"/><title type='text'>Excel Formulas : Countif Multiple Criteria</title><content type='html'>Many times we need to perform a count based on multiple criteria.&lt;br /&gt;&lt;br /&gt;This is very simple if you are using Excel 2007. You have standard excel function Countifs which lets you do the count based on multiple criteria. &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5SuINvPxkw7atbfHNAP5AvbnSxZsaQbBiI5DbU8LA8X3k6F4y8ceVaRfPNRLd04wBVOifAJUMI22A2jnEn9X4pLLP3W4K-1FMzt7Npq-QblTYgwlpJxzZOyti5weV57vgXVr0qeZPGw1t/s1600-h/Countif+Multiple+Criteria+-+Table.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 312px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5SuINvPxkw7atbfHNAP5AvbnSxZsaQbBiI5DbU8LA8X3k6F4y8ceVaRfPNRLd04wBVOifAJUMI22A2jnEn9X4pLLP3W4K-1FMzt7Npq-QblTYgwlpJxzZOyti5weV57vgXVr0qeZPGw1t/s400/Countif+Multiple+Criteria+-+Table.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5395787098323064994&quot; /&gt;&lt;/a&gt;&lt;br /&gt;But if you are using Excel 2003 this becomes tricky as you do not have any standard function that lets you do this. However you can do it using Pivot Tables. Sometimes you just need the count based on multiple criteria to be put into a report and using Pivot tables for such report may not be a viable option. &lt;br /&gt;&lt;br /&gt;In such scenarios you need to go for a workaround using excel formula. Considering you have a data table like this and you want to know the number of customers in North Area serviced by Sales Man by name of Ram.&lt;br /&gt;&lt;br /&gt;If you have Excel 2007 then it very simple just use &lt;br /&gt;=COUNTIFS($B$13:$B$28,&quot;North&quot;,$C$13:$C$28,&quot;Ram&quot;) and it will give you count result 3.&lt;br /&gt;&lt;br /&gt;For Excel 2003 users My favorite for such kind of calculation is Sumproduct function and you can do it with the help of following formula. &lt;br /&gt;=SUMPRODUCT(($B$13:$B$28=&quot;North&quot;)*($C$13:$C$28=&quot;Ram&quot;))&lt;br /&gt;This formula will give you result as 3 customers. &lt;br /&gt;You can add as many conditions here but be sure that the height of the range is same for all ranges mentioned in this formula&lt;br /&gt;&lt;br /&gt;This actually is a workaround for another method array formula.&lt;br /&gt;=SUM(($B$13:$B$28=&quot;North&quot;)*($C$13:$C$28=&quot;Ram&quot;)) confirmed with CTRL+Shift+Enter&lt;br /&gt;Once you confirm this formula with CTRL+Shift+Enter it will add {} to the formula which will be visible in the formula bar only. &lt;br /&gt;&lt;br /&gt;Look at the screen cast below to know the difference it make to the normal formula once confirmed as CSE formula. Look for the addtional {} added to formula&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.yogeshguptaonline.com/2009/10/excel-formulas-countif-multiple.html&quot;&gt;&lt;img src=&quot;http://i978.photobucket.com/albums/ae263/yogeshguptaonline/CountifMultipleArrayformula.gif&quot; border=&quot;0&quot; alt=&quot;www.yogeshguptaonline.com&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;H3&gt;&lt;a href=&quot;http://in.yogeshguptaonline.com/resources/excel-formulas/CountifMutlipleCondition.xls?attredirects=0&amp;d=1&quot;target=&quot;_blank&quot;&gt;Download file having countif multiple conditions formula&lt;/a&gt;&lt;/H3&gt;&lt;br /&gt;&lt;br /&gt;You may find it difficult to enter array formula that is why I suggest you to go for SUMPRODUCT method. &lt;br /&gt;To know more about array formulas you can read &lt;b&gt;&lt;H3&gt;&lt;a href=&quot;http://office.microsoft.com/en-us/excel/HA010872901033.aspx&quot; target=&quot;_blank&quot;&gt;Introducing array formulas in Excel&lt;/a&gt;&lt;/H3&gt;&lt;/B&gt;.</content><link rel='replies' type='application/atom+xml' href='https://www.yogeshguptaonline.com/feeds/6770447092880995768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.yogeshguptaonline.com/2009/10/excel-formulas-countif-multiple.html#comment-form' title='70 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6770447092880995768'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/2509167754737584590/posts/default/6770447092880995768'/><link rel='alternate' type='text/html' href='https://www.yogeshguptaonline.com/2009/10/excel-formulas-countif-multiple.html' title='Excel Formulas : Countif Multiple Criteria'/><author><name>Yogesh Gupta</name><uri>http://www.blogger.com/profile/08246342663404873564</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCz4ilhrnYrAMfEsoBgcoX9cA7Z3ENdFKChmxH7XwN2WPzDFwtZWQ-loYE89BkkfPwOZjbT47ayonNOqDQ7WfFRkd_B8FEeLQTLNfrXdAkmNJWpOFlMiCqjpF-x5K4OA/s220/Yogesh.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5SuINvPxkw7atbfHNAP5AvbnSxZsaQbBiI5DbU8LA8X3k6F4y8ceVaRfPNRLd04wBVOifAJUMI22A2jnEn9X4pLLP3W4K-1FMzt7Npq-QblTYgwlpJxzZOyti5weV57vgXVr0qeZPGw1t/s72-c/Countif+Multiple+Criteria+-+Table.jpg" height="72" width="72"/><thr:total>70</thr:total></entry></feed>