Hi all,
How to create the formula to calculate the percentage out of the total in general format can be used all along ? from myExcel.xls
account amount classcode percentage
11111 100 AAAAA 0.16
11111 200 AAAAA 0.34
11111 300 AAAAA 0.50
---------------
subtotal 600
11111 100 BBBBB 0.16
11111 200 BBBBB 0.34
11111 300 BBBBB 0.50
---------------
subtotal 600
22222 200 CCCCC 0.25
22222 200 CCCCC 0.25
22222 400 CCCCC 0.50
--------------
subtotal 800
22222 200 DDDDD 0.25
22222 200 DDDDD 0.25
22222 400 DDDDD 0.50
--------------
subtotal 800
I got the columns account , amount,classcode but need to calculate the percentage but be carefull , each time the account changes the formula of percentage should changed accordingly.
Please help me with the codes in VB because I am newbie to
VB to run as a macro or sub percent() for 10000 accounts in which it is not easy to do it with a single
formula.
Thanks in advance,
How to create the formula to calculate the percentage out of the total in general format can be used all along ? from myExcel.xls
account amount classcode percentage
11111 100 AAAAA 0.16
11111 200 AAAAA 0.34
11111 300 AAAAA 0.50
---------------
subtotal 600
11111 100 BBBBB 0.16
11111 200 BBBBB 0.34
11111 300 BBBBB 0.50
---------------
subtotal 600
22222 200 CCCCC 0.25
22222 200 CCCCC 0.25
22222 400 CCCCC 0.50
--------------
subtotal 800
22222 200 DDDDD 0.25
22222 200 DDDDD 0.25
22222 400 DDDDD 0.50
--------------
subtotal 800
I got the columns account , amount,classcode but need to calculate the percentage but be carefull , each time the account changes the formula of percentage should changed accordingly.
Please help me with the codes in VB because I am newbie to
VB to run as a macro or sub percent() for 10000 accounts in which it is not easy to do it with a single
formula.
Thanks in advance,