ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If formula (https://www.excelbanter.com/excel-discussion-misc-queries/154978-if-formula.html)

Mattymoo

If formula
 
Im trying to update a formula for our employee bonus system, but Im afraid
Ive got in a bit of a muddle.
We currently have
=IF(x<60,0,(2.5*(x-60)))

Where x is the number of points they achieve in a week. They get paid £2.50
for every point over 60points.
I want to change it so that up to 150 points they get paid £2.10 for every
point over 60, but it cuts off at 150 points.
Then shown on a separate line (so they can see the distinction) I want to
show £2.15 for every point between 150 & 175 points.
Then again on a separate line £2.20 for any points over 200
I really have no idea how to go about this €“ I think this forum helped me
set up the original formula 3 years ago!
Can anyone help?
Thanks

FinRazel

If formula
 
Try this:
If A is your points column, pase this formula in column B:

=IF(A1<=60,0,IF(AND(A160,A1<=150),(2.1*(A1-60)),(2.1*90)))

This will calculate your point bonus between 60 and 150 points.
For the next column, modify the formula so it reads:

=IF(A1<=150,0,IF(AND(A1150,A1<=175),(2.15*(A1-150)),(2.15*25))

Notice that I've just changed the numbers to reflect the point bonus between
150 and 175 points. Do the same thing for the next colum, Change your
starting and ending values, and the pound bonus.

-- Anne Murray

Mattymoo

If formula
 
Thank you for your help. It works perfectly for the first column, but when i
put 185 points in to test the second column I get a return of 'false'
instead of 75.25

"FinRazel" wrote:

Try this:
If A is your points column, pase this formula in column B:

=IF(A1<=60,0,IF(AND(A160,A1<=150),(2.1*(A1-60)),(2.1*90)))

This will calculate your point bonus between 60 and 150 points.
For the next column, modify the formula so it reads:

=IF(A1<=150,0,IF(AND(A1150,A1<=175),(2.15*(A1-150)),(2.15*25))

Notice that I've just changed the numbers to reflect the point bonus between
150 and 175 points. Do the same thing for the next colum, Change your
starting and ending values, and the pound bonus.

-- Anne Murray


David Biddulph[_2_]

If formula
 
The 2nd formula isn't legal. The parentheses don't match, so you shouldn't
have been able to get an answer. I don't know how you changed it to get an
answer, but it should just have an extra closing parenthesis at the end, so
that the syntax loks the same as the first formula.
--
David Biddulph

"Mattymoo" wrote in message
...
Thank you for your help. It works perfectly for the first column, but
when i
put 185 points in to test the second column I get a return of 'false'
instead of 75.25

"FinRazel" wrote:

Try this:
If A is your points column, pase this formula in column B:

=IF(A1<=60,0,IF(AND(A160,A1<=150),(2.1*(A1-60)),(2.1*90)))

This will calculate your point bonus between 60 and 150 points.
For the next column, modify the formula so it reads:

=IF(A1<=150,0,IF(AND(A1150,A1<=175),(2.15*(A1-150)),(2.15*25))

Notice that I've just changed the numbers to reflect the point bonus
between
150 and 175 points. Do the same thing for the next colum, Change your
starting and ending values, and the pound bonus.

-- Anne Murray




FinRazel

If formula
 
That's right, I lost the last parenthesis when copy-pasting, my bad.
--
Anne Murray


"David Biddulph" wrote:

The 2nd formula isn't legal. The parentheses don't match, so you shouldn't
have been able to get an answer. I don't know how you changed it to get an
answer, but it should just have an extra closing parenthesis at the end, so
that the syntax loks the same as the first formula.
--
David Biddulph

"Mattymoo" wrote in message
...
Thank you for your help. It works perfectly for the first column, but
when i
put 185 points in to test the second column I get a return of 'false'
instead of 75.25

"FinRazel" wrote:

Try this:
If A is your points column, pase this formula in column B:

=IF(A1<=60,0,IF(AND(A160,A1<=150),(2.1*(A1-60)),(2.1*90)))

This will calculate your point bonus between 60 and 150 points.
For the next column, modify the formula so it reads:

=IF(A1<=150,0,IF(AND(A1150,A1<=175),(2.15*(A1-150)),(2.15*25))

Notice that I've just changed the numbers to reflect the point bonus
between
150 and 175 points. Do the same thing for the next colum, Change your
starting and ending values, and the pound bonus.

-- Anne Murray





Mattymoo

If formula
 
Perfect

thank you very much

Pauline

"FinRazel" wrote:

That's right, I lost the last parenthesis when copy-pasting, my bad.
--
Anne Murray


"David Biddulph" wrote:

The 2nd formula isn't legal. The parentheses don't match, so you shouldn't
have been able to get an answer. I don't know how you changed it to get an
answer, but it should just have an extra closing parenthesis at the end, so
that the syntax loks the same as the first formula.
--
David Biddulph

"Mattymoo" wrote in message
...
Thank you for your help. It works perfectly for the first column, but
when i
put 185 points in to test the second column I get a return of 'false'
instead of 75.25

"FinRazel" wrote:

Try this:
If A is your points column, pase this formula in column B:

=IF(A1<=60,0,IF(AND(A160,A1<=150),(2.1*(A1-60)),(2.1*90)))

This will calculate your point bonus between 60 and 150 points.
For the next column, modify the formula so it reads:

=IF(A1<=150,0,IF(AND(A1150,A1<=175),(2.15*(A1-150)),(2.15*25))

Notice that I've just changed the numbers to reflect the point bonus
between
150 and 175 points. Do the same thing for the next colum, Change your
starting and ending values, and the pound bonus.

-- Anne Murray






All times are GMT +1. The time now is 02:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com