Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
spannerhappy
 
Posts: n/a
Default how do i set up a mileage allowance on excel.

i can't get my head around the if function!!
i get 0p for the first 15 miles then 19p for each mile after that up to 30
miles, then 29p per mile above that.
I'm sure there is some clever person out there who can help
Thanks
  #2   Report Post  
RagDyeR
 
Posts: n/a
Default

With your mileage in A1, try this:

=MAX(A1-30,0)*29+((A1-15)-MAX(A1-30,0))*19

15 mi = 0
16 mi = 19
30 mi = 19
31 mi = 29
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"spannerhappy" wrote in message
...
i can't get my head around the if function!!
i get 0p for the first 15 miles then 19p for each mile after that up to 30
miles, then 29p per mile above that.
I'm sure there is some clever person out there who can help
Thanks


  #3   Report Post  
spannerhappy
 
Posts: n/a
Default

Thats Great
Thankyou
Roland

"RagDyeR" wrote:

With your mileage in A1, try this:

=MAX(A1-30,0)*29+((A1-15)-MAX(A1-30,0))*19

15 mi = 0
16 mi = 19
30 mi = 19
31 mi = 29
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"spannerhappy" wrote in message
...
i can't get my head around the if function!!
i get 0p for the first 15 miles then 19p for each mile after that up to 30
miles, then 29p per mile above that.
I'm sure there is some clever person out there who can help
Thanks



  #4   Report Post  
RagDyer
 
Posts: n/a
Default

Appreciate the feed-back.
--


Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit!
-------------------------------------------------------------------

"spannerhappy" wrote in message
...
Thats Great
Thankyou
Roland

"RagDyeR" wrote:

With your mileage in A1, try this:

=MAX(A1-30,0)*29+((A1-15)-MAX(A1-30,0))*19

15 mi = 0
16 mi = 19
30 mi = 19
31 mi = 29
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"spannerhappy" wrote in message
...
i can't get my head around the if function!!
i get 0p for the first 15 miles then 19p for each mile after that up to 30
miles, then 29p per mile above that.
I'm sure there is some clever person out there who can help
Thanks




  #5   Report Post  
RagDyer
 
Posts: n/a
Default

BUT ... It appears that both you and I didn't test for miles below 15.

This should return a "0", when A1 is less then 15:

=MAX(A1-30,0)*29+(MAX(A1-15,0)-MAX(A1-30,0))*19
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"RagDyer" wrote in message
...
Appreciate the feed-back.
--


Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit!
-------------------------------------------------------------------

"spannerhappy" wrote in message
...
Thats Great
Thankyou
Roland

"RagDyeR" wrote:

With your mileage in A1, try this:

=MAX(A1-30,0)*29+((A1-15)-MAX(A1-30,0))*19

15 mi = 0
16 mi = 19
30 mi = 19
31 mi = 29
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"spannerhappy" wrote in message
...
i can't get my head around the if function!!
i get 0p for the first 15 miles then 19p for each mile after that up to 30
miles, then 29p per mile above that.
I'm sure there is some clever person out there who can help
Thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I isolate my Excel server (automation) from other Excel instances? Joseph Geretz Excel Discussion (Misc queries) 5 July 19th 13 03:18 PM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


All times are GMT +1. The time now is 12:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"