PC Review


Reply
Thread Tools Rate Thread

Calculating before and after

 
 
Drisconsult
Guest
Posts: n/a
 
      15th May 2006

Hello All

I have a calcualtion that adds up all klms driven up to 500 klms, then
multiplies this number by 35 Kenya Shillngs to give the total amount
that can be claimed. Absolute beginners stuff.

However I am having problems with the calculation if the total klms
driven go over the 500 Klms limit, and then each klm drops to 25 Kenya
Shillings. Can this be done in one calculation?


--
Drisconsult
------------------------------------------------------------------------
Drisconsult's Profile: http://www.excelforum.com/member.php...o&userid=34459
View this thread: http://www.excelforum.com/showthread...hreadid=542142

 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      15th May 2006
Hi

Try something like this:
=(A2*35)+IF(A2>500,(A2-500)*0.25,0)

Andy.

"Drisconsult" <(E-Mail Removed)>
wrote in message
news(E-Mail Removed)...
>
> Hello All
>
> I have a calcualtion that adds up all klms driven up to 500 klms, then
> multiplies this number by 35 Kenya Shillngs to give the total amount
> that can be claimed. Absolute beginners stuff.
>
> However I am having problems with the calculation if the total klms
> driven go over the 500 Klms limit, and then each klm drops to 25 Kenya
> Shillings. Can this be done in one calculation?
>
>
> --
> Drisconsult
> ------------------------------------------------------------------------
> Drisconsult's Profile:
> http://www.excelforum.com/member.php...o&userid=34459
> View this thread: http://www.excelforum.com/showthread...hreadid=542142
>



 
Reply With Quote
 
=?Utf-8?B?UGVvIFNqb2Jsb20=?=
Guest
Posts: n/a
 
      15th May 2006
Try

=MIN(500,A1)*35+MAX(0,A1-500)*25


Regards,

Peo Sjoblom


"Drisconsult" wrote:

>
> Hello All
>
> I have a calcualtion that adds up all klms driven up to 500 klms, then
> multiplies this number by 35 Kenya Shillngs to give the total amount
> that can be claimed. Absolute beginners stuff.
>
> However I am having problems with the calculation if the total klms
> driven go over the 500 Klms limit, and then each klm drops to 25 Kenya
> Shillings. Can this be done in one calculation?
>
>
> --
> Drisconsult
> ------------------------------------------------------------------------
> Drisconsult's Profile: http://www.excelforum.com/member.php...o&userid=34459
> View this thread: http://www.excelforum.com/showthread...hreadid=542142
>
>

 
Reply With Quote
 
Drisconsult
Guest
Posts: n/a
 
      15th May 2006

Hello Peo

You are a gentleman sir. It worked like a dream. Many thanks for
getting my brain into gear.

Regards
Terence
London


--
Drisconsult
------------------------------------------------------------------------
Drisconsult's Profile: http://www.excelforum.com/member.php...o&userid=34459
View this thread: http://www.excelforum.com/showthread...hreadid=542142

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
not calculating zero Excel Wizard.... NOT! Microsoft Excel Misc 6 27th May 2009 07:56 PM
not calculating zero Excel Wizard.... NOT! Microsoft Excel Misc 0 27th May 2009 07:26 PM
Calculating recurring date in following month, calculating # days in that period Walterius Microsoft Excel Worksheet Functions 6 4th Jun 2005 11:21 PM
CALCULATING WORKSHEETS (INCLUDING AGE CALCULATING SHEETS) FOR DOWNLOADING, GREAT FOR PENSIONS/LIFE INSURANCE CALCULATIONS! RICHARD Microsoft Excel Programming 0 15th Mar 2005 01:41 PM
calculating frank Microsoft Excel Misc 4 9th Feb 2005 03:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 PM.