<?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-3522346837552762639</id><updated>2024-09-04T23:47:03.056+08:00</updated><category term="Microsoft Excel 2003"/><category term="Macro"/><category term="Statistics"/><category term="MS Excel"/><category term="Personal Computers"/><category term="Probability"/><category term="Cognos Impromptu Report"/><category term="Windows XP Operating System"/><category term="AS400 Programming"/><category term="Adobe Illustrator"/><category term="Blogger"/><category term="Cognos Powerplay Transformer"/><category term="DB2"/><category term="English"/><category term="Extract data"/><category term="MS Windows XP"/><category term="Personal Thoughts"/><category term="Probability Distribution"/><category term="Programming"/><category term="Security"/><category term="Wordpress"/><category term="android"/><category term="iphone"/><category term="mathematical expectation"/><category term="phone applications"/><category term="text file"/><category term="vocabulary"/><category term="xml"/><title type='text'>A novice&#39;s solutions corner - Statistics, MS Excel, MS Access, Cognos, and others</title><subtitle type='html'>Maths made me mad.&#xa;IT is only for the geeks.&#xa;You are not alone, and I seek to reach out to those who understand the woes.&#xa;I am no expert but I just share what I know or how I solve the problems  -&#xa;A novice&#39;s solutions to typical maths.IT problems. If statistics and software drive you crazy, I hope this site would put you back to sanity.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3522346837552762639.post-2965111423041132909</id><published>2011-09-11T23:28:00.000+08:00</published><updated>2011-09-11T23:28:59.931+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="phone applications"/><title type='text'>iphone vs Android: which group do you belong ?</title><content type='html'>I am waiting for iphone 5. Is it worth waiting for ? @__@</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/2965111423041132909/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/09/iphone-vs-android-which-group-do-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/2965111423041132909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/2965111423041132909'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/09/iphone-vs-android-which-group-do-you.html' title='iphone vs Android: which group do you belong ?'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-7851512238785211786</id><published>2011-09-11T23:03:00.000+08:00</published><updated>2011-09-11T23:03:23.337+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="Wordpress"/><category scheme="http://www.blogger.com/atom/ns#" term="xml"/><title type='text'>&quot;Sorry, the import failed due to a server error. The error code is bX-izedxv&quot;.</title><content type='html'>You received the above error message when trying to export your Wordpress .xml file into Blogger/Blogspot.&lt;div&gt;&lt;br /&gt;
&lt;div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div&gt;&lt;b&gt;Solution:&amp;nbsp;&lt;/b&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;Go to&amp;nbsp;http://wordpress2blogger.appspot.com/&lt;/div&gt;&lt;div&gt;and follow the instructions.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;It worked for me, but do note that the file must NOT exceed 1MB.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/7851512238785211786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/09/sorry-import-failed-due-to-server-error.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/7851512238785211786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/7851512238785211786'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/09/sorry-import-failed-due-to-server-error.html' title='&quot;Sorry, the import failed due to a server error. The error code is bX-izedxv&quot;.'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3522346837552762639.post-3921060260183361841</id><published>2011-08-30T16:41:00.000+08:00</published><updated>2011-08-30T16:41:56.851+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Personal Thoughts"/><title type='text'>Pathetic Page Views</title><content type='html'>This week&#39;s page view :&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/AVvXsEiF2D5MlLtJtLUeNPTIMKQfNU_wnoknJa0Xig1SE0nLm1bwfGdKPXxCrXxOt_CtjBpd8M262tgBGPM3SWvdL8UyNsZWanYDIzjzwNHGgSorjElVT8SQghdAIkO7e3jTNVGnWx_ZRbjsZSAW/s1600/Pageviews.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiF2D5MlLtJtLUeNPTIMKQfNU_wnoknJa0Xig1SE0nLm1bwfGdKPXxCrXxOt_CtjBpd8M262tgBGPM3SWvdL8UyNsZWanYDIzjzwNHGgSorjElVT8SQghdAIkO7e3jTNVGnWx_ZRbjsZSAW/s400/Pageviews.jpg&quot; width=&quot;400&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Only 24 page views in total this week (as at 30 Aug 2011).&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;How pathetic is that. &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;Should I continue this blog ? =(&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/3921060260183361841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/pathetic-page-views.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/3921060260183361841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/3921060260183361841'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/pathetic-page-views.html' title='Pathetic Page Views'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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/AVvXsEiF2D5MlLtJtLUeNPTIMKQfNU_wnoknJa0Xig1SE0nLm1bwfGdKPXxCrXxOt_CtjBpd8M262tgBGPM3SWvdL8UyNsZWanYDIzjzwNHGgSorjElVT8SQghdAIkO7e3jTNVGnWx_ZRbjsZSAW/s72-c/Pageviews.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3522346837552762639.post-1840568150601892851</id><published>2011-08-29T16:55:00.001+08:00</published><updated>2011-08-30T17:03:05.591+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Macro"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Excel 2003"/><category scheme="http://www.blogger.com/atom/ns#" term="MS Excel"/><title type='text'>How to link data in 2 excel files and combine them into 1 using macro?</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;FILE 1&lt;br /&gt;
data: Column A, B and C&lt;br /&gt;
&lt;br /&gt;
FILE 2&lt;br /&gt;
data: Column A, and D&lt;br /&gt;
&lt;br /&gt;
Use FILE 1 as the primary file.&lt;br /&gt;
&lt;br /&gt;
Final Result: should have A , B C and D together in 1 spreadsheet.&lt;br /&gt;
&lt;br /&gt;
Problem  : Look up function but seems like it doesn&#39;t work well. the data  is jumble up. I still to check using True false function. cos what is  avai in A may not be found in B.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;Pri file has more information ( in terms of number of names ) than file 2.&lt;br /&gt;
name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data3&lt;br /&gt;
&lt;br /&gt;
and in file 2:&lt;br /&gt;
name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data3 &amp;nbsp;data4&lt;/span&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Sub finder()&lt;br /&gt;
Dim rng1 As Range&lt;br /&gt;
Dim rng2 As Range&lt;br /&gt;
Dim celle As Range&lt;br /&gt;
Dim llastrow As Long&lt;br /&gt;
Dim i As Long&lt;br /&gt;
&lt;br /&gt;
Application.ScreenUpdating&lt;wbr&gt;&lt;/wbr&gt; = False&lt;br /&gt;
&lt;br /&gt;
Set rng1 = Range(Sheets(&quot;Pri file&quot;).[A2], Sheets(&quot;Pri file&quot;).[A65536].End(xlUp))&lt;wbr&gt;&lt;/wbr&gt;&lt;br /&gt;
Set rng2 = Range(Sheets(&quot;file2&quot;).[A2]&lt;wbr&gt;&lt;/wbr&gt;, Sheets(&quot;file2&quot;).[A65536].E&lt;wbr&gt;&lt;/wbr&gt;nd(xlUp))&lt;br /&gt;
&lt;br /&gt;
For Each celle In rng1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; If (IsError(Application.VLook&lt;wbr&gt;&lt;/wbr&gt;up(celle, rng2, 1, False))) Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; celle.Offset(0, 17) = &quot;Not found in file2&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else: celle.Offset(0, 17) = &quot;Found in file2&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; End If&lt;br /&gt;
Next celle&lt;br /&gt;
&lt;br /&gt;
For Each celle In rng2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; If (IsError(Application.VLook&lt;wbr&gt;&lt;/wbr&gt;up(celle, rng1, 1, False))) Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; celle.Offset(0, 4) = &quot;Not found in Pri file&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else: celle.Offset(0, 4) = &quot;Found in Pri file&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; End If&lt;br /&gt;
Next celle&lt;br /&gt;
&lt;br /&gt;
llastrow = Sheets(&quot;Pri file&quot;).[A65536].End(xlUp).&lt;wbr&gt;&lt;/wbr&gt;Row&lt;br /&gt;
Set rng2 = Range(Sheets(&quot;file2&quot;).[E2]&lt;wbr&gt;&lt;/wbr&gt;, Sheets(&quot;file2&quot;).[E65536].E&lt;wbr&gt;&lt;/wbr&gt;nd(xlUp))&lt;br /&gt;
i = 1&lt;br /&gt;
&lt;br /&gt;
For Each celle In rng2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; If celle = &quot;Not found in Pri file&quot; Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sheets(&quot;Pri file&quot;).Cells(llastrow + i, 1) = celle.Offset(0, -4)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sheets(&quot;Pri file&quot;).Cells(llastrow + i, 2) = celle.Offset(0, -3)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sheets(&quot;Pri file&quot;).Cells(llastrow + i, 3) = celle.Offset(0, -1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sheets(&quot;Pri file&quot;).Cells(llastrow + i, 4) = celle.Offset(0, -2)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = i + 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; End If&lt;br /&gt;
Next celle&lt;br /&gt;
&lt;br /&gt;
Application.ScreenUpdating&lt;wbr&gt;&lt;/wbr&gt; = True&lt;br /&gt;
&lt;br /&gt;
End Sub&lt;/span&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/1840568150601892851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/how-to-link-data-in-2-excel-files-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1840568150601892851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1840568150601892851'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/how-to-link-data-in-2-excel-files-and.html' title='How to link data in 2 excel files and combine them into 1 using macro?'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-7248492783906462648</id><published>2011-08-28T18:17:00.000+08:00</published><updated>2011-08-30T16:53:43.985+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Macro"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Excel 2003"/><category scheme="http://www.blogger.com/atom/ns#" term="MS Excel"/><title type='text'>Macro - ADD 3 rows &amp; UNDO Macro to undo the addition of 3 rows</title><content type='html'>To do the following : &lt;br /&gt;
&lt;br /&gt;
a) ADD 3 Rows&lt;br /&gt;
&amp;nbsp;(or even more rows) by prompting user to enter the number of rows they wish to insert. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;b) UNDO MACRO:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
1. Undo the addition/insertion of rows&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
2. when click, it will also prompt: &quot;Do you want to undo adding 3 rows ?&quot;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;gt; Yes | Cancel&lt;br /&gt;
if Yes, macro proceed and if Cancel , macro will not run and remain.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Option Explicit&lt;br /&gt;
Dim StartRow As Long&lt;br /&gt;
Dim RowCount&lt;br /&gt;
&lt;br /&gt;
Sub InsertThreeRows()&lt;br /&gt;
Dim r As Long, n As Long&lt;br /&gt;
Dim c As Range&lt;br /&gt;
Application.ScreenUpdating&lt;wbr&gt;&lt;/wbr&gt; = False&lt;br /&gt;
Application.Calculation = xlCalculationManual&lt;br /&gt;
Application.EnableEvents = False&lt;br /&gt;
RowCount = InputBox(&quot;Enter number of row insertions&quot;, &quot;Row Insertions&quot;, &quot;&lt;span class=&quot;searchTerm&quot;&gt;10&lt;/span&gt;&quot;)&lt;br /&gt;
If RowCount = &quot;&quot; Then Exit Sub&lt;br /&gt;
&amp;nbsp; If Selection.Rows.Count &amp;gt; 1 Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; MsgBox &quot;Select only one Row!&quot;, vbExclamation&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Exit Sub&lt;br /&gt;
&amp;nbsp; End If&lt;br /&gt;
&amp;nbsp; r = Selection.Row&lt;br /&gt;
&amp;nbsp; StartRow = r&lt;br /&gt;
&amp;nbsp; For n = 1 To RowCount&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Range(Cells(r + 1, 1), Cells(r + 3, 1)).EntireRow.Insert&lt;br /&gt;
&amp;nbsp; &amp;nbsp; For Each c In Intersect(ActiveSheet.Used&lt;wbr&gt;&lt;/wbr&gt;Range, Rows(r)).Cells&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; If c.HasFormula Then c.AutoFill Range(c, c.Offset(3, 0))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Next&lt;br /&gt;
&amp;nbsp; &amp;nbsp; r = r + 4&lt;br /&gt;
&amp;nbsp; Next&lt;br /&gt;
Application.EnableEvents = True&lt;br /&gt;
Application.Calculation = xlCalculationAutomatic&lt;br /&gt;
Application.ScreenUpdating&lt;wbr&gt;&lt;/wbr&gt; = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Sub UndoThreeRows()&lt;br /&gt;
If RowCount = 0 Then Exit Sub&lt;br /&gt;
Dim r As Long, rus As String&lt;br /&gt;
rus = MsgBox(&quot;Do you want to undo adding 3 rows ?&quot;, vbYesNo)&lt;br /&gt;
If rus = vbNo Then Exit Sub&lt;br /&gt;
For r = StartRow To (StartRow + RowCount)&lt;br /&gt;
Range(Rows(r).Offset(1, 0), Rows(r).Offset(3, 0)).Delete&lt;br /&gt;
Next&lt;br /&gt;
End Sub&lt;/span&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/7248492783906462648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/macro-add-3-rows-undo-macro-to-undo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/7248492783906462648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/7248492783906462648'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/macro-add-3-rows-undo-macro-to-undo.html' title='Macro - ADD 3 rows &amp; UNDO Macro to undo the addition of 3 rows'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-5273901437359717670</id><published>2011-08-27T16:58:00.000+08:00</published><updated>2011-08-27T16:58:33.449+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mathematical expectation"/><category scheme="http://www.blogger.com/atom/ns#" term="Statistics"/><title type='text'>Mathematical Expectation</title><content type='html'>&lt;b&gt;Question 4.53&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Suppose that a grocery store purchases 5 cartons of skim milk at the wholesale price of $1.20 per carton and retails the milk at $1.65 per carton After the expiration date, the unsold milk is removed from the shelf and the grocer receives a credit from the distributor equal to 3/4 of the wholesale price. If the probability distribution of the random variable X, the number of cartons that are sold from this lot is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td&gt;x&lt;/td&gt;   &lt;td&gt;1&lt;/td&gt;   &lt;td&gt;2&lt;/td&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;5&lt;/td&gt; &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;f(x)&lt;/td&gt;   &lt;td&gt;1/15&lt;/td&gt;   &lt;td&gt;2/15&lt;/td&gt;  &lt;td&gt;3/15&lt;/td&gt;  &lt;td&gt;4/15&lt;/td&gt;  &lt;td&gt;5/15&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
Find the Expected Profit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
X= No. of cartoons sold from this lot&lt;br /&gt;
Y= Expected Profit&lt;br /&gt;
&lt;br /&gt;
Y= Selling Price - Cost Price + Credit from distributor&lt;br /&gt;
= 1.65x-5(1.20) +(3/4)[(5-x)(1.20)]&lt;br /&gt;
=1.65x -6+3/4[6-1.20x]&lt;br /&gt;
=1.65x -6 + 4.5- 0.90x&lt;br /&gt;
=0.75x-1.5&lt;br /&gt;
&lt;br /&gt;
E(X) = 0(1/15) + 1(2/15) + 2(2/15) + 3(3/15) + 4(4/15) + 5(5/15) &lt;br /&gt;
= 46/15&lt;br /&gt;
&lt;br /&gt;
E(Y) = 0.75 (46/15) - 1.5 = 0.80&lt;br /&gt;
The expected profit is&lt;u&gt; $0.80.&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/5273901437359717670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/mathematical-expectation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/5273901437359717670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/5273901437359717670'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/mathematical-expectation.html' title='Mathematical Expectation'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-6147871379995838188</id><published>2011-08-27T16:26:00.003+08:00</published><updated>2011-08-27T16:59:29.326+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="English"/><category scheme="http://www.blogger.com/atom/ns#" term="vocabulary"/><title type='text'>Enriching Vocabulary 1</title><content type='html'>Words beginning with&lt;b&gt; au~&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
1. &lt;b&gt;audacious&lt;/b&gt; - daring; often to a degree that is considered foolish.&lt;br /&gt;
&lt;i&gt;It was &lt;u&gt;audacious &lt;/u&gt;of the student to talk back to his principal, especially when he was clearly in the wrong.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. &lt;b&gt;augment&lt;/b&gt; - to cause to become bigger, better, more valuable&lt;br /&gt;
&lt;i&gt;To&lt;u&gt; augment &lt;/u&gt;the income of the family, he took up several part-time jobs.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
3. &lt;b&gt;augur&lt;/b&gt; - to&amp;nbsp; be a sign of something in the future&lt;br /&gt;
&lt;i&gt;The lack of lustre in the&amp;nbsp; stars does not&lt;u&gt; augur &lt;/u&gt;well for his fortunes.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
4.&lt;b&gt; aura&lt;/b&gt; - an effect/feeling that seems to surround / come from a person/place&lt;br /&gt;
&lt;i&gt;There was a strangely mysterious &lt;u&gt;aura&lt;/u&gt; exuding from the ancient museum.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
5. &lt;b&gt;auspices&lt;/b&gt; - help, support and favour&lt;br /&gt;
&lt;i&gt;This concert was held successfully only because of the &lt;u&gt;auspices&lt;/u&gt; of the various organisations.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
6. &lt;b&gt;austere&lt;/b&gt; - plain, without comfort/enjoyment.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;The monks are used to an&lt;u&gt; austere&lt;/u&gt; life in the mountains.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
7. &lt;b&gt;authentic&lt;/b&gt; - genuine&lt;br /&gt;
&lt;i&gt;The expert judged this to be an&lt;u&gt; authentic&lt;/u&gt; piece of work.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. &lt;b&gt;auxiliary&lt;/b&gt; - providing additonal help/support, especially with lower rank or of less importance.&lt;br /&gt;
&lt;i&gt;&lt;u&gt;Auxiliary&lt;/u&gt; nurses were called in to cope with the sudden emergencies in the hospital.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
9. &lt;b&gt;auburn&lt;/b&gt; - reddish-brown&lt;br /&gt;
&lt;i&gt;My sister has a nice &lt;u&gt;auburn &lt;/u&gt;hair.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
10. &lt;b&gt;auspicious&lt;/b&gt; - giving, promising or showing signs of future success&lt;br /&gt;
&lt;i&gt;The Chinese believe red to be an &lt;u&gt;auspicious&lt;/u&gt; colour.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/6147871379995838188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/enriching-vocabulary-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6147871379995838188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6147871379995838188'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/enriching-vocabulary-1.html' title='Enriching Vocabulary 1'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-2966228774887869527</id><published>2011-08-26T08:24:00.001+08:00</published><updated>2011-08-27T15:46:34.834+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Macro"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Excel 2003"/><category scheme="http://www.blogger.com/atom/ns#" term="text file"/><title type='text'>Create a macro to convert multiple .txt file and place all data from text to .xls file</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Convert multiple .txt files in a folder&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Delimit the .txt files so that there are headers in each column&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Format for date (1st column) should be in DD-MM-YY format&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Place all data from .txt files into 1 .xls file&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Scan through the data in .xls file&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Ensure all data are unique (ie. no repeated data in each row)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;b&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;Solution:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
&lt;table&gt;&lt;pre class=&quot;notpretty&quot; id=&quot;codeSnippet20-36287282-1&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Option Explicit

