Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Another Greater Than Less Than onditional problem.

hey :) i'm having problems with my little issue of calculating mileage costs.

Basically I need to work out my mielage costs for a company i'm working for
who ask that i will need to work out 40cents per mile for first 10,000 miles,
then 25 cents thereafter. eventually adding the whole lot up for one lump sum

i'm not sure how to put that in formula form.

I managed the first half of it by multiplying the overall milage by 0.4. but
how do i get it to detect when the mileage has reached 10,000 in order for it
to recalculate at 0.25?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Another Greater Than Less Than onditional problem.

Hi, tried your formula but it's giving me the #value error, even though there
is a value in the cell i'm using.

"Scott Dann" wrote:

hey :) i'm having problems with my little issue of calculating mileage costs.

Basically I need to work out my mielage costs for a company i'm working for
who ask that i will need to work out 40cents per mile for first 10,000 miles,
then 25 cents thereafter. eventually adding the whole lot up for one lump sum

i'm not sure how to put that in formula form.

I managed the first half of it by multiplying the overall milage by 0.4. but
how do i get it to detect when the mileage has reached 10,000 in order for it
to recalculate at 0.25?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Another Greater Than Less Than onditional problem.

same thing again...#value. the mileage cell has a number in it but its a
formula in itself, picking up the cumulative total of another group of cells
on a previous speadsheet page. would that be why. its all numbers in the end
though haha no extra text.

cheers
scott

"Ashish Mathur" wrote:

Hi,

Try this. Cell D4 holds 10000. Cell E4:E5 hold 0.40 and 0.25. Cell D8
contains the mileage

=IF(D8<=$D$4,D8*$E$4,($D$4*$E$4)+(D8-$D$4)*$E$5)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Scott Dann" <Scott wrote in message
...
hey :) i'm having problems with my little issue of calculating mileage
costs.

Basically I need to work out my mielage costs for a company i'm working
for
who ask that i will need to work out 40cents per mile for first 10,000
miles,
then 25 cents thereafter. eventually adding the whole lot up for one lump
sum

i'm not sure how to put that in formula form.

I managed the first half of it by multiplying the overall milage by 0.4.
but
how do i get it to detect when the mileage has reached 10,000 in order for
it
to recalculate at 0.25?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Another Greater Than Less Than onditional problem.

Lars's formula worked for me, and it did the correct calculation. It also
does a good job of showing you how to do these kind of calculations.

-- If you typed it in, don't. Use copy and paste.
-- If you simply accepted it as is, you probably have to change it.
Remember, Lars has no idea where your mileage amount is, so he used A1 as an
example. If your mileage amount is in another cell, you have to modify the
formula. If you don't know how, or are uncomfortable doing this, then
provide the cell address when you ask your question.
-- The only other problem is that your cell doesn't have a number in it (to
Excel at least), it has text. Test this with =isnumber(a1).

Regards,
Fred

"Scott Dann" wrote in message
...
Hi, tried your formula but it's giving me the #value error, even though
there
is a value in the cell i'm using.

"Scott Dann" wrote:

hey :) i'm having problems with my little issue of calculating mileage
costs.

Basically I need to work out my mielage costs for a company i'm working
for
who ask that i will need to work out 40cents per mile for first 10,000
miles,
then 25 cents thereafter. eventually adding the whole lot up for one lump
sum

i'm not sure how to put that in formula form.

I managed the first half of it by multiplying the overall milage by 0.4.
but
how do i get it to detect when the mileage has reached 10,000 in order
for it
to recalculate at 0.25?


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Another Greater Than Less Than onditional problem.

That should not be the reason. Please check again

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Scott Dann" wrote in message
...
same thing again...#value. the mileage cell has a number in it but its a
formula in itself, picking up the cumulative total of another group of
cells
on a previous speadsheet page. would that be why. its all numbers in the
end
though haha no extra text.

cheers
scott

"Ashish Mathur" wrote:

Hi,

Try this. Cell D4 holds 10000. Cell E4:E5 hold 0.40 and 0.25. Cell D8
contains the mileage

=IF(D8<=$D$4,D8*$E$4,($D$4*$E$4)+(D8-$D$4)*$E$5)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Scott Dann" <Scott wrote in message
...
hey :) i'm having problems with my little issue of calculating mileage
costs.

Basically I need to work out my mielage costs for a company i'm working
for
who ask that i will need to work out 40cents per mile for first 10,000
miles,
then 25 cents thereafter. eventually adding the whole lot up for one
lump
sum

i'm not sure how to put that in formula form.

I managed the first half of it by multiplying the overall milage by
0.4.
but
how do i get it to detect when the mileage has reached 10,000 in order
for
it
to recalculate at 0.25?


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 690
Default Another Greater Than Less Than onditional problem.

Hi. Same solution as the others...

=Min(A1*0.4,1500 + A1/4)

= = = = = = = =
Dana DeLouis


Scott Dann wrote:
hey :) i'm having problems with my little issue of calculating mileage costs.

Basically I need to work out my mielage costs for a company i'm working for
who ask that i will need to work out 40cents per mile for first 10,000 miles,
then 25 cents thereafter. eventually adding the whole lot up for one lump sum

i'm not sure how to put that in formula form.

I managed the first half of it by multiplying the overall milage by 0.4. but
how do i get it to detect when the mileage has reached 10,000 in order for it
to recalculate at 0.25?

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
Greater and less than SUMSUE Excel Discussion (Misc queries) 4 July 10th 08 06:12 AM
Problem with Conditional Formatting and Greater than or equal too Amanda Excel Discussion (Misc queries) 1 May 29th 08 05:17 PM
I have Greater than, I need less than also rlee1999 Excel Worksheet Functions 3 December 12th 06 07:52 PM
Greater Than / Less Than Problem Mhz New Users to Excel 11 July 13th 06 08:10 PM
GREATER OR EQUAL TO BUT LESS THAN Problem using Sumproduct Ragdyer Excel Worksheet Functions 0 September 29th 05 05:39 AM


All times are GMT +1. The time now is 06:45 AM.

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

About Us

"It's about Microsoft Excel"