Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Tried for hours to get this to work and ready to throw laptop out of window.
What I'm trying to do : enter mileage into A1 For first 200 miles charge £0.40 per mile for miles above 200 Charge £0.25 per mile and enter combinded charge into A2. and if mileage is less than 200 in A1 carry balance (200-A1) over to B1 to increase B1 £0.40 rate i.e 200 plus balance from A1 Hope that makes sense . Many Thanks for any help. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If I got this right
=min(200,a1)*.4+max(0,a1-200)*.25 or =if(a1<=200,a1*.4,80+(a1-200)*.25) Either one should work -- Wag more, bark less "Chris In Need" wrote: Tried for hours to get this to work and ready to throw laptop out of window. What I'm trying to do : enter mileage into A1 For first 200 miles charge £0.40 per mile for miles above 200 Charge £0.25 per mile and enter combinded charge into A2. and if mileage is less than 200 in A1 carry balance (200-A1) over to B1 to increase B1 £0.40 rate i.e 200 plus balance from A1 Hope that makes sense . Many Thanks for any help. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Chris,
I think..... In A2: =MIN(A1,200)*0.4+(A1200)*(A1-200)*0.25 In B2: =MIN(B1,200+(A1<200)*(200-A1))*0.4+(B1(200+(A1<200)*(200-A1)))*(B1-(200+(A1<200)*(200-A1)))*0.25 Bernie "Chris In Need" <Chris In Need @discussions.microsoft.com wrote in message ... Tried for hours to get this to work and ready to throw laptop out of window. What I'm trying to do : enter mileage into A1 For first 200 miles charge £0.40 per mile for miles above 200 Charge £0.25 per mile and enter combinded charge into A2. and if mileage is less than 200 in A1 carry balance (200-A1) over to B1 to increase B1 £0.40 rate i.e 200 plus balance from A1 Hope that makes sense . Many Thanks for any help. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On May 8, 1:47 pm, Chris In Need <Chris In Need
enter mileage into A1 For first 200 miles charge £0.40 per mile for miles above 200 Charge £0.25 per mile and enter combinded charge into A2. In A2: =0.40*min(A1,200) + 0.25*max(0,200-A1) and if mileage is less than 200 in A1 carry balance (200-A1) over to B1 to increase B1 £0.40 rate i.e 200 plus balance from A1[.] Hope that makes sense Not entirely, I'm afraid. I don't understand "increase B1 0.40 rate" and "200 plus balance". Perhaps something like the following in B1: =expression + 0.40*max(0,200-A1) where "expression" is the formula you already have in B1. ------ original posting ----- On May 8, 1:47*pm, Chris In Need <Chris In Need @discussions.microsoft.com wrote: Tried for hours to get this to work and ready to throw laptop out of window. What I'm trying to do : enter mileage into A1 For first 200 miles charge £0.40 per mile for miles above 200 Charge £0.25 per mile and enter combinded charge into A2. and if mileage is less than 200 in A1 carry balance (200-A1) over to B1 to increase B1 £0.40 rate i.e 200 plus balance from A1 Hope that makes sense . *Many Thanks for any help. * |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Gratful to all for quick response.
I should have asked the question hours ago !! Many Thanks, Chris. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I set a value greater or less than | Excel Worksheet Functions | |||
greater than but less than | Excel Discussion (Misc queries) | |||
Greater Than but Less than | Excel Worksheet Functions | |||
if greater then 99 then 1 if greater then 199 then two | Excel Worksheet Functions | |||
Greater then/less then | Excel Worksheet Functions |