Public Sub fstest()
    Dim strData As String   &#39;whole file
    Dim varLine As Variant  &#39;single line
    Dim varLines() As Variant  &#39;line data array
    Dim strLine As String    &#39;single line
    Dim strLines() As String  &#39;parsed lines
    Dim strUniqueLineData As String
    Dim dicUniqueData As Object       &#39;with reference you can use New Scripting.Dictionary
    Dim oFSO As Object                    &#39;with reference you can use New Scripting.FileSystemObject
    Dim lngRC As Long
    Dim tsThing As Object                 &#39;with reference you can use TextStream
    Dim strSelectedFolder As String
    Dim fileThing As Object               &#39;with reference you can use File
    Dim strHeaders() As Variant
    Dim lngRow As Long
    Dim lngCol As Long
    Dim strParsed() As String
    
    Const ForReading As Long = 1        &#39;not required if reference used
    Const TristateFalse As Long = 0     &#39;not required if reference used
    
    Set dicUniqueData = CreateObject(&quot;Scripting.Dictionary&quot;)
    Set oFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)

    strHeaders = Array(&quot;DATE&quot;, &quot;KG-GROSS&quot;, &quot;KG-Tot&quot;, &quot;BUY&quot;, &quot;Tot BUY&quot;, &quot;ORDERS&quot;, &quot;Tot.Ord&quot;, &quot;SELL&quot;, &quot;Tot SELL&quot;)
    
    &#39;User picks a folder for the text files
    With Application.FileDialog(msoFileDialogFolderPicker)
        .AllowMultiSelect = False
        lngRC = .Show
        If lngRC = 0 Then
            MsgBox &quot;User cancelled folder selection.  Process stopped.&quot;, vbExclamation, &quot;No Folder Selected&quot;
            Exit Sub
        End If
        strSelectedFolder = .SelectedItems(1)
    End With
    
    &#39;Iterate through the files in the selected folder, looking for *.txt files
    For Each fileThing In oFSO.GetFolder(strSelectedFolder).Files
        If LCase(fileThing.Name) Like &quot;*.txt&quot; Then
            Application.StatusBar = &quot;Processing &quot; &amp;amp; fileThing.Name
            Set tsThing = fileThing.OpenAsTextStream(ForReading, TristateFalse)
            strData = tsThing.ReadAll
            tsThing.Close
            strLines = Split(strData, vbCrLf)
            strData = vbNullString
            For Each varLine In strLines
                strLine = varLine
                Do
                    strLine = Replace(strLine, &quot;  &quot;, &quot; &quot;)
                Loop Until InStr(1, strLine, &quot;  &quot;, vbBinaryCompare) = 0
                If strLine Like &quot;##-##-## *&quot; Then
                    strLine = &quot;20&quot; &amp;amp; strLine
                    strUniqueLineData = Split(strLine, &quot; &quot;, 2)(1)
                    If dicUniqueData.Exists(strUniqueLineData) Then
                    Else
                        dicUniqueData.Add strUniqueLineData, strLine
                    End If
                End If
            Next
            
        End If
    Next
    
    &#39;Put unique data in array
    ReDim varLines(0 To dicUniqueData.Count, 0 To UBound(strHeaders))
    For lngCol = LBound(strHeaders) To UBound(strHeaders)
        varLines(0, lngCol) = strHeaders(lngCol)
    Next
    lngRow = 1
    For Each varLine In dicUniqueData
        strParsed = Split(dicUniqueData(varLine), &quot; &quot;)
        For lngCol = LBound(strHeaders) To UBound(strHeaders)
            If lngCol = 0 Then
                varLines(lngRow, lngCol) = CDate(strParsed(lngCol))     &#39;Col A is date
            Else
                varLines(lngRow, lngCol) = Val(strParsed(lngCol))       &#39;rest are numeric
            End If
        Next
        lngRow = lngRow + 1
    Next
    
    &#39;Push array data to worksheet
    Application.ScreenUpdating = False
    ActiveSheet.Range(ActiveSheet.Cells(1, 1), ActiveSheet.Cells(UBound(varLines, 1) + 1, UBound(varLines, 2) + 1)).Value = varLines
    Application.ScreenUpdating = True
    Application.StatusBar = vbNullString
