<?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-7759974220422868422</id><updated>2025-08-06T11:41:24.793-07:00</updated><category term="excel"/><category term="formulas"/><category term="VBA"/><category term="analytics"/><category term="ShortCuts"/><title type='text'>Excel and Analytics</title><subtitle type='html'>Excel tips and tricks</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>42</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-2904855282519591607</id><published>2022-01-15T09:35:00.001-08:00</published><updated>2024-04-17T21:17:38.420-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>Text functions in Excel for data cleansing</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;,serif;&quot;&gt;If you are a
regular user of Excel and deal with lot of text data, then mastering text
functions in Excel is crucial. Excel has in-built text functions to help
cleansing data for you. Below are some the text functions in excel helpful for quick
data cleansing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;,serif;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;,serif;&quot;&gt;&lt;b&gt;1.&lt;u&gt;CLEAN&lt;/u&gt;:&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;,serif;&quot;&gt;CLEAN function clears any non-printable characters from the text. Non-printable
characters are first 32 to characters of ASCII table. For example in cell A1,
enter the formula “=CHAR(27)” this displays a character “&lt;/span&gt;&lt;span style=&quot;font-family: Lucida Fax, serif;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif;&quot;&gt;” as shown below, which
represents escape character and it is a non-printable character.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;,serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj1j9GCGBq2YE1Kx1ZRdhnx-8okAUwTJjo2AOyk9UIEyKjoz2-TKvLuRju6xCL50BW_3NMQd86pl692KKKZAPyEnXmaK8kGn0dwoIr64qGa8b9FPVZ_Hu3QkiA2_7_bj1x7tpd7GY-ExTjaek-maw1FB9YyoIZDrQovJxUR04xxHNKKUlJTQgUxh906fg=s340&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;137&quot; data-original-width=&quot;340&quot; height=&quot;169&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj1j9GCGBq2YE1Kx1ZRdhnx-8okAUwTJjo2AOyk9UIEyKjoz2-TKvLuRju6xCL50BW_3NMQd86pl692KKKZAPyEnXmaK8kGn0dwoIr64qGa8b9FPVZ_Hu3QkiA2_7_bj1x7tpd7GY-ExTjaek-maw1FB9YyoIZDrQovJxUR04xxHNKKUlJTQgUxh906fg=w384-h169&quot; width=&quot;384&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif; text-align: left;&quot;&gt;Now, Add a text
to this cell using formula below so that the cell has combination of printable and non-printable
characters.&lt;/span&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif;&quot;&gt;“=CHAR(27)&amp;amp;” Hello”&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjPGglIwCV_qp8ZTAY5Di3xR83rUKk4UGB3g-FGpzex8bXkrUiXxNJ0YkMGYF0ODyd7fELXxUqR-07Ys031xQhtW1Aa-CWl3M85krEqoD7dyNdju-NSS6akZIzsfIHpWfxTTg2nX1dwnBbLk_rVYSxT0AjJAMjCfPKBhHzoebXhxALKgOgFeiwvcbDA-w=s504&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;207&quot; data-original-width=&quot;504&quot; height=&quot;158&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjPGglIwCV_qp8ZTAY5Di3xR83rUKk4UGB3g-FGpzex8bXkrUiXxNJ0YkMGYF0ODyd7fELXxUqR-07Ys031xQhtW1Aa-CWl3M85krEqoD7dyNdju-NSS6akZIzsfIHpWfxTTg2nX1dwnBbLk_rVYSxT0AjJAMjCfPKBhHzoebXhxALKgOgFeiwvcbDA-w=w320-h158&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif;&quot;&gt;To clean cell
A1, enter the formula “=CLEAN(A1)” in cell A2.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgKp0ngnTJ8zGDaL2UaJjFxT98R3YiChiL1dVJPg1ikmnGdhVgezdal5qdhQjjPpDa-shd6ZK5ttFUtHgVsgxaxiA13jQolvNfCMGBjaQpDvWGczIIFiD7wk5NOWbi4nXhn8FHXa_QD_wwnl51PNEAdrs5OV3P2Wl9tY3wVDiP5tQgKLRCOEHxDdTHtvw=s373&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;174&quot; data-original-width=&quot;373&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgKp0ngnTJ8zGDaL2UaJjFxT98R3YiChiL1dVJPg1ikmnGdhVgezdal5qdhQjjPpDa-shd6ZK5ttFUtHgVsgxaxiA13jQolvNfCMGBjaQpDvWGczIIFiD7wk5NOWbi4nXhn8FHXa_QD_wwnl51PNEAdrs5OV3P2Wl9tY3wVDiP5tQgKLRCOEHxDdTHtvw=w355-h168&quot; width=&quot;355&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Lucida Fax&amp;quot;, serif; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;2&lt;/b&gt;.&amp;nbsp;&lt;u&gt;&lt;b&gt;TRIM&lt;/b&gt;&lt;/u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;Trim is useful function in removing leading and trailing spaces
from a text in the cell. But it doesn’t remove spaces between the words.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;For example, A1 = TRIM(“&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Hello”) prints Hello in cell without spaces&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;3. &lt;u&gt;REPLACE/SUBSTITUTE&lt;/u&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;Both REPLACE and SUBSTITUTE functions are used to replace a
specific segment of a text but has slightly different syntax. Enter a text “Hi
There” in cell E4 and E5 and below are the examples of replacing the word “Hi”
with “Hello” using REPLACE and SUBSTITUTE&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;REPLACE syntax “REPLACE(E3,1,2,&quot;Hello&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;SUBSTITUTE syntax SUBSTITUTE(E4,&quot;Hi&quot;,&quot;Hello&quot;,1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;REPLACE uses start number, number of characters and new word
to be replaced in a text as an argument, whereas SUBSTITUTE uses text to be
replaces and new text and instance as arguments.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgfCfEI9cbe9FFLgM9G0k7apzVBz6g4LWQOwTEwr5oE5Hr56kxLMFQIxucOPz9irm599vBylJuTiuYGsQorgY-enTQJ7-r3npIapD71HFw_1iMDqVRaVMqD67_JSpYwAmUHoMYQ6vVC9rl3cOa0_ezv8yYOlwhvDuzaOsaYDbcv55Be_EMdRKQNqDk50Q=s451&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;241&quot; data-original-width=&quot;451&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEgfCfEI9cbe9FFLgM9G0k7apzVBz6g4LWQOwTEwr5oE5Hr56kxLMFQIxucOPz9irm599vBylJuTiuYGsQorgY-enTQJ7-r3npIapD71HFw_1iMDqVRaVMqD67_JSpYwAmUHoMYQ6vVC9rl3cOa0_ezv8yYOlwhvDuzaOsaYDbcv55Be_EMdRKQNqDk50Q=s320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/2904855282519591607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2022/01/text-functions-in-ms-excel-that-makes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2904855282519591607'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2904855282519591607'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2022/01/text-functions-in-ms-excel-that-makes.html' title='Text functions in Excel for data cleansing'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEj1j9GCGBq2YE1Kx1ZRdhnx-8okAUwTJjo2AOyk9UIEyKjoz2-TKvLuRju6xCL50BW_3NMQd86pl692KKKZAPyEnXmaK8kGn0dwoIr64qGa8b9FPVZ_Hu3QkiA2_7_bj1x7tpd7GY-ExTjaek-maw1FB9YyoIZDrQovJxUR04xxHNKKUlJTQgUxh906fg=s72-w384-h169-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-1321674640885818190</id><published>2020-05-04T07:35:00.003-07:00</published><updated>2021-07-04T04:52:31.559-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to make any file read-only using VBA?</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
VBA has in-built function SetAttr to change attribute of a
file or folder. This Function is classified as File or Directory function.
Below is the syntax of SetAttr and it takes two parameters.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Syntax: SetAttr (FilePath, Attribute)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
FilePath is the fully qualified path of the file and
Attribute is the parameter of a file which you wish to change. In this example we are
going to change attribute of the file ‘Sample.xlsx’ from normal to read-only.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Sub ReadOnly()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Dim s as String&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;S = C:\LM10\Sample.xlsx&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SetAttr (S, vbReadOnly)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/1321674640885818190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2020/05/how-to-make-any-file-read-only-using-vba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1321674640885818190'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1321674640885818190'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2020/05/how-to-make-any-file-read-only-using-vba.html' title='How to make any file read-only using VBA?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-97483165021375346</id><published>2020-04-18T00:12:00.002-07:00</published><updated>2021-07-04T04:54:23.676-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to add line break and tab space in outlook using VBA?</title><content type='html'>When working on email automation in Outlook, the content of the mail can be of type Body or HTMLBody. Depending on the type we select we can use html tags or VBA constants to add &lt;b&gt;Line Break&lt;/b&gt; or &lt;b&gt;Tab Space&lt;/b&gt; in the body of the mail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Line Break:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;
Assume &lt;b&gt;MailObj&lt;/b&gt; is the Outlook mail object. To add &lt;b&gt;line break&lt;/b&gt; between two texts in the body of the mail we can use either VBA constant (vbCrLf) or html tag (&amp;lt;br/&amp;gt;) as shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;MailObj.Body = &quot;This is 1st text&quot; &amp;amp;&amp;nbsp; vbCrLf&amp;nbsp; &amp;amp;&amp;nbsp; &quot;This is 2nd Text&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;MailObj.HTMLBody&amp;nbsp; =&amp;nbsp;&quot;This is 1st text&quot;&amp;nbsp; &amp;amp;&amp;nbsp; &quot;&amp;lt;br/&amp;gt;&quot;&amp;nbsp; &amp;amp;&amp;nbsp; &quot;This is 2nd Text&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;u&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/u&gt;
&lt;u&gt;&lt;b&gt;Tab Space:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Tab space is equivalent to 8 blank spaces. Similar to the above example &lt;b&gt;tab space&lt;/b&gt; cab be added to each text using a VBA constant (vbTab).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;MailObj.Body&amp;nbsp; =&amp;nbsp; vbTab&amp;nbsp; &amp;amp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;This is 1st text&quot; &amp;amp;&amp;nbsp; vbCrLf&amp;nbsp; &amp;amp;&amp;nbsp; vbTab&amp;nbsp; &amp;amp;&amp;nbsp; &quot;This is 2nd Text&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/97483165021375346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2020/04/how-to-add-line-break-and-tab-space-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/97483165021375346'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/97483165021375346'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2020/04/how-to-add-line-break-and-tab-space-in.html' title='How to add line break and tab space in outlook using VBA?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-5727969058944163893</id><published>2020-04-11T07:48:00.000-07:00</published><updated>2020-04-12T04:40:56.474-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to convert mailing list in Excel column into a string using Collections? </title><content type='html'>Let us assume you have say 20 email Ids in an Excel sheet to which a common mail communication is to be sent. One way of combining all the emails into a string is using CONCATENATE function. However it is difficult if the no. of email IDs to be combined are more. Another way to accomplish this is by using Collections in VBA. Collections are nothing but group of related objects.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
First store all Email Ids into a Collection and then combine each email Ids in Collection into a String variable and this variable can be used as Mailing List to send mails. See the below example.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Below code will create a Collection and add mail Ids from Excel sheet to it.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Dim MailList as Collection&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Set MailList = New Collection&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;For i&amp;nbsp; = 1 to 20&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;MailList.Add Cells(i,1).Value&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Next i&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Now we have created collection, next step is to combine all mail Ids in collection into a single string.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;Dim S as String&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;S = &quot;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;For Each Item in MailList&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;S= S&amp;nbsp; &amp;amp; Item&amp;nbsp; &amp;amp; &quot;;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;Next&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Now we have created single string &#39;S&#39; of all 20 mail Ids. This variable can be used in outlook mail&amp;nbsp; application to send mails as shown below.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;MailObj.To = S or&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;MailObj.CC = S&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/5727969058944163893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2020/04/how-to-convert-mailing-list-in-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/5727969058944163893'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/5727969058944163893'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2020/04/how-to-convert-mailing-list-in-excel.html' title='How to convert mailing list in Excel column into a string using Collections? '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-2216276801018413853</id><published>2020-02-19T05:36:00.000-08:00</published><updated>2020-03-23T08:54:36.128-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>How to use curly braces in non-array formula in Excel</title><content type='html'>&lt;br /&gt;
Curly Braces are generally used in array formulas in Excel. Array formulas are entered by pressing CONTROL+SHIFT+ENTER and Excel automatically inserts curly-braces in formula. Array formulas are useful when one has to get results from multiple set of values into a single cell or range of values.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Array Formula:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
For example, Consider Range A1 through A3 has text &quot;No&quot;, &quot;Yes&quot; and &quot;None&quot;. If we have to get the value of maximum length of string in cell B1, then, This can be done by Array Entering (CONTROL+SHIFT+ENTER) the below formula in cell B1.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{=MAX(LEN(A1:A3&quot;)}&lt;br /&gt;
&lt;br /&gt;
which returns a value 4.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Non-Array formula with curly-braces{}&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
However curly-braces can be used in non-array formulas by manually inserting it. Below is an example of using curly-braces in &quot;VLOOKUP&quot; without array entering the formula.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=VLOOKUP(&quot;C&quot;,{&quot;A&quot;,1;&quot;B&quot;,2;&quot;C&quot;,3},2,0)&lt;br /&gt;
&lt;br /&gt;
which returns a value 3.&lt;br /&gt;
:-&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/2216276801018413853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2020/02/how-to-use-curly-braces-in-non-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2216276801018413853'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2216276801018413853'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2020/02/how-to-use-curly-braces-in-non-array.html' title='How to use curly braces in non-array formula in Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-3269553852309857921</id><published>2020-02-18T04:23:00.002-08:00</published><updated>2020-02-18T04:23:14.897-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="ShortCuts"/><title type='text'>How to remove comments only from filtered cells in Excel</title><content type='html'>Consider a column which has number one to five. Cell with odd number has a comment &quot;ODD&quot; and even number as &quot;EVEN&quot;.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnRJUc711_AjHWkHOTnFYFw9PSG0VOObBjhRV5iKnt1e9nR1uKEkjgTDapncKzkwVuPFW_dvV23X-5Wj1g2-ZAuWKkZKqDeJMzi7t4XyGyvKdntxoIF7Y5hbUe37cDcDGPl21LFoy8EeAW/s1600/Comments.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;195&quot; data-original-width=&quot;392&quot; height=&quot;159&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnRJUc711_AjHWkHOTnFYFw9PSG0VOObBjhRV5iKnt1e9nR1uKEkjgTDapncKzkwVuPFW_dvV23X-5Wj1g2-ZAuWKkZKqDeJMzi7t4XyGyvKdntxoIF7Y5hbUe37cDcDGPl21LFoy8EeAW/s320/Comments.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you have to delete comments only from even number then,&amp;nbsp;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
- Filter the even numbers in column (i.e. 2 and 4)&lt;/div&gt;
&lt;div&gt;
- Then, hit the keystroke (&lt;b&gt;Alt + :) &lt;/b&gt;this will highlight only the filtered cells&lt;/div&gt;
&lt;div&gt;
- Then, right click and delete comment from the selected cells in context menu&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To apply formats for filtered cells, select all filtered cells and use comments in paste special option to paste only the comments as shown below.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE-9sglfwctv-6Ia53EWYyBusK9wEbm0hPoJ-7gJba3FkfdguVuXHwoSIZM6O_bpZuv2s5DafzgngPxchUyiqjzqawOaHvAXou4gJwjTveYJeHhWaDcS9Hau0e9huhgN2mIEOodZSZqR1b/s1600/PasteSpecial.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;334&quot; data-original-width=&quot;444&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE-9sglfwctv-6Ia53EWYyBusK9wEbm0hPoJ-7gJba3FkfdguVuXHwoSIZM6O_bpZuv2s5DafzgngPxchUyiqjzqawOaHvAXou4gJwjTveYJeHhWaDcS9Hau0e9huhgN2mIEOodZSZqR1b/s320/PasteSpecial.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/3269553852309857921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2020/02/how-to-remove-comments-only-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3269553852309857921'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3269553852309857921'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2020/02/how-to-remove-comments-only-from.html' title='How to remove comments only from filtered cells in Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnRJUc711_AjHWkHOTnFYFw9PSG0VOObBjhRV5iKnt1e9nR1uKEkjgTDapncKzkwVuPFW_dvV23X-5Wj1g2-ZAuWKkZKqDeJMzi7t4XyGyvKdntxoIF7Y5hbUe37cDcDGPl21LFoy8EeAW/s72-c/Comments.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-8776215224567981668</id><published>2020-02-17T04:56:00.000-08:00</published><updated>2020-02-18T02:59:00.983-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to activate other Microsoft application using VBA</title><content type='html'>&lt;div class=&quot;MsoListParagraphCxSpFirst&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;If you are working on a project that involves interaction with multiple MS Office application, then VBA has a method to invoke other office applications within Excel. For example,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Below code invokes or activates Word application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Application.ActivateMicrosoftApp (xlMicrosoftWord)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Similarly, replace &lt;span style=&quot;color: blue;&quot;&gt;xlMicrosoftWord&lt;/span&gt; to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;xlMicrosoftMail&lt;/span&gt;&amp;nbsp;to activate Outlook.&amp;nbsp;&lt;span style=&quot;font-family: inherit; font-size: 11pt;&quot;&gt;So one can create keyboard shortcut to frequently used application and activate those applications without any manual effort.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit; font-size: 11pt; line-height: 15.6933px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit; font-size: 11pt; line-height: 15.6933px;&quot;&gt;However, to invoke other application not listed or supported by above method use &lt;span style=&quot;color: blue;&quot;&gt;Shell&lt;/span&gt; command. For example to start notepad application, use the code:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Shell &quot;NotePad.exe&quot;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/8776215224567981668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2020/02/how-to-activate-other-microsoft.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/8776215224567981668'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/8776215224567981668'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2020/02/how-to-activate-other-microsoft.html' title='How to activate other Microsoft application using VBA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-7221564969296790791</id><published>2019-04-06T05:28:00.005-07:00</published><updated>2021-07-04T04:54:59.369-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>Static variable in VBA</title><content type='html'>A static variable is a local variable which retain its value even after the execution of procedure. Static variable can be declared by placing &lt;span style=&quot;background-color: orange;&quot;&gt;static&lt;/span&gt;&amp;nbsp; keyword before the declaration.&lt;br /&gt;
&lt;br /&gt;
For example,&lt;br /&gt;
&lt;br /&gt;
static username as string&lt;br /&gt;
static counter as integer&lt;br /&gt;
&lt;br /&gt;
In below example static variable &quot;m&quot; retain its value everyime a program is executed&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Sub StVar()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Static m As Integer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;m = m + 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;MsgBox (m)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End Sub&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note&lt;/b&gt;: To reset a static variable to initial value close the workbook or hit the reset button in VBA editor.</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/7221564969296790791/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2019/04/static-variable-in-vba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/7221564969296790791'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/7221564969296790791'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2019/04/static-variable-in-vba.html' title='Static variable in VBA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-2789821635447674773</id><published>2018-06-24T22:41:00.003-07:00</published><updated>2018-06-24T22:45:06.258-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>The Difference between Cumulative Distribution Function (CDF) and Probability Density Function (PDF)</title><content type='html'>&lt;b&gt;&lt;u&gt;Cumulative Distribution Function (CDF)&lt;/u&gt; vs&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;text-decoration-line: underline;&quot;&gt;Probability Distribution Function (PDF)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The&amp;nbsp;&lt;b&gt;Cumulative Distribution Function (CDF)&lt;/b&gt; of a random variable &#39;X&#39; is the probability that the variable value is less than or equal to &#39;X&#39;. It is the cumulative of all possible values between two defined ranges.On the other hand, &lt;b&gt;Probability Distribution Function (PDF)&lt;/b&gt; is the probability of random variable &#39;X&#39; equal to certain value. In other words it is a derivative of CDF.&lt;br /&gt;
&lt;br /&gt;
Let us understand this with the example of Normal Distribution data. Normal Distribution curve is a bell shaped curve and is symmetric about its mean. its value extends from -ve infinity to +ve infinity. The curve extends indefinitely in both direction.&lt;br /&gt;
&lt;br /&gt;
Consider a Normally Distributed Data with Mean = 494 and SD = 100. Let us calculate the&amp;nbsp; probability of random variable X between its mean and 500. Excel has NORMAL.DIST() function which returns CDF and PDF for a Normal Distribution. It takes four arguments namely; X, MEAN, SD and CUMULATIVE. The 4th argument CUMULATIVE is Boolean and if set to TRUE then the function returns CDF and if set to FALSE, the function returns PDF.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;CDF = &quot;NORM.DIST(500,494,100,TRUE)&quot; = 0.5239 or&amp;nbsp; 52.39%&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;PDF = &quot;NORM.DIST(500,494,100,FALSE)&quot; = 0.00 or&amp;nbsp; 0%&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
In the above calculation CDF of 52.39% is a probability of X is from -infinity to 500. To get the probability of X between MEAN (494) and 500, subtract 50% from CDF, Hence the probability of X between MEAN and 500 is 2.39%.&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/2789821635447674773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2018/06/the-difference-between-cumulative.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2789821635447674773'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2789821635447674773'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2018/06/the-difference-between-cumulative.html' title='The Difference between Cumulative Distribution Function (CDF) and Probability Density Function (PDF)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-2360737974381902623</id><published>2018-04-29T01:57:00.003-07:00</published><updated>2018-04-29T01:57:39.411-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>The difference between DAYS and DAYS360 formulas</title><content type='html'>&lt;b&gt;DAYS360:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
The &lt;b&gt;DAYS360 &lt;/b&gt;function is used&amp;nbsp; to calculate number of days between two dates. But it is based on the assumption that each month in a year has 30 days. This method is adopted in some financial institutions for the calculation of interest and other accounting purposes.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;DAYS():&lt;/b&gt;&lt;br /&gt;
However Excel 2016 version has &lt;b&gt;DAYS()&lt;/b&gt; formula which calculates the number of calendar days between two dates.</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/2360737974381902623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2018/04/the-difference-between-days-and-days360.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2360737974381902623'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2360737974381902623'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2018/04/the-difference-between-days-and-days360.html' title='The difference between DAYS and DAYS360 formulas'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-2264292205272547384</id><published>2018-01-25T06:18:00.001-08:00</published><updated>2020-05-01T21:47:01.190-07:00</updated><title type='text'>How to rename files of a Folder using VBA</title><content type='html'>&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
It is easy and convenient to rename files of a folder using VBA. This can be accomplished with few lines of code. To do this, First you need to have fully qualified path with Names of the files and the new Names of those file to which you want to rename it to. Organize this data into two different columns as shown below.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjacK4GMYhZj8fsAkMLN12RA8fqtEkIqqDmNh2V-aldGSC_qSiI7tBKuAszDZEo4Y-DsXdPzvUix9UVupAKLAFruukkOxBChyphenhyphenrI8YQ8s2db_GIcei06FT7FNxpdZqHeHGEsWtamEpnC0rO6/s1600/Files+Rename.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;232&quot; data-original-width=&quot;592&quot; height=&quot;249&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjacK4GMYhZj8fsAkMLN12RA8fqtEkIqqDmNh2V-aldGSC_qSiI7tBKuAszDZEo4Y-DsXdPzvUix9UVupAKLAFruukkOxBChyphenhyphenrI8YQ8s2db_GIcei06FT7FNxpdZqHeHGEsWtamEpnC0rO6/s640/Files+Rename.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now, copy paste the below VBA code into VBEditor and run the program. The file names of files 1,2,3,4 and 5 gets converted into A, B, C D and E respectively.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Sub FileRename()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Application.ScreenUpdating = False&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Application.DisplayAlerts = False&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Dim n As String&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Dim m As String&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Dim RowCount As Integer&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Sheets(&quot;Sheet1&quot;).Select&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;RowCount = Application.WorksheetFunction.CountA(Range(&quot;A:A&quot;))&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;For i = 2 To RowCount&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;n = Cells(i, 1)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;m = Cells(i, 2)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;Workbooks.Open (n)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;ActiveWorkbook.SaveAs (m)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;ActiveWorkbook.Close&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;Kill (n)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;ThisWorkbook.Save&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End Sub&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Here is a video demonstration to the above Example.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.educba.com/finance/courses/financial-analyst-course/?btnz=freelancer-affiliate&amp;amp;mzqwertvyml=limitedperiodoff&amp;amp;frizzyfhbliat1dezw=580EDUNF83&quot;&gt;Learn Financial Management Courses online&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Use Coupon Code&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;580EDUNF83&amp;nbsp;&lt;/span&gt;to get additional 20% discount&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/P9WSWlNNHdE/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/P9WSWlNNHdE?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/2264292205272547384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2018/01/how-to-rename-files-of-folder-using-vba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2264292205272547384'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/2264292205272547384'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2018/01/how-to-rename-files-of-folder-using-vba.html' title='How to rename files of a Folder using VBA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjacK4GMYhZj8fsAkMLN12RA8fqtEkIqqDmNh2V-aldGSC_qSiI7tBKuAszDZEo4Y-DsXdPzvUix9UVupAKLAFruukkOxBChyphenhyphenrI8YQ8s2db_GIcei06FT7FNxpdZqHeHGEsWtamEpnC0rO6/s72-c/Files+Rename.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-3407564960783269955</id><published>2018-01-13T21:03:00.000-08:00</published><updated>2018-01-13T21:03:06.022-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to create and use Dynamic Arrays in VBA</title><content type='html'>&lt;br /&gt;
Arrays are important elements of any programming language. An array can be one, two or multi dimensional. An Array declared without a specific size (re-sizable) is called a &lt;b&gt;Dynamic Array&lt;/b&gt;. Dynamic Array can be declared as shown below.&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Dim NewArray () as Integer&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
However, to use the Array in application, We must define its size. To change size of an Array we use &lt;b&gt;ReDim&lt;/b&gt; keyword.&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;ReDim NewArray (4)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Now, NewArray can store up to 5 values (i.e. 0 to 4). Let us assign 5 values to the Array.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;NewArray = Array (5,10,15,20,25)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;b&gt;ReDim&lt;/b&gt; can be used multiple times in our application to change the size of an Array dynamically. Suppose we want to change the size of NewArray again, so that it can store 10 values, then use &lt;b&gt;ReDim&lt;/b&gt; again as below.&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;ReDim NewArray (9)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;But changing the dimension of Array using &lt;b&gt;ReDim&lt;/b&gt; statement clears the previously stored values. If we want to retain the previously stored values, then we use &lt;b&gt;Preserve&lt;/b&gt; keyword as shown below. By doing this old values stored in an array remain unchanged.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;ReDim Preseve NewArray (9)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/3407564960783269955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2018/01/how-to-create-and-use-dynamic-arrays-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3407564960783269955'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3407564960783269955'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2018/01/how-to-create-and-use-dynamic-arrays-in.html' title='How to create and use Dynamic Arrays in VBA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-1975712122562837608</id><published>2017-12-15T22:27:00.001-08:00</published><updated>2017-12-15T22:27:48.521-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to repeat the Header row in each page using VBA?</title><content type='html'>&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Consider an Excel document which has employee details with 5000 employees. The 1st row of the sheet has details, such as Name, Age, Designation, Date of Birth and Date of Joining of employees.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now, If we want to take print of these employee list, and if we want the header row to appear in each page of the print out then, select the sheet which has the data and use the below VBA code to make header row appear on each page.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sub HeaderEachPage()&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;With ActiveSheet.PageSetup&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.PrintTitleRows&amp;nbsp; =&amp;nbsp; &quot;A$1:G$1&quot;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End With&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Sub&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
-------------------------------------------------------------------------------------------------------------------------&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/1975712122562837608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/12/how-to-repeat-header-row-in-each-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1975712122562837608'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1975712122562837608'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/12/how-to-repeat-header-row-in-each-page.html' title='How to repeat the Header row in each page using VBA?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-5040351054476850275</id><published>2017-12-05T20:34:00.002-08:00</published><updated>2020-05-01T21:47:37.217-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to enter formula with relative and absolute reference using VBA</title><content type='html'>&lt;b&gt;&lt;u&gt;Relative vs Absolute:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To enter a formula using VBA into a single cell, We use &lt;span style=&quot;color: #3d85c6;&quot;&gt;Range().Formula&lt;/span&gt; property and assign it to worksheet function.&lt;br /&gt;
&lt;br /&gt;
For Example, VBA code to enter VLOOKUP formula in cell B1 is&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RANGE(&quot;B1&quot;).FORMULA = &quot;=VLOOKUP(A1,SHEET2!A:B,2,0)&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Suppose, We want to apply the same formula from Range B1 through B10, then change the VBA&lt;br /&gt;
&amp;nbsp;code to&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RANGE(&quot;B1:B10&quot;).FORMULA = &quot;=VLOOKUP(A1,SHEET2!A:B,2,0)&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
Now, in the new code Range A1 is fixed or absolute for cells from B1 through B10. To change it to relative reference, replace A1 with A:A on the RHS of the code. Now, the new code look like&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;RANGE(&quot;B1:B10&quot;).FORMULA = &quot;=VLOOKUP(A:A,SHEET2!A:B,2,0)&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Replacing A1 with A:A changes the lookup value from Absolute to Relative reference (i.e. for cell B1, A:A is&amp;nbsp; A1; for B2, A:A is A2 and so on..).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;NOTE:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.educba.com/finance/courses/financial-analyst-course/?btnz=freelancer-affiliate&amp;amp;mzqwertvyml=limitedperiodoff&amp;amp;frizzyfhbliat1dezw=580EDUNF83&quot;&gt;Learn Financial Management Courses online&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Use Coupon Code&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;580EDUNF83&amp;nbsp;&lt;/span&gt;to get additional 20% discount&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
This relative referencing style doesnot work for EOMONTH worksheet function. The syntax for EOMONTH is EOMONTH(START DATE, MONTHS).&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Let&amp;nbsp;&lt;span style=&quot;color: #3d85c6;&quot;&gt;RANGE(&quot;B1:B10&quot;).FORMULA&amp;nbsp;=&amp;nbsp; &quot;=EOMONTH(A1,0)&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
In the above formula, If we replace A1 with A:A then it will return #VALUE error. An alternative to get the relative reference to such worksheet functions is replacing A1 with the below formula&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #3d85c6;&quot;&gt;INDIRECT(ADDRESS(ROW(),1,4)).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp;&lt;/span&gt;the correct code would be&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RANGE(&quot;B1:B10&quot;).FORMULA&amp;nbsp;=&amp;nbsp; &quot;=EOMONTH(&lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;INDIRECT(ADDRESS(ROW(),1,4))&lt;/span&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;,0)&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/5040351054476850275'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/5040351054476850275'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/12/how-to-enter-formula-with-relative-and.html' title='How to enter formula with relative and absolute reference using VBA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-271173782650940991</id><published>2017-12-03T02:00:00.000-08:00</published><updated>2017-12-08T21:40:26.490-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="ShortCuts"/><title type='text'>Excel Shortcuts to convert Number into different formats</title><content type='html'>&lt;b&gt;Excel Shortcuts:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Keyboard shortcuts in Excel allow you to reduce the time spent doing routine task using mouse and thereby boosting productivity.&lt;br /&gt;
&lt;br /&gt;
Below is a list of Excel shortcut keys to convert number into different Time and Date formats.&lt;br /&gt;
&lt;br /&gt;
1) &lt;b&gt;To Convert Number to Date format:&lt;/b&gt; Select the range of cells that contain numbers and press&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;CTRL+SHIFT+3&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
2)&lt;b&gt;&amp;nbsp;To Convert Number to Time format:&lt;/b&gt; Select the range of cells that contain numbers and press&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;CTRL+SHIFT+2&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
3)&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;To Convert Number to Percentage format:&lt;/b&gt;&amp;nbsp;Select the range of cells that contain numbers and&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;press&amp;nbsp;&lt;b&gt;CTRL+SHIFT+5&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
4)&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;b&gt;To Convert Number to Currency format:&lt;/b&gt;&amp;nbsp;Select the range of cells that contain numbers and&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;press&amp;nbsp;&lt;b&gt;CTRL+SHIFT+4&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;</content><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/271173782650940991'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/271173782650940991'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/12/excel-shortcuts-to-convert-number-into.html' title='Excel Shortcuts to convert Number into different formats'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-348479985394426347</id><published>2017-11-05T03:31:00.000-08:00</published><updated>2017-12-08T21:39:15.001-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>CAGR calculation in Excel</title><content type='html'>&lt;div&gt;
&lt;b&gt;CAGR:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;u&gt;CAGR&lt;/u&gt; - Compounded Annual Growth Rate is a measure of growth over a period of time. It is usually calculated for number of years. Businesses use CAGR to measure the growth in their revenue over a period of time. In finance CAGR is used as a measure that indicates appreciation in the value of an Investment over a period of time.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Suppose an initial investment of &lt;b&gt;$10000&lt;/b&gt; is made and its value appreciates to &lt;b&gt;$17000 &lt;/b&gt;after 5 years. CAGR for this investment is calculated using the below formula.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdl34YUzOGFaD-qUXWU19HzkWn_kzGkfJGHeuaSaH1jLmkFSmbKkvOIqOQK3YA4oBK7QrQpk4_tYQK4o7UOx8Ctgp6NmHtzEIHKbL1Nh8M319m7IGHazNQqWBmgZg7y0OGypDPne25Lxgd/s1600/CAGR+formula.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;146&quot; data-original-width=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdl34YUzOGFaD-qUXWU19HzkWn_kzGkfJGHeuaSaH1jLmkFSmbKkvOIqOQK3YA4oBK7QrQpk4_tYQK4o7UOx8Ctgp6NmHtzEIHKbL1Nh8M319m7IGHazNQqWBmgZg7y0OGypDPne25Lxgd/s1600/CAGR+formula.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; where n = no. of years&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRJOOZg1DtwOJigb2C0Io3K_IzG8aYRaKjRVIGMT3ZSL2lq4ToVUl3uXPOvK-xj9bBfVvGxGdxeBBFSUgUyZFGRvhRo0dcSSRzRi2noG25_K6bD1iwS14Ff_7mky6a7Rqydckm7HmH-MIU/s1600/CAGR+calculation.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;195&quot; data-original-width=&quot;347&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRJOOZg1DtwOJigb2C0Io3K_IzG8aYRaKjRVIGMT3ZSL2lq4ToVUl3uXPOvK-xj9bBfVvGxGdxeBBFSUgUyZFGRvhRo0dcSSRzRi2noG25_K6bD1iwS14Ff_7mky6a7Rqydckm7HmH-MIU/s320/CAGR+calculation.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The CAGR for the above investment example is 0.11196 or 11.196%. Here, CAGR is equivalent to constant growth rate per year. (i.e. Constant growth of 11.196% for 5 consecutive years.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You can validate the CAGR by calculating Final Value using the initial value of $10000 and CAGR of 11.196%.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Final Value = $10000 * (1+0.11196)^5 = $17000&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/348479985394426347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/11/cagr-calculation-in-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/348479985394426347'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/348479985394426347'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/11/cagr-calculation-in-excel.html' title='CAGR calculation in Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdl34YUzOGFaD-qUXWU19HzkWn_kzGkfJGHeuaSaH1jLmkFSmbKkvOIqOQK3YA4oBK7QrQpk4_tYQK4o7UOx8Ctgp6NmHtzEIHKbL1Nh8M319m7IGHazNQqWBmgZg7y0OGypDPne25Lxgd/s72-c/CAGR+formula.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-3125579750483389029</id><published>2017-11-01T04:10:00.001-07:00</published><updated>2017-12-08T21:38:20.535-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>How to convert time format in to Minutes in Excel</title><content type='html'>&lt;b&gt;How to convert time format in to Minutes in Excel:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Consider an example where &lt;b&gt;Start Time, End Time and Total Time Taken &lt;/b&gt;for a set of activities are stored in a standard Excel Time format (i.e. hh:mm:ss). Here TOTAL TIME = END DATE - START DATE. In column F, let us calculate total time taken in Minutes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGXbfLeT9IgP41b79cljWGGsLUBw4XuJsvD3VyYQdbCeMS8TggiGRpVEant6GBWlkvNODK61BU7Q9lOQOV30qNnt7CPmdHJ2F_LyzoVlU26T9TVG5Eto1y49bCELWAzzDfoKhYek0CwIP/s1600/TimeFormat.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;348&quot; data-original-width=&quot;546&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGXbfLeT9IgP41b79cljWGGsLUBw4XuJsvD3VyYQdbCeMS8TggiGRpVEant6GBWlkvNODK61BU7Q9lOQOV30qNnt7CPmdHJ2F_LyzoVlU26T9TVG5Eto1y49bCELWAzzDfoKhYek0CwIP/s1600/TimeFormat.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&amp;nbsp; Now, to convert Excel time formats into Minutes, We have to multiply the values in each of columnE with 1440. So enter the formula &quot;=E2*1440&quot; in cell F2 to convert 1:00:00 into minutes.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipbkz2YTXbfNbz19eXxGGQPubE0GtxnnwmsjQqOYckRQwtG8Oz6uo-9GnV5J0IQU2Cck35r7AZrLQHA8zlnEVp_zoq8uOl7I5DQu34fNmiiezSEf7OFDC0t8FYolsN_MqxW74wXYKL6VmG/s1600/Time+Format+Final.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;307&quot; data-original-width=&quot;540&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipbkz2YTXbfNbz19eXxGGQPubE0GtxnnwmsjQqOYckRQwtG8Oz6uo-9GnV5J0IQU2Cck35r7AZrLQHA8zlnEVp_zoq8uOl7I5DQu34fNmiiezSEf7OFDC0t8FYolsN_MqxW74wXYKL6VmG/s1600/Time+Format+Final.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Excel stores standard time formats as DAY fraction. So the value equivalent of 1:00:00 is 0.041667 days. (i.e. 1/24). Therefore 0.041667 * 1440 = 60 Minutes.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/3125579750483389029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/11/how-to-convert-time-format-in-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3125579750483389029'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3125579750483389029'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/11/how-to-convert-time-format-in-to.html' title='How to convert time format in to Minutes in Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioGXbfLeT9IgP41b79cljWGGsLUBw4XuJsvD3VyYQdbCeMS8TggiGRpVEant6GBWlkvNODK61BU7Q9lOQOV30qNnt7CPmdHJ2F_LyzoVlU26T9TVG5Eto1y49bCELWAzzDfoKhYek0CwIP/s72-c/TimeFormat.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-919685699489893901</id><published>2017-10-08T00:50:00.001-07:00</published><updated>2017-12-08T21:57:55.577-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="analytics"/><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>How to use SUMPRODUCT to calculate mean of Discreet Distribution</title><content type='html'>&lt;b&gt;Discreet Distribution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
A &lt;b&gt;Discreet Distribution&lt;/b&gt; is a distribution constructed from a random variable produced by non-negative whole numbers. MEAN or AVERAGE is nothing but &lt;b&gt;Expected Value&lt;/b&gt; of a Discreet Distribution. &lt;br /&gt;
&lt;br /&gt;
The MEAN of any discreet distribution is calculated by taking the sum of product of values and their probability of occurrence.In the below example, number of Diabetics out &amp;nbsp;of 5 people chosen randomly and probability of number of Diabetics in the sample.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6Nu64MQiTtE_eoSS2daqHCZNlRf_2soNtosfxpBWLrWhkNB9XZjRZstiEP4Sf17Xdi6dKTPUGeHhpumIruo1GVQVf1qyg3crjda7Lmwo610hIvdw8M-pdQoLUp5BBFuL2hH_yvGom1rXC/s1600/SUMPRODUCT.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;339&quot; data-original-width=&quot;437&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6Nu64MQiTtE_eoSS2daqHCZNlRf_2soNtosfxpBWLrWhkNB9XZjRZstiEP4Sf17Xdi6dKTPUGeHhpumIruo1GVQVf1qyg3crjda7Lmwo610hIvdw8M-pdQoLUp5BBFuL2hH_yvGom1rXC/s320/SUMPRODUCT.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
MEAN of this discreet distribution is calculated using inbuilt function SUMPRODUCT as shown below. SUMPRODUCT takes two arguments, ARRAY1 and ARRAY2.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;=SUMPRODUCT(C2:C8,D2:D8)&quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;The &lt;b&gt;mean&lt;/b&gt; or the &lt;b&gt;expected value&lt;/b&gt; of the above discreet distribution is 1.14.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/919685699489893901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/10/how-to-use-sumproduct-to-calculate-mean.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/919685699489893901'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/919685699489893901'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/10/how-to-use-sumproduct-to-calculate-mean.html' title='How to use SUMPRODUCT to calculate mean of Discreet Distribution'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6Nu64MQiTtE_eoSS2daqHCZNlRf_2soNtosfxpBWLrWhkNB9XZjRZstiEP4Sf17Xdi6dKTPUGeHhpumIruo1GVQVf1qyg3crjda7Lmwo610hIvdw8M-pdQoLUp5BBFuL2hH_yvGom1rXC/s72-c/SUMPRODUCT.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-4796960809581468150</id><published>2017-10-07T08:28:00.000-07:00</published><updated>2017-12-08T21:58:28.093-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to get only Integer portion of a division using VBA operator</title><content type='html'>Excel has a built in function QUOTIENT() to return integer portion of a division. The similar result can be obtained using ROUND() function. However, VBA has operator to return only integer portion of a division. The symbol for getting division with integer portion as result is &quot;\&quot;.&lt;br /&gt;
&lt;br /&gt;
Below is an an example of two procedures with &quot;division&quot; (/) and &quot;division with integer&quot; (\) for two variables.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCiT9Gq8_65JpXHA9rZsSuH6Fk-rJ6IzyyJ4kJDILsl_itFoGIqTZHr_Hg0szC99gij1z7zqvIkerTZ68dpfVEvdmbsqvtHfXhnT_NO2tpJ7kkIrKJJHOUmkWPKK16nnI0MiFrlGHgKK3R/s1600/gij.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;363&quot; data-original-width=&quot;449&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCiT9Gq8_65JpXHA9rZsSuH6Fk-rJ6IzyyJ4kJDILsl_itFoGIqTZHr_Hg0szC99gij1z7zqvIkerTZ68dpfVEvdmbsqvtHfXhnT_NO2tpJ7kkIrKJJHOUmkWPKK16nnI0MiFrlGHgKK3R/s320/gij.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The first procedure returns a value of 5.5 and the second one returns 5. However, this division with integer operator does not work when used as formula in cells.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/4796960809581468150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/10/how-to-get-only-integer-portion-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/4796960809581468150'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/4796960809581468150'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/10/how-to-get-only-integer-portion-of.html' title='How to get only Integer portion of a division using VBA operator'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCiT9Gq8_65JpXHA9rZsSuH6Fk-rJ6IzyyJ4kJDILsl_itFoGIqTZHr_Hg0szC99gij1z7zqvIkerTZ68dpfVEvdmbsqvtHfXhnT_NO2tpJ7kkIrKJJHOUmkWPKK16nnI0MiFrlGHgKK3R/s72-c/gij.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-3550705013815789974</id><published>2017-09-16T06:44:00.005-07:00</published><updated>2017-12-08T22:04:28.231-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>How to make Excel UserForm Immovable using VBA </title><content type='html'>By default excel userforms are movable. This will let the user to view the Excel sheet by dragging the user form aside. In case if the the creator of the user form does not want the user to view Sheets, then UserForm position can be fixed using a VBA code as given below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Private Sub UserForm_Layout()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UserForm1.Left = 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UserForm1.Top = 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmComLX1KHe48TR5v_R7-XxqRE0odykWslzmejHG26V7cxeKK-5XhAEG2Iu5VUg3ES3I_APvaHjxpoU_LgMcelPdv7DRnSLGJheEuhWnrisy4BEbs0o9puQKwlRYZqmK4hnbncAEqmg2pj/s1600/Uform.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;436&quot; data-original-width=&quot;910&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmComLX1KHe48TR5v_R7-XxqRE0odykWslzmejHG26V7cxeKK-5XhAEG2Iu5VUg3ES3I_APvaHjxpoU_LgMcelPdv7DRnSLGJheEuhWnrisy4BEbs0o9puQKwlRYZqmK4hnbncAEqmg2pj/s400/Uform.bmp&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a &lt;a href=&quot;https://www.youtube.com/edit?o=U&amp;amp;video_id=pIyuXouQC4c&quot;&gt;link&lt;/a&gt; to video demonstration of this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/3550705013815789974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/09/how-to-make-excel-userform-immovable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3550705013815789974'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3550705013815789974'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/09/how-to-make-excel-userform-immovable.html' title='How to make Excel UserForm Immovable using VBA '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmComLX1KHe48TR5v_R7-XxqRE0odykWslzmejHG26V7cxeKK-5XhAEG2Iu5VUg3ES3I_APvaHjxpoU_LgMcelPdv7DRnSLGJheEuhWnrisy4BEbs0o9puQKwlRYZqmK4hnbncAEqmg2pj/s72-c/Uform.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-6767923284014868277</id><published>2017-07-23T00:40:00.000-07:00</published><updated>2017-12-08T22:05:07.000-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="excel"/><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>How to use wildcard characters in Excel formulas</title><content type='html'>&lt;b&gt;Wildcard Characters:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Wildcard characters are useful when we have partial search criteria to extract or manipulate data. In Excel, we use &quot;?&quot; and &quot;*&quot; are wildcard characters. &quot;?&quot; represents single character, and &quot;*&quot; represents series of characters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wildcard characters are used with Excel functions, such as VLOOKUP, SUM, COUNT, SUMIF, COUNTIF and SUBSTITUTE among others. In the below Table, we have sales details of computer hardware items sold with their selling price and no. of items sold.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Product List:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-xmk6T-Owrdpfxnf9zJbxHsHi758-i8WEb5KfTkBXlkyKzMhGLu8vpKva_vh9tNIdq-SUgWjdjrbmJ0md3cf9OdReW8QYck_IhlYM_BLGResMDSBBa8f7qSCT1Tpfe7G2zpf5jBK3bn7E/s1600/ProductType.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;522&quot; data-original-width=&quot;414&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-xmk6T-Owrdpfxnf9zJbxHsHi758-i8WEb5KfTkBXlkyKzMhGLu8vpKva_vh9tNIdq-SUgWjdjrbmJ0md3cf9OdReW8QYck_IhlYM_BLGResMDSBBa8f7qSCT1Tpfe7G2zpf5jBK3bn7E/s640/ProductType.PNG&quot; width=&quot;505&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
We also have some scenario or conditions to extract data from the table to get desired output. Below is a picture of combination of Excel formulas and wildcard characters to get the desired result.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Scenario with Formula:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieH5P8ME15b0Ff8TGmSIO23I6FG4xw4xcGjs12Gi6v7Ytpo9MYocXndRQYbCkz9LLYOhSs3CFrpRvFbc9mX7idfX06ZvBrSycOHIRlbEpWXQJAu8vSh-DZ0fbMpJorF-qr6j9r4vX63xIC/s1600/foru.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;207&quot; data-original-width=&quot;716&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieH5P8ME15b0Ff8TGmSIO23I6FG4xw4xcGjs12Gi6v7Ytpo9MYocXndRQYbCkz9LLYOhSs3CFrpRvFbc9mX7idfX06ZvBrSycOHIRlbEpWXQJAu8vSh-DZ0fbMpJorF-qr6j9r4vX63xIC/s640/foru.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/6767923284014868277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/how-to-use-wildcard-characters-in-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/6767923284014868277'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/6767923284014868277'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/how-to-use-wildcard-characters-in-excel.html' title='How to use wildcard characters in Excel formulas'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-xmk6T-Owrdpfxnf9zJbxHsHi758-i8WEb5KfTkBXlkyKzMhGLu8vpKva_vh9tNIdq-SUgWjdjrbmJ0md3cf9OdReW8QYck_IhlYM_BLGResMDSBBa8f7qSCT1Tpfe7G2zpf5jBK3bn7E/s72-c/ProductType.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-1515655190427367383</id><published>2017-07-14T06:41:00.003-07:00</published><updated>2017-12-08T22:05:06.702-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>How and when to use TRIMMEAN function in Excel</title><content type='html'>&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;TRIMMEAN&lt;/b&gt; is used to calculate Mean or Average of data points excluding the outliers or extreme values. Whenever we calculate Mean including outliers, We may get values that are not accurate and does not represent the fact. The reason for this is MEAN tend to get affected by extreme values. One big value in a data set can significantly change the value MEAN. In such cases, We use TRIMMEAN to exclude values from top and bottom tails of the data set.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &lt;b&gt;Syntax:&lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;=TRIMMEAN(Array,Percentage)&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
TRIMMEAN has two arguments i.e Array and Percentage. Array is a data set for which we have to calculate TRIMMEAN. Percentage is decimal between 0 and 1. Percentage cannot be greater than or equal to 1. If the value of Percentage is 0 then TRIMMEAN = MEAN.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Consider the below example where MEAN and TRIMMEAN are calculated for 20 random data points.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGyGTiispybQY1nMtS50zh2mmFMELg8pLjRDFR6RM5Y9_3IP9KVXthvSUBttCWdGS7-RSn7wS9_DeIr08jh5kq5VG-NM1jFB8wRzEYAeNzHlck5YckJ5D-UpzmUOA_ypADguiOzNUYWlb/s1600/trim1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;622&quot; data-original-width=&quot;664&quot; height=&quot;596&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGyGTiispybQY1nMtS50zh2mmFMELg8pLjRDFR6RM5Y9_3IP9KVXthvSUBttCWdGS7-RSn7wS9_DeIr08jh5kq5VG-NM1jFB8wRzEYAeNzHlck5YckJ5D-UpzmUOA_ypADguiOzNUYWlb/s640/trim1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
As the percentage argument for TRIMMEAN is 0, MEAN=TRIMMEAN which is 39.6. &amp;nbsp;Now change one of the values say 3rd number to 300. The value of Mean changes to 53.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk_hhDtDfMGmlMB8YV6S5l6RjIDnn7dI6b4-OsrL0i1jv80EoEqS6ClCS3cx8SKa9xfvrarx7H92H9Na6tny1iXnQbSVenGVcOQS6mInk-NvfY1OFf7TXAdRtb0Fw_eLYOEs3q20hraRvp/s1600/trim2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;623&quot; data-original-width=&quot;629&quot; height=&quot;632&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk_hhDtDfMGmlMB8YV6S5l6RjIDnn7dI6b4-OsrL0i1jv80EoEqS6ClCS3cx8SKa9xfvrarx7H92H9Na6tny1iXnQbSVenGVcOQS6mInk-NvfY1OFf7TXAdRtb0Fw_eLYOEs3q20hraRvp/s640/trim2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now, change the percentage argument in TRIMMEAN to 0.2 (20%). The TRIMMEAN value changes to 40.69 from 53. In this case TRIMMEAN exclude the 4 values, 2 from top and 2 from bottom (20% of 20 data points) from data set and calculates the average.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixdra7Te_hHxXmVv8GMCQ-35RQZmKQGnzpxPm9z58YcMi2SqLfOIaw9PswZauweZG9JhPt2ezj70eivOsIkhCB8_zFb_bvmCM76y4qDS3rjfUH2WWqEmelpQ0mSzoGMt_NZgxSlvUl1Skt/s1600/trim22.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;614&quot; data-original-width=&quot;632&quot; height=&quot;620&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixdra7Te_hHxXmVv8GMCQ-35RQZmKQGnzpxPm9z58YcMi2SqLfOIaw9PswZauweZG9JhPt2ezj70eivOsIkhCB8_zFb_bvmCM76y4qDS3rjfUH2WWqEmelpQ0mSzoGMt_NZgxSlvUl1Skt/s640/trim22.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Note:&lt;/b&gt; For normally distributed data MEAN = MEDIAN. MEDIAN does not get affected with extreme values. Hence Percentage argument in TRIMMEAN function can be varied to adjust the value of TRIMMEAN approximately equal to MEDIAN. From the below picture it is clear that presence of extreme values in the data set does not affect the value of MEDIAN.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc-reGAPTvHvDZaV9vuNl5xJcqWKXPT3ZxoF2M77OVCgIz0pgvSNu_uoU1RDbj5PuuwgUVHa5g8uj8u_Tw5hyphenhyphenzT85Vf1ChkZBZa_KY5Z_jHRVwtPTi8bCtTz3SNKDkipMiJdt8PZCLn_J4/s1600/Trim99.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;637&quot; data-original-width=&quot;715&quot; height=&quot;570&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc-reGAPTvHvDZaV9vuNl5xJcqWKXPT3ZxoF2M77OVCgIz0pgvSNu_uoU1RDbj5PuuwgUVHa5g8uj8u_Tw5hyphenhyphenzT85Vf1ChkZBZa_KY5Z_jHRVwtPTi8bCtTz3SNKDkipMiJdt8PZCLn_J4/s640/Trim99.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/1515655190427367383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/how-and-when-to-use-trimmean-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1515655190427367383'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1515655190427367383'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/how-and-when-to-use-trimmean-function.html' title='How and when to use TRIMMEAN function in Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVGyGTiispybQY1nMtS50zh2mmFMELg8pLjRDFR6RM5Y9_3IP9KVXthvSUBttCWdGS7-RSn7wS9_DeIr08jh5kq5VG-NM1jFB8wRzEYAeNzHlck5YckJ5D-UpzmUOA_ypADguiOzNUYWlb/s72-c/trim1.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-1834099306751929606</id><published>2017-07-11T07:00:00.001-07:00</published><updated>2020-05-01T21:48:29.159-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="VBA"/><title type='text'>The Difference between ByVal and ByRef in Excel VBA</title><content type='html'>&lt;b&gt;The Difference between ByVal and ByRef in Excel VBA:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In VBA, ByVal (By Value) and ByRef (By Reference) are two different ways of passing arguments to the procedure. When a parameter is passed to the procedure as ByRef, the value of the parameter can change at runtime. However, if the parameter is passed as ByVal then its value does not change at runtime.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://www.educba.com/finance/courses/financial-analyst-course/?btnz=freelancer-affiliate&amp;amp;mzqwertvyml=limitedperiodoff&amp;amp;frizzyfhbliat1dezw=580EDUNF83&quot;&gt;Learn Financial Management Courses online&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Use Coupon Code&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;open sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; text-align: center;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;580EDUNF83&amp;nbsp;&lt;/span&gt;to get additional 20% discount&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Let us understand this by an example. Consider two procedures namely FIRST &amp;nbsp;and SECOND. Here, the FIRST procedure is called within the SECOND procedure. Hence the FIRST procedure is a CALLED procedure and the second one is CALLING procedure.&lt;br /&gt;
&lt;br /&gt;
The FIRST procedure has integer argument&amp;nbsp;&quot;x&quot; passed onto it as ByRef. This procedure adds 10 to the value of &quot;x&quot; passed onto it.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sub First(ByRef x As Integer)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x = x + 10&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SECOND procedure does not have any arguments. It has a variable &quot;y&quot;, the value of which is passed to FIRST procedure as argument and display the value of &quot;y&quot; in MsgBox.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sub Second()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim y As Integer&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y = 5&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Call First(y)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MsgBox (y)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ByRef:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Now, when we run SECOND procedure keeping &quot;x&quot; as ByRef in FIRST procedure the output would be 15.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9NgXwlXKJVYbwOy1cL1fmYrHtsinz0r6XmAeuWe7hOlUO9dKsca_1hnAkACtXjnoYYbZOh7zTbhRTvFCDtsTAXOXg9FW8J_sqNCBmTH5BT4wMJPqQ9ZyvXJfR7lKQglHVePS0MFKUa-h3/s1600/Capture122.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;383&quot; data-original-width=&quot;713&quot; height=&quot;340&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9NgXwlXKJVYbwOy1cL1fmYrHtsinz0r6XmAeuWe7hOlUO9dKsca_1hnAkACtXjnoYYbZOh7zTbhRTvFCDtsTAXOXg9FW8J_sqNCBmTH5BT4wMJPqQ9ZyvXJfR7lKQglHVePS0MFKUa-h3/s640/Capture122.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; output for ByRef&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM5sp1JoPpdn_tDVfu4WL5-0Beih4huIw8tBL6xbKW1y8LlpYPvNOVvPDY7ugvZByYqgykOA0jVXHLrykswvIbX1e8trRG9mzmJyHHbf3mJIxm1jUPIVnH7gyQNGiB_y8n65Oi74WRtPjC/s1600/Capture55.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;441&quot; data-original-width=&quot;525&quot; height=&quot;335&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM5sp1JoPpdn_tDVfu4WL5-0Beih4huIw8tBL6xbKW1y8LlpYPvNOVvPDY7ugvZByYqgykOA0jVXHLrykswvIbX1e8trRG9mzmJyHHbf3mJIxm1jUPIVnH7gyQNGiB_y8n65Oi74WRtPjC/s400/Capture55.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;ByVal:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Now, when we run SECOND procedure keeping &quot;x&quot; as ByVal in FIRST procedure the output would be 5.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2ZYz62XHv9TTmANhZJPOLFZHGoXCpCHd7auvpEC3oLTRerjcFyk3Xcx9cDnoZbchRvzaYDzXc9BwI9q4Jo5aUcfz50lshqzLidVGgQ0_OlHmjRsrUJUQQR6UWAmoEB9EHo8kvnnbNlA69/s1600/Capture333.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;388&quot; data-original-width=&quot;611&quot; height=&quot;406&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2ZYz62XHv9TTmANhZJPOLFZHGoXCpCHd7auvpEC3oLTRerjcFyk3Xcx9cDnoZbchRvzaYDzXc9BwI9q4Jo5aUcfz50lshqzLidVGgQ0_OlHmjRsrUJUQQR6UWAmoEB9EHo8kvnnbNlA69/s640/Capture333.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; Output for ByVal&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6_vOkC5eIccJdxkUZEdiTv79YyjFc4jI3C3R_KfiBKyberdi7JhAa4Vt0wu5YhVI90fdvhkNR6kJ56ZUZKZp-O5zd5RCed1aNhyzO2XiX4Qs7S45MpNVvuCap9f2jA-NF5_lTyLaLugKq/s1600/Capture009.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;345&quot; data-original-width=&quot;396&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6_vOkC5eIccJdxkUZEdiTv79YyjFc4jI3C3R_KfiBKyberdi7JhAa4Vt0wu5YhVI90fdvhkNR6kJ56ZUZKZp-O5zd5RCed1aNhyzO2XiX4Qs7S45MpNVvuCap9f2jA-NF5_lTyLaLugKq/s320/Capture009.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/1834099306751929606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/the-difference-between-byval-and-byref.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1834099306751929606'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/1834099306751929606'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/the-difference-between-byval-and-byref.html' title='The Difference between ByVal and ByRef in Excel VBA'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9NgXwlXKJVYbwOy1cL1fmYrHtsinz0r6XmAeuWe7hOlUO9dKsca_1hnAkACtXjnoYYbZOh7zTbhRTvFCDtsTAXOXg9FW8J_sqNCBmTH5BT4wMJPqQ9ZyvXJfR7lKQglHVePS0MFKUa-h3/s72-c/Capture122.PNG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-3446830969294530196</id><published>2017-07-01T05:06:00.000-07:00</published><updated>2017-07-01T05:11:57.728-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="formulas"/><title type='text'>How to use GESTEP Function in Excel</title><content type='html'>&lt;b&gt;GESTEP Function:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
GESTEP(NUMBER, STEP) Function checks two parameters, NUMBER and STEP value (numeric) and returns&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1) 1 &amp;nbsp; (if NUMBER&amp;nbsp;&amp;gt;= STEP)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2) 0 &amp;nbsp; (if NUMBER&amp;nbsp;&amp;lt; STEP)&lt;br /&gt;
&lt;br /&gt;
STEP parameter is optional and If no value is supplied, then default value of 0 would be used for STEP. If non-numeric values are supplied for either NUMBER or STEP or Both, then GESTEP function returns&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;Source Sans Pro&amp;quot;, Calibri, sans-serif, Arial; font-size: 16px; text-align: justify;&quot;&gt;#VALUE! error.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Consider marks scored by candidates in competitive exam. GESTEP can be used to determine whether a candidate has scored above average or below average as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheA9wUoyY37fHJGFDDn2XkGcW1Rl56XE2qkAZvrY-vWcmNDu13wfS-5a7L7_97GEN04PK2444tOZeqQ-vMDReeEVh3MrQv_QKaWBaIU4fgXmEMKheqrG4p_N9BDQCTybDLpPZV73IrjfSx/s1600/CaptureGE.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;422&quot; data-original-width=&quot;546&quot; height=&quot;492&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheA9wUoyY37fHJGFDDn2XkGcW1Rl56XE2qkAZvrY-vWcmNDu13wfS-5a7L7_97GEN04PK2444tOZeqQ-vMDReeEVh3MrQv_QKaWBaIU4fgXmEMKheqrG4p_N9BDQCTybDLpPZV73IrjfSx/s640/CaptureGE.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&amp;nbsp; &amp;nbsp; Similarly, GESTEP can be used in combination with IF function where, logical test of IF function evaluates to TRUE if GESTEP returns 1 and FALSE if GESTEP returns 0.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZPbJW-ZdvxE8CO4IIwY4PJPffj0epNELOcznehCjL5TOmPPyV904iZIsUR70v6J_q4TSxwljV2xXgHPNBmvo4ZeOiZBO4Q6twrn1RjRcWAXAHyffr1CzpkvyFt_boN8AunXXKusR9b2T/s1600/CaptureGEIF.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;436&quot; data-original-width=&quot;842&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZPbJW-ZdvxE8CO4IIwY4PJPffj0epNELOcznehCjL5TOmPPyV904iZIsUR70v6J_q4TSxwljV2xXgHPNBmvo4ZeOiZBO4Q6twrn1RjRcWAXAHyffr1CzpkvyFt_boN8AunXXKusR9b2T/s1600/CaptureGEIF.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/3446830969294530196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/how-to-use-gestep-function-in-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3446830969294530196'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/3446830969294530196'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/07/how-to-use-gestep-function-in-excel.html' title='How to use GESTEP Function in Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheA9wUoyY37fHJGFDDn2XkGcW1Rl56XE2qkAZvrY-vWcmNDu13wfS-5a7L7_97GEN04PK2444tOZeqQ-vMDReeEVh3MrQv_QKaWBaIU4fgXmEMKheqrG4p_N9BDQCTybDLpPZV73IrjfSx/s72-c/CaptureGE.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7759974220422868422.post-6171921737333088391</id><published>2017-06-30T00:27:00.000-07:00</published><updated>2017-12-08T22:05:06.940-08:00</updated><title type='text'>Different ways to calculate MEDIAN in Excel</title><content type='html'>&lt;b&gt;What is Median.?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Median is one of the important descriptive statistic in data analysis. It is a measure of central tendency. Median is the middle number in the data set. For normally distributed data Median is equal to Mean.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Median Described..&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Consider three numbers say 14, 17, 18. The median for these three numbers is 17. 50% of the values lies above median and 50% are below median.&lt;br /&gt;
&lt;br /&gt;
Now add another number to the above data set say 21. Now the data set has four numbers and the median of 14, 17, 18 and 21 is &lt;b&gt;17.5&lt;/b&gt;. In case of odd numbers in data set, median is one of the values of data set Whereas, In case of &amp;nbsp;even numbers data sets, median is not one of the value of data set.&lt;br /&gt;
&lt;br /&gt;
Excel has inbuilt function MEDIAN() to determine the Median of numbers in data set.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;=MEDIAN(14,17,18)&quot; = &amp;nbsp;17&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;=MEDIAN(14,17,18,21)&quot; = 17.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition, QUARTILE() and PERCENTILE() can &amp;nbsp;be used to determine the MEDIAN. 2nd quartile is nothing but Median and 50th Percentile is also equal to Median.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguf3HMuPriGdTQ0Hjq4buZQVxyjHhOSN0rjeOaedwHc6mA8SjnUP0Q4GcqW38MsIfYokptHl2kplml7OZ_Gxvp60wQa8WTI4Sv3aFvf6cIxVoy1-JVCdzE8PG_trXCmw3jWvXW5VEZilb8/s1600/Captureqq.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;292&quot; data-original-width=&quot;445&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguf3HMuPriGdTQ0Hjq4buZQVxyjHhOSN0rjeOaedwHc6mA8SjnUP0Q4GcqW38MsIfYokptHl2kplml7OZ_Gxvp60wQa8WTI4Sv3aFvf6cIxVoy1-JVCdzE8PG_trXCmw3jWvXW5VEZilb8/s1600/Captureqq.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MEDIAN(14,17,18,21) =&amp;nbsp;QUARTILE({14,17,18,21},2) =&amp;nbsp;PERCENTILE({14,17,18,21},0.5) =&amp;nbsp;&lt;b&gt;17.5&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='https://excelandanalytics.blogspot.com/feeds/6171921737333088391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://excelandanalytics.blogspot.com/2017/06/different-ways-to-calculate-median-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/6171921737333088391'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7759974220422868422/posts/default/6171921737333088391'/><link rel='alternate' type='text/html' href='https://excelandanalytics.blogspot.com/2017/06/different-ways-to-calculate-median-in.html' title='Different ways to calculate MEDIAN in Excel'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguf3HMuPriGdTQ0Hjq4buZQVxyjHhOSN0rjeOaedwHc6mA8SjnUP0Q4GcqW38MsIfYokptHl2kplml7OZ_Gxvp60wQa8WTI4Sv3aFvf6cIxVoy1-JVCdzE8PG_trXCmw3jWvXW5VEZilb8/s72-c/Captureqq.PNG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>