• 468K Members
• 11.1K Online
• 567K Conversations

Highlighted
New Contributor

# To use more than one IF formula

Good day to all

I want to use more than one IF in formula to calculate commission amount to be given from the profit.My formula is =IF(C4>20%*C21;3%*C4;IF(C4>40%*C21;5%*C4;"No Bonus")) All the time only the first logical test is being made by excel the second logical test after from second IF is being ignored.

C21 is total cost and C4 is the profit. What i want to make is to give different commission per different profit level. Can someone help ?

5 Replies

# Re: To use more than one IF formula

You should try it like this..

=IF(C4>40%*C21,5%*C4,IF(C4>20%*C21,3%*C4,"No Bonus"))

# Re: To use more than one IF formula

Thanks for quick help@Subodh_Tiwari_sktneer

But i already tried to use comma instead of semicolon. Here is the error message in attached

# Re: To use more than one IF formula

I forgot to replace the comma with semicolon in the proposed formula.

=IF(C4>40%*C21;5%*C4;IF(C4>20%*C21;3%*C4;"No Bonus"))

# Re: To use more than one IF formula

OMG I found the mistake. I was trying to calculate only percentage. So i changed the formula as to =IF(C4>1.4*C21;5%*C4;IF(C4>1.2*C21;3%*C4;"No Bonus")) and it`s working perfect. Thanks for your help my friend.

# Re: To use more than one IF formula

You're welcome!

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies