Complicated IF statement returning false

mecerrato

Board Regular
Joined
Oct 5, 2015
Messages
184
Office Version
  1. 365
Platform
  1. Windows
I am using this long IF statement to calculate the commission rate for sales people. The value if true portion works but the value if false returns FALSE in the cell instead of executing the false instruction which in this case is (IF(R11<1,(H11*($C$7/10000)),H11*R11). Maybe I cannot have another IF in the False section of the formula?

If the main IF statement is FALSE (meaning Q11 is blank) I want the false portion of the formula to then
test if R11 is blank and if it is blank then (H11*($C$7/10000)) if R11 is not blank then H11*R11

Can someone help me get this right?
=IF(Q11>1,(IF(ISNUMBER(SEARCH("COOP",Q11)),(H11*1%),IF(ISNUMBER(SEARCH("CERBASI",Q11)),(H11*0.5%),IF(ISNUMBER(SEARCH("Direct",Q11)),(H11*0.3%),IF(ISNUMBER(SEARCH("Specialist",Q11)),(H11*0.5%),IF(ISNUMBER(SEARCH("UNITED",Q11)),(H11*1%),IF(ISNUMBER(SEARCH("Subordinate",F11)),(H11*0%),(IF(R11<1,(H11*($C$7/10000)),H11*R11))))))))))
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Maybe I cannot have another IF in the False section of the formula?
You can have them anywhere you like as long as they return something valid.

As far as I can see the first IF has no false result, so you will see FALSE if Q11<=1

I think that this will correct what you want

=IF(Q11>1,(IF(ISNUMBER(SEARCH("COOP",Q11)),(H11*1%),IF(ISNUMBER(SEARCH("CERBASI",Q11)),(H11*0.5%),IF(ISNUMBER(SEARCH("Direct",Q11)),(H11*0.3%),IF(ISNUMBER(SEARCH("Specialist",Q11)),(H11*0.5%),IF(ISNUMBER(SEARCH("UNITED",Q11)),(H11*1%),IF(ISNUMBER(SEARCH("Subordinate",F11)),(H11*0%))))))))),(IF(R11<1,(H11*($C$7/10000)),H11*R11))


There might be another one missing, but if there is, I haven't found it yet.

edit:- there is another one missing, the part that I moved created a hole after the TRUE result for the Subordinate search. As long as the formula contains all possible matches for the text in Q11 then it shouldn't be a problem, otherwise you will see false if none of the search terms are found.
 
Last edited:
Upvote 0
Oops, there was a typo in there, thought I had corrected it when I added the edit comment. Try this one instead

=IF(Q11>1,(IF(ISNUMBER(SEARCH("COOP",Q11)),(H11*1%),IF(ISNUMBER(SEARCH("CERBASI",Q11)),(H11*0.5%),IF(ISNUMBER(SEARCH("Direct",Q11)),(H11*0.3%),IF(ISNUMBER(SEARCH("Specialist",Q11)),(H11*0.5%),IF(ISNUMBER(SEARCH("UNITED",Q11)),(H11*1%),IF(ISNUMBER(SEARCH("Subordinate",F11)),(H11*0%)))))))),(IF(R11<1,(H11*($C$7/10000)),H11*R11)))
 
Upvote 0
Thank you this worked. I did receive a similar formula that also worked, thank you very much :)
Here is the other formula, I am posting for others just in case as an alternative.
=IF(ISNUMBER(SEARCH("COOP",Q11)),H11*1%,
IF(ISNUMBER(SEARCH("CERBASI",Q11)),H11*0.5%,
IF(ISNUMBER(SEARCH("Direct",Q11)),H11*0.3%,
IF(ISNUMBER(SEARCH("Specialist",Q11)),H11*0.5%,
IF(ISNUMBER(SEARCH("UNITED",Q11)),H11*1%,
IF(ISNUMBER(SEARCH("Subordinate",F11)),H11*0%,
IF(R11<1,($C$7/10000)*H11,H11*(R11/10000))))))))
 
Upvote 0
I did receive a similar formula that also worked
Where did you receive that formula, did you ask the same question on another forum as well? There is nothing wrong with doing that, but if you do, we ask that you tell us about it and provide a link to your thread in the other forum. Most excel help forums have this as a rule.
 
Upvote 0
Where did you receive that formula, did you ask the same question on another forum as well? There is nothing wrong with doing that, but if you do, we ask that you tell us about it and provide a link to your thread in the other forum. Most excel help forums have this as a rule.
yes it was from computing.net
here is the link:
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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