End Sub&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;table&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/2966228774887869527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/create-macro-to-convert-multiple-txt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/2966228774887869527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/2966228774887869527'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/create-macro-to-convert-multiple-txt.html' title='Create a macro to convert multiple .txt file and place all data from text to .xls file'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-49927444473607650</id><published>2011-08-25T18:17:00.000+08:00</published><updated>2011-08-26T18:23:42.651+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS Windows XP"/><title type='text'>Error in Renaming Folder in Windows Explorer</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Rename a folder but the error states :&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;i&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Cannot rename ____ : Access is denied.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Make sure the disk is not full or write-protected and that the file is not currently in use.&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
However, owner is under my name and I have full rights to the folder.&lt;br /&gt;
The files in the folder are not even opened.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;How ?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;b&gt;1.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span class=&quot;richText&quot;&gt;Download Process Explorer from &lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx&quot; target=&quot;_blank&quot;&gt;http://technet.microsoft.c&lt;wbr&gt;&lt;/wbr&gt;om/en-us/s&lt;wbr&gt;&lt;/wbr&gt;ysinternal&lt;wbr&gt;&lt;/wbr&gt;s/&lt;wbr&gt;&lt;/wbr&gt;bb896653&lt;wbr&gt;&lt;/wbr&gt;.aspx&lt;/a&gt;&lt;br /&gt;
When  Process Explorer is running Press Ctrl + F. This will open the find  Dialog Box. Enter the File Name in the Box &amp;amp; Process Explorer will  find the Process using that file. Kill that Process in Process Explorer  which is highlighted when you select that process in View window which  opens &amp;amp; you will be able to rename the file then.&lt;br /&gt;
&lt;br /&gt;
Or download Unlocker from &lt;span&gt;&lt;a href=&quot;http://www.filehippo.com/download_unlocker/&quot; target=&quot;_blank&quot;&gt;http://www.filehippo.com/d&lt;wbr&gt;&lt;/wbr&gt;ownload_un&lt;wbr&gt;&lt;/wbr&gt;locker/&lt;/a&gt;  &amp;amp; select Unlock File from the Right click menu you get. This will  close all open File handles &amp;amp; you will be able to rename the File  then.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class=&quot;richText&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;richText&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;
&lt;b&gt;2.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span class=&quot;richText&quot;&gt;Create a new folder and move the files to it and see if any violations.&lt;/span&gt; In case it doesn&#39;t work, &lt;span class=&quot;richText&quot;&gt;go to task manager and check if any files is still opened in the &#39;background&#39; and then end proces. Try again.&lt;/span&gt; &lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/49927444473607650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/error-in-renaming-folder-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/49927444473607650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/49927444473607650'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/error-in-renaming-folder-in-windows.html' title='Error in Renaming Folder in Windows Explorer'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-1915930833933499734</id><published>2011-08-24T17:51:00.003+08:00</published><updated>2011-08-27T15:49:55.294+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Macro"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Excel 2003"/><title type='text'>Comparing sets of data (lower and upper limit)</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Data set:&lt;br /&gt;
0.5, 1.5, 2.1, 0.43, 0.35&lt;br /&gt;
&lt;br /&gt;
condition/base number : 1&lt;br /&gt;
&lt;br /&gt;
Result needed:&lt;br /&gt;
To select number nearest to 1 ie.= 0.5 by using macro.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt; Although 1.5 is also near to 1 (also a 0.5 difference), it must choose the smaller number.&lt;br /&gt;
(0.5 is smaller as compared to 1.5)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span class=&quot;richText&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;&lt;pre class=&quot;notpretty&quot; id=&quot;codeSnippet154793&quot;&gt;&lt;span class=&quot;richText&quot;&gt;Sub FindClosest()
    Const CONDITION_NUMBER = 1
    Const COLUMNS_OF_DATA = 7
    
    Dim intCount As Integer
    Dim sngNums() As Single
    ReDim sngNums(COLUMNS_OF_DATA)
    Dim sngMinDiff As Single
    Dim sngTemp As Single
    Dim intResult As Integer
    Dim strTemp As String
    Dim lngRow As Long
    Dim strRow As String
    Dim lngBottom As Long
    Dim intTemp As Integer
    
    ActiveCell.SpecialCells(xlLastCell).Select
    lngBottom = ActiveCell.Row
        
    For lngRow = 2 To lngBottom
        strRow = Trim(Str(lngRow))
       &#39; Populate an array with the differences. PURPOSE: TO REDUCE NUMBER OF LOCATIONS IN WAREHOUSE
       For intCount = 1 To COLUMNS_OF_DATA
           If intCount &amp;lt; 3 Then
               strTemp = Chr(88 + intCount)
           Else
               intTemp = (intCount - 3) / 26
               strTemp = Chr(65 + intTemp) &amp;amp; Chr(62 + intCount - (26 * intTemp))
           End If
           sngNums(intCount) = CONDITION_NUMBER - Range(strTemp &amp;amp; strRow).Value
       Next
    
       &#39; Start by finding a value that we know is not right that we can use to work our way in.
       &#39; Get the larger of the differences from the smallest and largest numbers in the source range
       If COLUMNS_OF_DATA &amp;lt; 3 Then
           strTemp = Chr(88 + COLUMNS_OF_DATA)
       Else
           intTemp = (COLUMNS_OF_DATA - 3) / 26
           strTemp = Chr(65 + intTemp) &amp;amp; Chr(62 + COLUMNS_OF_DATA - (26 * intTemp))
       End If
       sngTemp = Abs(CONDITION_NUMBER - (Application.WorksheetFunction.Max(Range(&quot;Y&quot; &amp;amp; strRow &amp;amp; &quot;:&quot; &amp;amp; strTemp &amp;amp; strRow))))
       sngMinDiff = Abs(CONDITION_NUMBER - (Application.WorksheetFunction.Min(Range(&quot;Y&quot; &amp;amp; strRow &amp;amp; &quot;:&quot; &amp;amp; strTemp &amp;amp; strRow))))
       
       If sngTemp &amp;gt; sngMinDiff Then sngMinDiff = sngTemp
       
       &#39; Now as we go through the numbers, we know we&#39;ll get something that&#39;s BIGGER.
       &#39; Or, if they&#39;re all the same, it won&#39;t matter which we select.
       intResult = 1
       For intCount = 1 To COLUMNS_OF_DATA
           &#39; If the abs of the difference is smaller, collect the BIGGER number.
           If Abs(sngNums(intCount)) &amp;lt; sngMinDiff Then
               sngMinDiff = Abs(sngNums(intCount))
               intResult = intCount
           End If
           &#39; If the abs of the diff is the same, but the original # is lower than the
           &#39; condition, point to that one instead. RULE OF THUMB: choose nearer to 1 but if btw 0.5 and 1.5, choose 1.5.
           If Abs(sngNums(intCount)) = sngMinDiff And sngNums(intCount) &amp;lt; 0 Then
               intResult = intCount
           End If
       Next
       If intResult &amp;lt; 3 Then
           strTemp = Chr(88 + intResult)
       Else
           intTemp = (intResult - 3) / 26
           strTemp = Chr(65 + intTemp) &amp;amp; Chr(62 + intResult - (26 * intTemp))
       End If
       sngTemp = range(strTemp &amp;amp; strRow).Value
       &#39; Now intResult holds the index of the closest number that is lower than the condition.
       If COLUMNS_OF_DATA = 1 Then
           strTemp = &quot;Z&quot;
       Else
           intTemp = (COLUMNS_OF_DATA - 2) / 26
           strTemp = Chr(65 + intTemp) &amp;amp; Chr(63 + COLUMNS_OF_DATA - (26 * intTemp))
       End If
       Range(strTemp &amp;amp; strRow).Formula = sngTemp
    Next
