IF, AND, formula help !! Please !!

grrrrr

Board Regular
Joined
Apr 20, 2011
Messages
60
I will try and explain as best I can.

Commissions are paid at different rates and there is always a minimum commission.

There is one cell in the spreadsheet which shows the % rate at which commissions should be paid.

There is another showing the current commission based on the profit made. If the commission % (say 15% which has a minimum commission of £50) if above £50, then it should stay at the 15% of the profit. But if this is below £50, then it wants to change to £50.00.

After this, I will need to add in a rule for 12.5% - £40.00 etc but the first bit should point me in the right direction.

I had the following attempt and it says #value:

=IF(H10>0,(IF(P71=15%,AND(H10*P71)<=50,"50.00"),H10*P71))

H10 = profit on which the 15% is based.

In this case 15% of H10 is around £40, so it wants to change to £50.00 rather than stay at 15% of H10.

P71 is the cell calculating the commission rate (in this case 15%).

Any ideas?????

I'm a bit new to this!

Thanks!! :laugh:
 
Well P71 can either be 8%, 10% which are both a min of £30

12.5% which is £40

and

15% which is £50
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I'm not sure on that one. Are B11 and C11 H10 and P71?

Will it recognise 0.08 etc as 8%?

I might have to put them all at minimum commission and just change them if/when needed.
 
Upvote 0
Sorry, forgot to change it back, I used closer cells to test the formula.

=MAX(H10*P71,LOOKUP(P71,{0.08,30;0.125,40;0.15,50}))

It will recognise 0.8 as anything greater than or equal to 8% but less than 12.5%

If you want EXACT %ages only then use

=MAX(H10*P71,VLOOKUP(P71,{0.08,30;0.10,30;0.125,40;0.15,50},2,0))

That way if P71 contains a value of say 11% then the formula will return #N/A!
while the original suggestion would have still calculated with potentialy incorrect results.
 
Last edited:
Upvote 0
Which of the 2 formula are you trying?

What values are in H10 and P71?
 
Upvote 0
I tried both with the same result.

P71 is "15%". Might it be that it isn't an actual figure?

H10 are variable - say £200.
 
Upvote 0
In another cell try

=isnumber(P71)
=isnumber(H10)

Do either of them return FALSE?

Do you still get N/A from

=MAX(H10*P71,VLOOKUP(--P71,{0.08,30;0.10,30;0.125,40;0.15,50},2,0))
 
Last edited:
Upvote 0
That means P71 wasn't a number, it just looked like it should be :)

15% is a number

"15%" is text

--"15%" is text that looks like a number converted back to a number, which is the method used in the last formula

=MAX(H10*P71,VLOOKUP(--P71,{0.08,30;0.10,30;0.125,40;0.15,50},2,0))
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,462
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top