Home

To use more than one IF formula

%3CLINGO-SUB%20id%3D%22lingo-sub-871494%22%20slang%3D%22en-US%22%3ETo%20use%20more%20than%20one%20IF%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871494%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20day%20to%20all%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20use%20more%20than%20one%20IF%20in%20formula%20to%20calculate%20commission%20amount%20to%20be%20given%20from%20the%20profit.My%20formula%20is%20%3DIF(C4%26gt%3B20%25*C21%3B3%25*C4%3BIF(C4%26gt%3B40%25*C21%3B5%25*C4%3B%22No%20Bonus%22))%20All%20the%20time%20only%20the%20first%20logical%20test%20is%20being%20made%20by%20excel%20the%20second%20logical%20test%20after%20from%20second%20IF%20is%20being%20ignored.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EC21%20is%20total%20cost%20and%20C4%20is%20the%20profit.%20What%20i%20want%20to%20make%20is%20to%20give%20different%20commission%20per%20different%20profit%20level.%20Can%20someone%20help%20%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-871494%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-871507%22%20slang%3D%22en-US%22%3ERe%3A%20To%20use%20more%20than%20one%20IF%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871507%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414041%22%20target%3D%22_blank%22%3E%40Halikarnas76%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20should%20try%20it%20like%20this..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DIF(C4%26gt%3B40%25*C21%2C5%25*C4%2CIF(C4%26gt%3B20%25*C21%2C3%25*C4%2C%22No%20Bonus%22))%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-871511%22%20slang%3D%22en-US%22%3ERe%3A%20To%20use%20more%20than%20one%20IF%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871511%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20quick%20help%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394231%22%20target%3D%22_blank%22%3E%40Subodh_Tiwari_sktneer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20i%20already%20tried%20to%20use%20comma%20instead%20of%20semicolon.%20Here%20is%20the%20error%20message%20in%20attached%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-871516%22%20slang%3D%22en-US%22%3ERe%3A%20To%20use%20more%20than%20one%20IF%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871516%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414041%22%20target%3D%22_blank%22%3E%40Halikarnas76%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20forgot%20to%20replace%20the%20comma%20with%20semicolon%20in%20the%20proposed%20formula.%3C%2FP%3E%3CP%3EPlease%20try%20it%20like%20this...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DIF(C4%26gt%3B40%25*C21%3B5%25*C4%3BIF(C4%26gt%3B20%25*C21%3B3%25*C4%3B%22No%20Bonus%22))%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20that%20answers%20your%20original%20question%2C%20please%20take%20a%20minute%20to%20accept%20this%20post%20as%20an%20Answer%20to%20mark%20your%20question%20as%20Solved.%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-871521%22%20slang%3D%22en-US%22%3ERe%3A%20To%20use%20more%20than%20one%20IF%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871521%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F394231%22%20target%3D%22_blank%22%3E%40Subodh_Tiwari_sktneer%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOMG%20I%20found%20the%20mistake.%20I%20was%20trying%20to%20calculate%20only%20percentage.%20So%20i%20changed%20the%20formula%20as%20to%26nbsp%3B%3DIF(C4%26gt%3B1.4*C21%3B5%25*C4%3BIF(C4%26gt%3B1.2*C21%3B3%25*C4%3B%22No%20Bonus%22))%20and%20it%60s%20working%20perfect.%20Thanks%20for%20your%20help%20my%20friend.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-871522%22%20slang%3D%22en-US%22%3ERe%3A%20To%20use%20more%20than%20one%20IF%20formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871522%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414041%22%20target%3D%22_blank%22%3E%40Halikarnas76%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou're%20welcome!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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

@Halikarnas76 

You should try it like this..

 

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

Highlighted

Thanks for quick help@Subodh_Tiwari_sktneer 

 

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

 

 
Highlighted

@Halikarnas76 

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

Please try it like this...

 

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

 

If that answers your original question, please take a minute to accept this post as an Answer to mark your question as Solved.

Highlighted

@Subodh_Tiwari_sktneer 

 

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. 

Highlighted

@Halikarnas76 

You're welcome!