ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   if then statements with calculations (https://www.excelbanter.com/excel-worksheet-functions/194061-if-then-statements-calculations.html)

cmac

if then statements with calculations
 
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a calculation (C1)
If a number is between (B) and (C), then I have to do a calculation (C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.


Sandy Mann

if then statements with calculations
 
You don't say what you want to do is the number is smaller than A or exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation (C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.





cmac

if then statements with calculations
 
Sorry it wasn't very clear. in my explanation. It is a sales commission
multiplier.

If the deal is of a certain size, then an extra bonus is paid.

The levels are as follows:
0 - 50 no calculation
51 - 150 multiply the commission by 10%
151 - 250 multiply the commission by 15%
250 multiply the commision by 25%


I hope this makes it more clear.

"Sandy Mann" wrote:

You don't say what you want to do is the number is smaller than A or exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation (C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.






Sandy Mann

if then statements with calculations
 
Assuming that you mean that if the commission is a figure in say B1 and if
the deal is over 50 then add another 10% to the commission etc. then try:

=IF(A1="","",IF(A1250,B1*1.25,IF(A1150,B1*1.15,I F(A150,B1*1.1,B1))))

or:

=IF(A1="","",B1*LOOKUP(A1,{0,50,150,250},{1,1.1,1. 15,1.25}))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
Sorry it wasn't very clear. in my explanation. It is a sales commission
multiplier.

If the deal is of a certain size, then an extra bonus is paid.

The levels are as follows:
0 - 50 no calculation
51 - 150 multiply the commission by 10%
151 - 250 multiply the commission by 15%
250 multiply the commision by 25%


I hope this makes it more clear.

"Sandy Mann" wrote:

You don't say what you want to do is the number is smaller than A or
exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation
(C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.









Pete_UK

if then statements with calculations
 
See this site:

http://www.mcgimpsey.com/excel/variablerate.html

for details of how to implement sliding-scale commission.

Hope this helps.

Pete

"cmac" wrote in message
...
Sorry it wasn't very clear. in my explanation. It is a sales commission
multiplier.

If the deal is of a certain size, then an extra bonus is paid.

The levels are as follows:
0 - 50 no calculation
51 - 150 multiply the commission by 10%
151 - 250 multiply the commission by 15%
250 multiply the commision by 25%


I hope this makes it more clear.

"Sandy Mann" wrote:

You don't say what you want to do is the number is smaller than A or
exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation
(C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.








Sandy Mann

if then statements with calculations
 
Assuming that you mean that if the commission is a figure in say B1 and if
the deal is over 50 then add another 10% to the commission etc. then try:

=IF(A1="","",IF(A1250,B1*1.25,IF(A1150,B1*1.15,I F(A150,B1*1.1,B1))))

or:

=IF(A1="","",B1*LOOKUP(A1,{0,51,151,251},{1,1.1,1. 15,1.25}))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
Sorry it wasn't very clear. in my explanation. It is a sales commission
multiplier.

If the deal is of a certain size, then an extra bonus is paid.

The levels are as follows:
0 - 50 no calculation
51 - 150 multiply the commission by 10%
151 - 250 multiply the commission by 15%
250 multiply the commision by 25%


I hope this makes it more clear.

"Sandy Mann" wrote:

You don't say what you want to do is the number is smaller than A or
exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation
(C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.










Sandy Mann

if then statements with calculations
 
=IF(A1="","",B1*LOOKUP(A1,{0,50,150,250},{1,1.1,1. 15,1.25}))

Oops! didn't mean to sent this one!

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Sandy Mann" wrote in message
...
Assuming that you mean that if the commission is a figure in say B1 and if
the deal is over 50 then add another 10% to the commission etc. then try:

=IF(A1="","",IF(A1250,B1*1.25,IF(A1150,B1*1.15,I F(A150,B1*1.1,B1))))

or:

=IF(A1="","",B1*LOOKUP(A1,{0,50,150,250},{1,1.1,1. 15,1.25}))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
Sorry it wasn't very clear. in my explanation. It is a sales commission
multiplier.

If the deal is of a certain size, then an extra bonus is paid.

The levels are as follows:
0 - 50 no calculation
51 - 150 multiply the commission by 10%
151 - 250 multiply the commission by 15%
250 multiply the commision by 25%


I hope this makes it more clear.

"Sandy Mann" wrote:

You don't say what you want to do is the number is smaller than A or
exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a
calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation
(C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.












cmac

if then statements with calculations
 
Thanks for your help!!!

"Sandy Mann" wrote:

Assuming that you mean that if the commission is a figure in say B1 and if
the deal is over 50 then add another 10% to the commission etc. then try:

=IF(A1="","",IF(A1250,B1*1.25,IF(A1150,B1*1.15,I F(A150,B1*1.1,B1))))

or:

=IF(A1="","",B1*LOOKUP(A1,{0,50,150,250},{1,1.1,1. 15,1.25}))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
Sorry it wasn't very clear. in my explanation. It is a sales commission
multiplier.

If the deal is of a certain size, then an extra bonus is paid.

The levels are as follows:
0 - 50 no calculation
51 - 150 multiply the commission by 10%
151 - 250 multiply the commission by 15%
250 multiply the commision by 25%


I hope this makes it more clear.

"Sandy Mann" wrote:

You don't say what you want to do is the number is smaller than A or
exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation
(C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.










Sandy Mann

if then statements with calculations
 
You are very welcome but check out the link that Pete_UK gave you - it is
very good

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
Thanks for your help!!!

"Sandy Mann" wrote:

Assuming that you mean that if the commission is a figure in say B1 and
if
the deal is over 50 then add another 10% to the commission etc. then try:

=IF(A1="","",IF(A1250,B1*1.25,IF(A1150,B1*1.15,I F(A150,B1*1.1,B1))))

or:

=IF(A1="","",B1*LOOKUP(A1,{0,50,150,250},{1,1.1,1. 15,1.25}))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
Sorry it wasn't very clear. in my explanation. It is a sales
commission
multiplier.

If the deal is of a certain size, then an extra bonus is paid.

The levels are as follows:
0 - 50 no calculation
51 - 150 multiply the commission by 10%
151 - 250 multiply the commission by 15%
250 multiply the commision by 25%

I hope this makes it more clear.

"Sandy Mann" wrote:

You don't say what you want to do is the number is smaller than A or
exactly
A, B, C or D so adjust as required:

=IF(A1="","",IF(A110,C4,IF(A1=7,C3,IF(A1=5,C2,C 1))))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"cmac" wrote in message
...
I need to make a table that evaluates a number.

If a number (x) is between (A) and (B), then I have to do a
calculation
(C1)
If a number is between (B) and (C), then I have to do a calculation
(C2)
If a number is between C and D, then I have to do a calculation (C3)
If a number is greater than D, then I have to do calculation (C4)

I just can't seem to get the calculations to come out correct.













Harlan Grove[_2_]

if then statements with calculations
 
cmac wrote...
I need to make a table that evaluates a number. *

If a number (x) is between (A) and (B), then I have to do a
calculation (C1) If a number is between (B) and (C), then I have to
do a calculation (C2) If a number is between C and D, then I have to
do a calculation (C3) If a number is greater than D, then I have to
do calculation (C4)


And if x <= A?

Brute force,

=IF(x<=A,"impossible",IF(x<=B,C1,IF(x<=C,C2,IF(x<= D,C3,C4))))

More elegant,

=CHOOSE(MATCH(x*0.999999999999999,{-1E300;A;B;C;D}),"impossible",
C1,C2,C3,C4)


All times are GMT +1. The time now is 01:14 PM.

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