Dear Guys,
I am just start learning VBA from the beginner and really frustrating on convert excel formulas to VBA.
I would like to Generate a "Consolidated Balance Sheet" table (right side) from the raw Balance Sheet data on the left via VBA.
Is it possible to do that?
I also attached the excel spreadsheet for the references.
I'm extremely appreciate if someone can help.
I am just start learning VBA from the beginner and really frustrating on convert excel formulas to VBA.
I would like to Generate a "Consolidated Balance Sheet" table (right side) from the raw Balance Sheet data on the left via VBA.
Is it possible to do that?
I also attached the excel spreadsheet for the references.
I'm extremely appreciate if someone can help.
Sample.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | |||
2 | Balance Sheet | Consolidated Balance Sheet | ABC Ltd. | ABC Ltd. | |||||
3 | Current Assets | HKD | HK | HK | |||||
4 | Petty Cash | $ 53.20 | ASSETS | HKD | USD | ||||
5 | HSBC HKD Current Account | 1,500.00 | |||||||
6 | HSBC HKD Saving Account | 252.00 | Current Assets | ||||||
7 | HSBC USD Saving Account | 3,444.00 | Cash at Bank | 5,249 | 673 | ||||
8 | Management Fee Receivable | 5,500.00 | Receivable | 39,015 | 5,002 | ||||
9 | Commission Receivable | 33,402.00 | Prepaid Expenses | 356 | 46 | ||||
10 | Accounts Receivable | 112.80 | Rental Deposit | 50,000 | 6,410 | ||||
11 | Prepaid Expenses | 356.00 | Due from Others | 12,140 | 1,556 | ||||
12 | Due from Subsidary | 11,152.78 | Current Assets | 106,760 | 13,687 | ||||
13 | Due from Directors | 987.00 | |||||||
14 | Rental | 50,000.00 | Tax Assets | ||||||
15 | Investment | 65,500.00 | Tax Refund | 11,135 | 1,428 | ||||
16 | Tax Refund | 11,135.00 | 11,135 | 1,428 | |||||
17 | |||||||||
18 | Total Current Assets | 183,394.78 | Investments | 65,500 | 8,397 | ||||
19 | |||||||||
20 | Total: | 183,395 | 23,512 | ||||||
21 | check | - | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G7 | G7 | =SUM(SUMIF($B$3:$B$78,{"*HKD*","*USD*","*SGD*","*CHF*","*Cash*"},$C$3:$C$78)) |
H7:H11,H18,H15 | H7 | =G7/7.8 |
G8 | G8 | =SUM(SUMIF($B$3:$B$80,{"*Receivable*"},$C$3:$C$80)) |
G9 | G9 | =SUM(SUMIF($B$3:$B$80,{"*Prepaid*"},$C$3:$C$80)) |
G10 | G10 | =SUM(SUMIF($B$3:$B$80,{"*Rental*"},$C$3:$C$80)) |
G11 | G11 | =SUM(SUMIF($B$3:$B$80,{"*Due from*"},$C$3:$C$80)) |
F12 | F12 | =F6 |
G12:H12 | G12 | =SUM(G7:G11) |
G15 | G15 | =SUM(SUMIF($B$3:$B$80,{"*Tax*"},$C$3:$C$80)) |
G16:H16 | G16 | =SUM(G15) |
C16 | C16 | =C15*0.17 |
D18 | D18 | =SUBTOTAL(9, C4:C17) |
G18 | G18 | =SUM(SUMIF($B$3:$B$80,{"*Investment*"},$C$3:$C$80)) |
G20:H20 | H20 | =H16+H12+H18 |
G21 | G21 | =G20-D18 |