R
raymondsum
I want to sum up certain rows base on a criteria. eg
Col A Col B Col C Col D Col E
(5%)
1 ABC $12000 $600 $12000*5%
2 ABC $1300 $65
3 ABC $4000 $17200 $200 $865
---------
4 DEF $19000 $884 $19000*1000/21500
5 DEF $2500 $21500 $116 $1000
--------
Col C was calculated by formula =if(A1<>A2,sumif(A$1:A1,A1,B$1:B1)"")
The max value in Col E, it should be $1000 only. If the value of Col C
* 5% was greater than $1000, max $1000. Then $1000 should be
proportional to Col B value.
How to write the formula in col D and Col E in form of VB?
Regards
Raymond
Col A Col B Col C Col D Col E
(5%)
1 ABC $12000 $600 $12000*5%
2 ABC $1300 $65
3 ABC $4000 $17200 $200 $865
---------
4 DEF $19000 $884 $19000*1000/21500
5 DEF $2500 $21500 $116 $1000
--------
Col C was calculated by formula =if(A1<>A2,sumif(A$1:A1,A1,B$1:B1)"")
The max value in Col E, it should be $1000 only. If the value of Col C
* 5% was greater than $1000, max $1000. Then $1000 should be
proportional to Col B value.
How to write the formula in col D and Col E in form of VB?
Regards
Raymond