Professional Documents
Culture Documents
CHAPTER 4 ME Useful Features
CHAPTER 4 ME Useful Features
CHAPTER 4:
SOME USEFUL
FEATURES
LEARNING OBJECTIVES
1. Create a macro.
2. Use logical functions; IF,AND OR and NOT
3. Apply ‘What-If Analysis’
1
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
A. INTRODUCTION
MACRO • Is a set of commands and instruction in Excel® that are group together to perform
a repetitive task.
• This task can be performed automatically by executed or run when it is needed
or initiated
• It is used to perform tedious task such as entering personal details, computing
depreciation and income tax.
STEPS:
1. Click Macros button in View Tab.
View tab
Macros Button
Figure 4.1
Figure 4.2
Figure 4.3
2
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
B. RECORD MACRO
Figure 4.4
Figure 4.5
3
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
Figure 4.6
5. Open new worksheet to execute or run macro. → Click Macros button → Select View Macros as
displayed below:
Figure 4.7
4
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
6. Macro dialog-box will appear as below: → Under Macro Name: select ‘Customer’ → Click Run
button → The outcome exactly as what have been type before:
Figure 4.8
7. Use shortcut key: Press ctrl-m as alternative method to execute or run the macro.
C. LOGICAL FUNCTION
Most logical functions use conditional tests to determine whether a particular condition is true or not.
A conditional test is a mathematical equation which compares two numbers, functions, formulas or logical
values.
5
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
IF FUNCTION
The company is about to make decisions to invest in a few companies. There is one criteria in order to
make the decision which is the company’s Return on Assets (ROA) must be equivalent to or exceeding the
industry average.
• Prepares the following tables as Table 4.2 in the specified cells in the new worksheet.
• Format the column C with percentage (% ) → Highlight cell C3 to C7 → Go to Format → Format
Cells → Number →Select Category : Percentage → Decimal Places : 1 → OK
Table 4.2
6
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
Figure 4.9
2. Insert Function dialog-box will appear → Select Logical category → Select IF function→ Functions
Arguments dialog-box will appear → Type the cell information as below:
Figure 4.10
3. Copy the formula in cell D3 to D7 and the worksheet will be displayed as below:
Figure 4.11
7
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
Figure 4.12
AND FUNCTION
The company are about to make decisions to invest in a few companies. There are two criteria in order to
make the decisions:
a. The company’s Return on Assets (ROA) must be equivalent to or exceeding the industry
average AND
b. The company’s Return on Equity (ROE) must be equivalent to or exceeding the industry
average
Table 4.3
8
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
2. Click Insert Function button in Formulas Tab→ Insert Function dialog-box will appear → Select
Logical category → Select IF function→ Functions Arguments dialog-box will appear → Type the
cell information as below:
Figure 4.13
3. In Logical-test box, type AND(. The formula in the formula bar it is written =IF(AND() as displayed
below:
Figure 4.14
9
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
4. In the formula bar, click (AND() to open Function Arguments for AND as shown below:
Figure 4.15
Figure 4.16
10
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
6. Click within the IF area to get back Functions Arguments dialog-box for IF functions as displayed
below:
Figure 4.17
7. Click Ok→ copy the formula in cell E3 to E7 and the results will be displayed as below:
Figure 4.18
11
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
OR FUNCTION
The company are about to make decisions to give credit facilities to the customers. There are two criteria
in order to make the decisions:
Table 4.4
2. Click Insert Function button in Formulas Tab→ Insert Function dialog-box will appear → Select
Logical category → Select IF function→ Functions Arguments dialog-box will appear → Type the
cell information as below:
Figure 4.19
12
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
3. In Logical-test box, type OR(. The formula in the formula bar it is written =IF(OR() as displayed
below:
Figure 4.20
4. In the formula bar, click (OR() to open Function Arguments for OR as shown below:
Figure 4.21
13
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
Figure 4.22
6. Click within the IF area to get back Functions Arguments dialog-box for IF functions as displayed
below:
Figure 4.23
14
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
7. Click Ok→ copy the formula in cell E3 to E6 and the results will be displayed as below:
Figure 4.24
NOT FUNCTION
The company are about to make decisions to give yearly bonus to skilled workers. There are one criterion
is set in order to make the decision:
• The skilled worker’s average hours work per week in a year must be equivalent or exceeding 8.5
hours
Table 4.5
15
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
2. Click Insert Function button in Formulas Tab→ Insert Function dialog-box will appear → Select
Logical category → Select IF function→ Functions Arguments dialog-box will appear → Type the
cell information as below:
Figure 4.25
3. In Logical-test box, type NOT(. The formula in the formula bar it is written =IF(NOT() as
displayed below:
Figure 4.26
16
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
4. In the formula bar, click (NOT() to open Function Arguments for NOT as shown below:
Figure 4.27
Figure 4.28
17
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
6. Click within the IF area to get back Functions Arguments dialog-box for If functions as displayed
below:
Figure 4.29
7. Click Ok→ copy the formula in cell D3 to D7 and the results will displayed as below:
Figure 4.30
18
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
D. EXERCISES
1. CIMB approves loan application to its customer who has current account balance of
RM10,000(B3) and fixed deposit account balance of RM100,000 (C3) or more. Write logical
formula to determine whether a customer will be given a loan or not.
B C D
1 Companies’ Name Return on Assets Decision to Invest
2 Minsa Berhad 7.3%
3 Ismin Bhd 10.0%
4 AIG Pro Elite 9.2%
5 AIG Sdn Bhd 8%
6
7 Ratios Industry Averages
8 Return on Assets 9.0%
Figure 1
i. What is the appropriate logical function use in column D above? Which company meet
the stated requirement?
3. BBB Bhd gives credit to its customers based on two condition as follows:
• the customer must have traded with the company for more than three months and
• they must have purchased goods for more than RM5,000 on average
19
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
Required:
i. From the above information, decide which of the customer will get the credit.
ii. Based on the situation (i) above, comment which customer meet company requirements.
iii. Explain the AND function.
4. CIMB gives loan to those customers who have a Current Account Balance of RM5,000 and a Fixed
Deposit Balance of RM50,000 or above. You are required to decide whether the bank will be in
position to give loans to the following prospective borrowers:
5. A student will be given a Student Excellent Award if they got 90 marks in English paper,
Mathematics, or Bahasa Melayu in the final examination. From the following information, decide
who will get the award:
6. In Women Affairs Minister of Malaysia, only women get voting right to elect the Head of Women
Affairs Division. From the following information, decide which of the members of the division will
get voting right:
20
wrai@kuptm.edu.my©
Accounting Information System (PCA1023) Chapter 4: ME- Some Useful Features
7. In tourism contest, participants who score more than 90 points will go to Nami Island, Korea. From
the following information, decide who are entitled to go to Korea:
Participants Scores
Izzah 56
Aisyah 75
Aina 81
Ain 91
Deena 34
Bella 83
8. Nestle decides to celebrate first anniversary of its opening by giving a gift voucher of RM10 to any
customer who buys “Hazelnut Chocolate” of the value over RM100 or who buys “Milk Chocolate”
of value RM150. You are required to decide which of the following customers are eligible to get
the gift vouchers:
21
wrai@kuptm.edu.my©