End Sub
&lt;/span&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/1915930833933499734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/comparing-sets-of-data-lower-and-upper.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1915930833933499734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1915930833933499734'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/comparing-sets-of-data-lower-and-upper.html' title='Comparing sets of data (lower and upper limit)'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-6390578079273892104</id><published>2011-08-20T18:58:00.000+08:00</published><updated>2011-08-20T18:58:24.010+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Probability"/><category scheme="http://www.blogger.com/atom/ns#" term="Probability Distribution"/><category scheme="http://www.blogger.com/atom/ns#" term="Statistics"/><title type='text'>Random Variables and Probability Distribution</title><content type='html'>&lt;b&gt;Question 3.32&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The proportion of the budgets for a&amp;nbsp;certain&amp;nbsp;type of industrial company that is&amp;nbsp;allocated to&amp;nbsp;environmental&amp;nbsp;and pollution control is coming under scrutiny. A data collection project&amp;nbsp;determines&amp;nbsp;that&amp;nbsp;the distribution of these proportions is given by:&lt;br /&gt;
&lt;br /&gt;
f (y) = 5 (1-y)^4, &amp;nbsp;0&amp;lt;=y&amp;lt;=1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0, elsewhere&lt;br /&gt;
&lt;br /&gt;
a) Verify that the above is a valid density&lt;br /&gt;
b) What is the probability that a company chosen at random expends less than 10% of its budget on environmental and pollution controls ?&lt;br /&gt;
c) What is the probability that a company selected at random spends more than 50% on environmental and pollution control ?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;a)&lt;!--[endif]--&gt;&lt;/span&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;o:OLEObject Type=&quot;Embed&quot; ProgID=&quot;Equation.3&quot; ShapeID=&quot;_x0000_i1025&quot;
  DrawAspect=&quot;Content&quot; ObjectID=&quot;_1375350110&quot;&gt;  &lt;/o:OLEObject&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;Let u = 1-y&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBLlupyrFdy3HsDIucSXyWU0WrnkSA_FkynV6PRg2CHMmh34wgK-0f8qCOHwRUwO0ZC4ELkLUQ9nsLPZiul7cMhXjoBCggz5ctRxU-5e8ONT0a1HK6cAD4Y9zSnwrjeHa-YU0FJyAj6OCu/s1600/3.32a+densityfn.jpg&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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBLlupyrFdy3HsDIucSXyWU0WrnkSA_FkynV6PRg2CHMmh34wgK-0f8qCOHwRUwO0ZC4ELkLUQ9nsLPZiul7cMhXjoBCggz5ctRxU-5e8ONT0a1HK6cAD4Y9zSnwrjeHa-YU0FJyAj6OCu/s1600/3.32a+densityfn.jpg&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIHYJ1fq8dhUwJ2fbUzwa3GAVbYZeP2bBYsLSyD4QvHBmmQp8CCIaeJE1T6_kjNn_T879VIyBSHcdtU8yru5r1PTpnNjEqsyZj8TvKeIiUdUkihgrlnigZuxPLr-3yIKJUwPqIAQLWLeXX/s1600/3.32+densityfn.jpg&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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIHYJ1fq8dhUwJ2fbUzwa3GAVbYZeP2bBYsLSyD4QvHBmmQp8CCIaeJE1T6_kjNn_T879VIyBSHcdtU8yru5r1PTpnNjEqsyZj8TvKeIiUdUkihgrlnigZuxPLr-3yIKJUwPqIAQLWLeXX/s1600/3.32+densityfn.jpg&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12.0pt; mso-ansi-language: EN-GB; mso-bidi-language: AR-SA; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;; mso-fareast-language: EN-US;&quot;&gt;&lt;span&gt;&lt;br /&gt;
