Professional Documents
Culture Documents
How Apply Excel
How Apply Excel
Sensitivity
Goal Seek
Exercise
7,000,000 5.5%
25
40,000
45,000
50,000
Simplex
HOW APPLY EXCEL (MACRO) FOR BUSINESS CASE
Overview
Excel Program
Macro Excel
Business
Program Excel
On
Microsoft Office
Program spread sheet
Use for create table and analysis data
Program Excel
Cash-flow analysis
Financial reports
Inventory mangement
SME Tools
Region
January
February
North
10,111
13,400
South
22,100
24,050
East
13,270
15,670
West
10,800
21,500
52,281
74,620
Macro Excel
Record any activity on program excel.
Call to use when you want it.
Support routine job.
Make condition
Macro Name
Shortcut key
Store macro in
Description
Click OK
To set activity
Select Menu Tools > Stop recording
VB Script
Insert > Module
Procedure
Macro - - > Sub Procedure
User-Defined Function - - > Function Procedure
Procedure :
Sub Procedure
Function Procedure
Sample Script
Sub TextAbsolute( )
Range(D3).Select
Selection.Font.Italic = True
End Sub
Sub TextRelative( )
ActiveCell.Offset(2,3).Select
Selection.Font.Italic = True
End Sub
p = Present value
n = Number of Term
i = interest(%)
(...91)
1 100,000
100,000
5,000
5,000
100,001 500,000
400,000
10
40,000
45,000
500,001 1,000,000
500,000
20
100,000
145,000
1,00,001 4,000,000
3,000,000
30
900,000
1,045,000
4,000,000
37
(...91)
250,000
1 250,000 100,000 = 150,000
150,000 150,000 * 0.1 = 15,000
1
15,000 + 5,000 = 20,000
20,000
(...91)
Function Tax(Income_Year)
If Income_Year <= 100000 Then
Tax = Income_Year * 0.05
ElseIf Income_Year <= 500000 Then
Tax = (Income_Year 100000) * 0.1 + 5000
ElseIf Income_Year <= 1000000 Then
Tax = (Income_Year 500000) * 0.2 + 45000
ElseIf Income_Year <= 4000000 Then
Tax = (Income_Year 1000000) * 0.3 + 145000
Else
Tax = (Income_Year 4000000) * 0.37 + 1045000
End If
End Function
Commision
Commission
0 500,000
0.5%
500,000 1,800,000
1%
1,800,000
2%
Commision
Function Commiss(Sale)
If Sale <= 500000 Then
Commiss = Sale * 0.005
ElseIf Sale <= 1800000 Then
Commiss = Sale * 0.01
Else
Commiss = Sale * 0.02
End If
End Function
VBA
IfThen
IfThenElse
Select Case
VBA
DoLoop
Do WhileLoop
Do LoopWhile
For Next
InputBox
function
MsgBox
function
Num_Income = InputBox(Number of Income/Year)
ActiveCell.Value = Num_Income
Num_Income = InputBox(Number of Income/Year)
MsgBox Test Text : & Num_Income