Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm new to Excel programming and would like some tip on how to calculate a simple charge using vba. Scenario: For 100 unit and below, use $0.10 per unit For 101 to 200 unit, use $0.15 per unit For 201 and above, use $0.20 per unit If I set cell A1 "Unit" to 150, then first 100=$10, plus next 50unit=$7.50 So cell B1 to show $7.50 as "Charges". How do I code using vba? Or is there a easier way, e.g using formula in worksheet without using vba at all? Thank you. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculate finance charges | Excel Discussion (Misc queries) | |||
How to change hours and minutes to calculate charges? | Excel Discussion (Misc queries) | |||
formula calculate charges based on hours | Excel Discussion (Misc queries) | |||
formula to calculate total rent charges | Excel Discussion (Misc queries) | |||
How do I calculate charges based on elasped time(H:MM) & rate($)? | Excel Discussion (Misc queries) |