&lt;!--[endif]--&gt;&lt;/span&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;o:OLEObject Type=&quot;Embed&quot; ProgID=&quot;Equation.3&quot; ShapeID=&quot;_x0000_i1025&quot;
  DrawAspect=&quot;Content&quot; ObjectID=&quot;_1375350173&quot;&gt;  &lt;/o:OLEObject&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thus, this is a valid density function.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;b) &amp;nbsp;&lt;/div&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbasOfKUDLDSsw2Cq7gpjdCKDyeigMCtkBa8-1SEIVhAGt6aA59E3aPRlLRSqlMAuEI11Ewv8MKAIvM1ULJI3YIoCciDqo2fTflgmbzVdE0z7BT2KAHfKs8x-8EJgPgW7_Q_eRdR83pxqK/s1600/3.32B+densityfn.jpg&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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbasOfKUDLDSsw2Cq7gpjdCKDyeigMCtkBa8-1SEIVhAGt6aA59E3aPRlLRSqlMAuEI11Ewv8MKAIvM1ULJI3YIoCciDqo2fTflgmbzVdE0z7BT2KAHfKs8x-8EJgPgW7_Q_eRdR83pxqK/s1600/3.32B+densityfn.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
c)&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2hoHA2C5apsl0ONuREXFh1YipVo_AeJk7cyM9mEYMbMlprxdxRn0CMUDY3TH4S9OITxotpLWvRxV3iEDL3CnIwehl2qfSd12EiUbdkfx8wWEokoRweYIygLVwl3ecKCydhkdjta3tYeBC/s1600/3.32C+densityfn.jpg&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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2hoHA2C5apsl0ONuREXFh1YipVo_AeJk7cyM9mEYMbMlprxdxRn0CMUDY3TH4S9OITxotpLWvRxV3iEDL3CnIwehl2qfSd12EiUbdkfx8wWEokoRweYIygLVwl3ecKCydhkdjta3tYeBC/s1600/3.32C+densityfn.jpg&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/6390578079273892104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/random-variables-and-probability.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6390578079273892104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6390578079273892104'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/random-variables-and-probability.html' title='Random Variables and Probability Distribution'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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/AVvXsEhBLlupyrFdy3HsDIucSXyWU0WrnkSA_FkynV6PRg2CHMmh34wgK-0f8qCOHwRUwO0ZC4ELkLUQ9nsLPZiul7cMhXjoBCggz5ctRxU-5e8ONT0a1HK6cAD4Y9zSnwrjeHa-YU0FJyAj6OCu/s72-c/3.32a+densityfn.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3522346837552762639.post-6073414681380641819</id><published>2011-08-18T14:11:00.000+08:00</published><updated>2011-08-18T22:40:18.335+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Extract data"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Excel 2003"/><title type='text'>How do I extract selected text from a string of text?</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;span class=&quot;searchTerm&quot;&gt;Data&lt;/span&gt; in a cell and need to &lt;span class=&quot;searchTerm&quot;&gt;extract&lt;/span&gt;&amp;nbsp;part of it :&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;1. AERO 030405A AUTO 24567AZ 99AM &amp;nbsp;&amp;gt;&amp;nbsp;&lt;span class=&quot;searchTerm&quot;&gt;Extract&lt;/span&gt;&amp;nbsp;67&lt;br /&gt;
2. AERO 030405Z AUTO 25611C22AZ 99BM &amp;gt; &amp;nbsp;E&lt;span class=&quot;searchTerm&quot;&gt;xtract&lt;/span&gt; 11&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;1.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
=IF(ISERROR(FIND(&quot;C&quot;,Sheet1!A1)),MID(Sheet1!A1, FIND(&quot;AZ&quot;,Sheet1!A1)-2, 2),MID(Sheet1!A1, FIND(&quot;G&quot;,Sheet1!A1)-2, 2))&lt;br /&gt;
&lt;br /&gt;
2.&lt;br /&gt;
=IF(ISERROR(FIND(&quot;AZ&quot;,Sheet1!A2)),MID(Sheet1!A2, FIND(&quot;G&quot;,Sheet1!A2)-2, 2),MID(Sheet1!A2, FIND(&quot;C&quot;,Sheet1!A2)-2, 2))&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/6073414681380641819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/how-do-i-extract-selected-text-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6073414681380641819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6073414681380641819'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/how-do-i-extract-selected-text-from.html' title='How do I extract selected text from a string of text?'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-8371913868730375257</id><published>2011-08-17T22:52:00.000+08:00</published><updated>2011-08-17T22:52:36.841+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AS400 Programming"/><category scheme="http://www.blogger.com/atom/ns#" term="DB2"/><category scheme="http://www.blogger.com/atom/ns#" term="Programming"/><title type='text'>AS400 / DB2 Programming Tutorial Guide</title><content type='html'>My favourite guides are :&lt;br /&gt;
&lt;br /&gt;
Tutorial for AS400&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;a href=&quot;http://www.texas400.com/tutas400toc.html&quot;&gt;http://www.texas400.com/tu&lt;wbr&gt;&lt;/wbr&gt;tas400toc.&lt;wbr&gt;&lt;/wbr&gt;html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tutorial/book on DB2&lt;br /&gt;
&lt;a href=&quot;http://publib.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH11/CCONTENTS&quot;&gt;http://publib.boulder.ibm.&lt;wbr&gt;&lt;/wbr&gt;com/cgi-bi&lt;wbr&gt;&lt;/wbr&gt;n/bookmgr_&lt;wbr&gt;&lt;/wbr&gt;OS390/BOOK&lt;wbr&gt;&lt;/wbr&gt;S/&lt;wbr&gt;&lt;/wbr&gt;DSNAPH11&lt;wbr&gt;&lt;/wbr&gt;/CCONTENTS&lt;/a&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;br /&gt;
&lt;br /&gt;
Let me know if you have more to share.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;I am still learning -__-&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/8371913868730375257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/as400-db2-programming-tutorial-guide.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/8371913868730375257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/8371913868730375257'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/as400-db2-programming-tutorial-guide.html' title='AS400 / DB2 Programming Tutorial Guide'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3522346837552762639.post-1605208764742306398</id><published>2011-08-16T23:34:00.000+08:00</published><updated>2011-08-16T23:39:06.634+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Probability"/><category scheme="http://www.blogger.com/atom/ns#" term="Statistics"/><title type='text'>Probability</title><content type='html'>Question 2.26&lt;br /&gt;
&lt;br /&gt;
A California study concluded that by following 7 simple health rules a man&#39;s life can be extended by 11 years n the average and a woman&#39;s life by 7 years. These 7 rules are as follows: no smoking, regular exercise, use alcohol moderately, get 7-8 hours of sleep, maintain proper weight, eat breakfast, and do not eat between meals. In how many ways can a person adopt five of these rules to follow&lt;br /&gt;
a) If the person presently violates all 7 rules?&lt;br /&gt;
b) If the person never drinks and always eats breakfast?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solutions:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
a) &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;7&lt;/span&gt;C&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;5&lt;/span&gt;&amp;nbsp;= 7! / (5! 2!) = 7x6x5x4x3x2x1/{(5x4x3x2x1)(2x1)} = 42/2 =&lt;u&gt; 21 ways&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
b) Never drinks and always eats breakfast &amp;gt;&amp;gt; 2 rules are used.&lt;br /&gt;
7-2=5 rules left to choose in total&lt;br /&gt;
&lt;br /&gt;
Only violate 3 out of the 5 rules&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;5&lt;/span&gt;C&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;3&lt;/span&gt; = 5!/(3!2!) = &lt;u&gt;10 ways&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;br /&gt;
&lt;/u&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/1605208764742306398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/probability.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1605208764742306398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1605208764742306398'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2011/08/probability.html' title='Probability'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3522346837552762639.post-785061365676148079</id><published>2010-09-15T23:25:00.000+08:00</published><updated>2011-08-15T23:38:56.386+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cognos Impromptu Report"/><category scheme="http://www.blogger.com/atom/ns#" term="Cognos Powerplay Transformer"/><title type='text'>Why are my database files (.dbf) updated but not the cubes (.mdc) ?</title><content type='html'>Answer: The cubes are not run/downloaded properly.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;(assuming you have scripts to run the cubes)&lt;br /&gt;
Double check if the date of the cubes is as at current.&lt;br /&gt;
Else do the following :&lt;br /&gt;
To click and run the script again - manually&lt;br /&gt;
How to run manual:&lt;br /&gt;
1. Cognos Powerplay Transformer&lt;br /&gt;
2. Open &quot;...... .pyi&quot; (Usually the name is the same as the one in .mdc, just that you have to open the corresponding .pyi file)&lt;br /&gt;
3. Click on the cube icon to run the cube.&lt;br /&gt;
&lt;b&gt;OR&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
If you have scheduled a task to run the script automatically (which will run the cubes), then you might also wish to wait for the next update (depending on your scheduler: Control Panel &amp;gt; Scheduled Tasks) and then check if the cubes are now updated.&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/785061365676148079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2010/09/why-are-my-database-files-dbf-updated.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/785061365676148079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/785061365676148079'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2010/09/why-are-my-database-files-dbf-updated.html' title='Why are my database files (.dbf) updated but not the cubes (.mdc) ?'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-1225023096252598405</id><published>2010-09-10T17:56:00.030+08:00</published><updated>2011-08-27T18:06:19.754+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Personal Computers"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows XP Operating System"/><title type='text'>Problem logging into windows XP (no password-safemode, blue screen persist)</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;1)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Try to log into the safe mode and do what was explained/advised in :&lt;br /&gt;
&lt;a href=&quot;http://answers.yahoo.com/question/index?qid=20070409184255AAuAqLp&quot; target=&quot;_blank&quot;&gt;http://answers.yahoo.com/q&lt;wbr&gt;&lt;/wbr&gt;uestion/in&lt;wbr&gt;&lt;/wbr&gt;dex?&lt;wbr&gt;&lt;/wbr&gt;qid=20&lt;wbr&gt;&lt;/wbr&gt;0704091842&lt;wbr&gt;&lt;/wbr&gt;55AAuAqLp&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
However, there is no open box for me to type in the passwords in the windows xp blue welcome screen in safe mode. &lt;br /&gt;
&lt;br /&gt;
So i tried ctrl-alt-del and then a dialog box appears with username and password.&lt;br /&gt;
Username : administrator&lt;br /&gt;
password : control userpasswords2 &lt;br /&gt;
&lt;br /&gt;
But the above password doe snot work. &lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;2)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;Tried administrator / (password leave blank) , administrator/administrato&lt;wbr&gt;&lt;/wbr&gt;r, etc all kinds of generic combination, but still doesn&#39;t log on.&lt;br /&gt;
&lt;br /&gt;
It still goes back to safe mode with 2 avastar showing - 1 for administrator and 1 for user,  without any open white box to type in your password. and when clicked  on the administrator avastar, it shows &quot;loading personal settings&quot;  ....&quot;saving your settings&quot; and then back to original position. --- (a)&lt;br /&gt;
&lt;br /&gt;
And  then, if clicked on the user avastar, it will show &quot;logging  off....loading personal settings...saving your settings..&quot; and then back  to the original position. ---(b)&lt;br /&gt;
&lt;br /&gt;
Previously, prior to logging into safe mode, &amp;nbsp;scenario (b) happens.&lt;br /&gt;
so I tried to copy userinit.exe file from another PC, rename the file to  wsaudaptor.exe and then copy this file into the systems32 folder.  however, it doesn&#39;t solve the problem either.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;1.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt; Access  to another machine.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;Put the hard drive (as a slave drive) from  the problem computer in another machine and run antivirus and  antispyware software on the problem drive. After confirming that the  drive is clean, put the drive back into the original  machine and run an XP repair from the installation disk.&lt;br /&gt;
&lt;br /&gt;
Free antivirus and antispyware: &lt;a href=&quot;http://free.grisoft.com/&quot; target=&quot;_blank&quot;&gt;http://free.grisoft.com&lt;/a&gt;&lt;br /&gt;
&lt;/span&gt;  &lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;2.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt; Recover you windows xp by booting with  your xp cd as if you were installing windows and choosing the option to  recover your system.&lt;/span&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;3.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;Boot to repair console from the xp disk or w2k disk, the commands are:&lt;br /&gt;
&lt;br /&gt;
ren \windows\system32\userinit&lt;wbr&gt;&lt;/wbr&gt;.exe \windows\system32\userinit&lt;wbr&gt;&lt;/wbr&gt;.exe.old &lt;br /&gt;
copy \windows\explorer.exe \windows\system32\userinit&lt;wbr&gt;&lt;/wbr&gt;.exe&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;(or instead of &quot;ren&quot;, use &quot;rename&quot; )&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;4. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;if the rename command does not work either, then you may need to download and burn to cd a copy of &lt;a href=&quot;http://en.wikipedia.org/wiki/Knoppix&quot;&gt;knoppix&lt;/a&gt;. you can do all your file managing using it.&lt;/span&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;5.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;Make sure auto restart is turned off in advanced system properties - startup and recovery.&lt;/span&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;6.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;Then run spybot S&amp;amp;D scans (adware) and virus scans.&lt;br /&gt;
Once all is fixed you can re-establish userinit.exe back to its rightful place.&lt;br /&gt;
You  may think that everything is normal but you should only use the  userinit-&amp;gt;explorer trick as a tool to fix the underlying problem. &lt;/span&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt; &lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/1225023096252598405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2010/09/problem-logging-into-windows-xp-no.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1225023096252598405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/1225023096252598405'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2010/09/problem-logging-into-windows-xp-no.html' title='Problem logging into windows XP (no password-safemode, blue screen persist)'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-7223280430272916241</id><published>2010-08-15T23:15:00.000+08:00</published><updated>2011-08-15T23:25:00.453+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Macro"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Excel 2003"/><title type='text'>How to delete unwanted columns via macro for data analysis</title><content type='html'>&lt;br /&gt;
1. Place &#39;X&#39; in Row 2 in whichever columns you would like to delete.&lt;br /&gt;
&lt;br /&gt;
2. Paste the following macro in Module.&lt;br /&gt;
(Insert &amp;gt; Module)&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;richText&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;Sub del_columns()&lt;br /&gt;
Dim ws As Worksheet&lt;br /&gt;
Dim lastcolm As Long&lt;br /&gt;
Dim i As Long&lt;br /&gt;
For Each ws In Worksheets&lt;br /&gt;
With ws&lt;br /&gt;
lastcolm = .Cells(2, .Cells.Columns.Count).End(xlToLeft).Column&lt;br /&gt;
For i = lastcolm To 1 Step -1&lt;br /&gt;
If UCase(.Cells(2, i)) = &quot;X&quot; Then&lt;br /&gt;
.Columns(i).Delete&lt;br /&gt;
End If&lt;br /&gt;
Next i&lt;br /&gt;
End With&lt;br /&gt;
Next ws&lt;br /&gt;
End Sub&lt;/blockquote&gt;&lt;br /&gt;
3. Press Alt+F8. &lt;br /&gt;
&lt;br /&gt;
4. Click Run .&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/7223280430272916241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2010/08/how-to-delete-unwanted-columns-via.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/7223280430272916241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/7223280430272916241'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2010/08/how-to-delete-unwanted-columns-via.html' title='How to delete unwanted columns via macro for data analysis'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-8928498360526225331</id><published>2009-11-20T19:21:00.002+08:00</published><updated>2011-08-27T17:51:59.107+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Illustrator"/><category scheme="http://www.blogger.com/atom/ns#" term="Personal Computers"/><title type='text'>Error in removing adobe illustrator (trial version)</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt; How to remove adobe illustrator CS3 components after installing the downloaded trial version ?&lt;br /&gt;
It states &quot;User cancelled payload installation&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;The following should be able to clean up : &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;a href=&quot;http://www.adobe.com/support/contact/cs3clean.html&quot; target=&quot;_blank&quot;&gt;http://www.adobe.com/suppo&lt;wbr&gt;&lt;/wbr&gt;rt/contact&lt;wbr&gt;&lt;/wbr&gt;/cs3clean.&lt;wbr&gt;&lt;/wbr&gt;html&lt;/a&gt; &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/8928498360526225331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/error-in-removing-adobe-illustrator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/8928498360526225331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/8928498360526225331'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/error-in-removing-adobe-illustrator.html' title='Error in removing adobe illustrator (trial version)'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-8509884302411426571</id><published>2009-11-08T00:55:00.003+08:00</published><updated>2011-08-27T17:42:37.433+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Personal Computers"/><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows XP Operating System"/><title type='text'>Clearing information in PC</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;How do I delete the  historical information (besides deleting cookies, IE history , empty  recycle bin) to ensure that my personal information / privacy is  protected ?&lt;br /&gt;
&lt;br /&gt;
Besides re-formatting the hard disk, are there any other ways ?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;richText&quot;&gt; CCleaner will delete the files.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;richText&quot;&gt;Download : &lt;a href=&quot;http://www.filehippo.com/download_ccleaner/&quot; target=&quot;_blank&quot;&gt;http://www.filehippo.com/d&lt;wbr&gt;&lt;/wbr&gt;ownload_cc&lt;wbr&gt;&lt;/wbr&gt;leaner/&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;richText&quot;&gt; &lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/8509884302411426571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/clearing-information-in-pc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/8509884302411426571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/8509884302411426571'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/clearing-information-in-pc.html' title='Clearing information in PC'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-3531025693712882156</id><published>2009-11-08T00:45:00.000+08:00</published><updated>2011-08-15T23:14:13.927+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cognos Impromptu Report"/><title type='text'>Why can&#39;t I open my Cognos impromptu report ?</title><content type='html'>&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;You have not opened the right catalog. &amp;gt; Close the report and the catalog. Open the catalog and make sure the right catalog is selected. Then open the report again.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;The catalog is corrupted. &amp;gt; Re-do the catalog; check if there is any other catalog that you can use; check if you have a backup.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;The catalog is at a different location. &amp;gt; See 1.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/3531025693712882156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/why-cant-i-open-my-impromptu-report.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/3531025693712882156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/3531025693712882156'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/why-cant-i-open-my-impromptu-report.html' title='Why can&#39;t I open my Cognos impromptu report ?'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-4549862500035103004</id><published>2009-11-07T23:54:00.000+08:00</published><updated>2009-11-08T00:14:38.253+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Probability"/><category scheme="http://www.blogger.com/atom/ns#" term="Statistics"/><title type='text'>Probability</title><content type='html'>1. In how many different ways can a true-false test consisting of 9 questions be answered ?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. A pair of dice is tossed. Find the probability of getting&lt;br /&gt;
a) a total of 8.&lt;br /&gt;
b) at most a total of 5.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solutions:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.&lt;br /&gt;
True-False &amp;nbsp;=&amp;gt; 2 Options&lt;br /&gt;
9C2 = 9! / 2!7! = 36 ways&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.&lt;br /&gt;
Sample Space = 6 x 6 =36&lt;br /&gt;
&lt;br /&gt;
a) total of 8 {4+4 , 5+3, 3+5, 6+2, 2+6}&lt;br /&gt;
P {a total of 8}&lt;br /&gt;
&amp;nbsp;= 5/36&lt;br /&gt;
&lt;br /&gt;
b) at most 5 { 1+1, 1+2, 1+3, 1+4, 2+1, 2+2, 2+3, 3+1, 3+2, 4+1}&lt;br /&gt;
P (at most 5)&lt;br /&gt;
= 10/36&lt;br /&gt;
= 5/18</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/4549862500035103004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/probability.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/4549862500035103004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/4549862500035103004'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2009/11/probability.html' title='Probability'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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-3522346837552762639.post-6415111599740128874</id><published>2009-07-27T18:15:00.000+08:00</published><updated>2011-08-27T18:16:36.065+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MS Excel"/><title type='text'>How to create a &quot;pick from list&quot; in MS excel?</title><content type='html'>&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;How to create a &quot;pick from list&quot; in MS excel?&lt;br /&gt;
&lt;br /&gt;
(something similar to combo box)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;pBody postableBody&quot;&gt;Check this link which gives detailed illustrations:&lt;br /&gt;
&lt;a href=&quot;http://www.contextures.com/xlDataVal02.html&quot; target=&quot;_blank&quot;&gt;http://www.contextures.com&lt;wbr&gt;&lt;/wbr&gt;/xlDataVal&lt;wbr&gt;&lt;/wbr&gt;02.html&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;value&quot;&gt;&lt;span class=&quot;pBody postableBody&quot;&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://neubygeeky.blogspot.com/feeds/6415111599740128874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://neubygeeky.blogspot.com/2009/07/how-to-create-pick-from-list-in-ms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6415111599740128874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3522346837552762639/posts/default/6415111599740128874'/><link rel='alternate' type='text/html' href='http://neubygeeky.blogspot.com/2009/07/how-to-create-pick-from-list-in-ms.html' title='How to create a &quot;pick from list&quot; in MS excel?'/><author><name>nGeeky</name><uri>http://www.blogger.com/profile/02813969155109684738</uri><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></feed>