- Convert multiple .txt files in a folder
- Delimit the .txt files so that there are headers in each column
- Format for date (1st column) should be in DD-MM-YY format
- Place all data from .txt files into 1 .xls file
- Scan through the data in .xls file
- Ensure all data are unique (ie. no repeated data in each row)
Maths made me mad. IT is only for the geeks. You are not alone, and I seek to reach out to those who understand the woes. I am no expert but I just share what I know or how I solve the problems - A novice's solutions to typical maths.IT problems. If statistics and software drive you crazy, I hope this site would put you back to sanity.
Search This Blog
Friday, August 26, 2011
Create a macro to convert multiple .txt file and place all data from text to .xls file
Thursday, August 25, 2011
Error in Renaming Folder in Windows Explorer
Rename a folder but the error states :
However, owner is under my name and I have full rights to the folder.
The files in the folder are not even opened.
How ?
Cannot rename ____ : Access is denied.
Make sure the disk is not full or write-protected and that the file is not currently in use.
However, owner is under my name and I have full rights to the folder.
The files in the folder are not even opened.
How ?
Wednesday, August 24, 2011
Comparing sets of data (lower and upper limit)
Data set:
0.5, 1.5, 2.1, 0.43, 0.35
condition/base number : 1
Result needed:
To select number nearest to 1 ie.= 0.5 by using macro.
Note: Although 1.5 is also near to 1 (also a 0.5 difference), it must choose the smaller number.
(0.5 is smaller as compared to 1.5)
0.5, 1.5, 2.1, 0.43, 0.35
condition/base number : 1
Result needed:
To select number nearest to 1 ie.= 0.5 by using macro.
Note: Although 1.5 is also near to 1 (also a 0.5 difference), it must choose the smaller number.
(0.5 is smaller as compared to 1.5)
Saturday, August 20, 2011
Random Variables and Probability Distribution
Question 3.32
The proportion of the budgets for a certain type of industrial company that is allocated to environmental and pollution control is coming under scrutiny. A data collection project determines that the distribution of these proportions is given by:
f (y) = 5 (1-y)^4, 0<=y<=1
0, elsewhere
a) Verify that the above is a valid density
b) What is the probability that a company chosen at random expends less than 10% of its budget on environmental and pollution controls ?
c) What is the probability that a company selected at random spends more than 50% on environmental and pollution control ?
The proportion of the budgets for a certain type of industrial company that is allocated to environmental and pollution control is coming under scrutiny. A data collection project determines that the distribution of these proportions is given by:
f (y) = 5 (1-y)^4, 0<=y<=1
0, elsewhere
a) Verify that the above is a valid density
b) What is the probability that a company chosen at random expends less than 10% of its budget on environmental and pollution controls ?
c) What is the probability that a company selected at random spends more than 50% on environmental and pollution control ?
Thursday, August 18, 2011
How do I extract selected text from a string of text?
Data in a cell and need to extract part of it :
Examples:
1. AERO 030405A AUTO 24567AZ 99AM > Extract 67
2. AERO 030405Z AUTO 25611C22AZ 99BM > Extract 11
Examples:
1. AERO 030405A AUTO 24567AZ 99AM > Extract 67
2. AERO 030405Z AUTO 25611C22AZ 99BM > Extract 11
Wednesday, August 17, 2011
AS400 / DB2 Programming Tutorial Guide
My favourite guides are :
Tutorial for AS400
http://www.texas400.com/tu tas400toc. html
Tutorial/book on DB2
http://publib.boulder.ibm. com/cgi-bi n/bookmgr_ OS390/BOOK S/ DSNAPH11 /CCONTENTS
Let me know if you have more to share.
I am still learning -__-
Tutorial for AS400
http://www.texas400.com/tu
Tutorial/book on DB2
http://publib.boulder.ibm.
Let me know if you have more to share.
I am still learning -__-
Tuesday, August 16, 2011
Probability
Question 2.26
A California study concluded that by following 7 simple health rules a man's life can be extended by 11 years n the average and a woman'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
a) If the person presently violates all 7 rules?
b) If the person never drinks and always eats breakfast?
A California study concluded that by following 7 simple health rules a man's life can be extended by 11 years n the average and a woman'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
a) If the person presently violates all 7 rules?
b) If the person never drinks and always eats breakfast?
Subscribe to:
Posts (Atom)