SOLVED

Can you create multiple IF formulas on one cell?

%3CLINGO-SUB%20id%3D%22lingo-sub-2861995%22%20slang%3D%22en-US%22%3ECan%20you%20create%20multiple%20IF%20formulas%20on%20one%20cell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2861995%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20a%20formula%20so%20that%20when%20a%20certain%20number%20appears%20in%20the%20cells%20in%20Column%20F%20that%20the%20logic%20applies%20the%20correct%20PayPal%20fee%20in%20Column%20G.%26nbsp%3B%20The%20fee%20is%20not%20set%20percentage%2C%20so%20I%20can't%20make%20it%20a%20math%20formula.%26nbsp%3B%20The%20fee%20percentage%20changes%20the%20higher%20the%20value.%26nbsp%3B%20I%20used%20the%20%22IF%22%20formula%20to%20say%20that%20when%20the%20cell%20in%20Column%20F%20is%20%2445%20then%20put%20%241.39%20in%20the%20cell%20in%20Column%20G.%26nbsp%3B%20BUT%20-%20F%20could%20also%20be%20%2490%2C%20%24135%20or%20%24180.%26nbsp%3B%20I%20want%20the%20formula%20to%20say%20that%20if%20F%20is%20%2445%20then%20G%20is%20%241.39%3B%20if%20F%20is%20%2490%20then%20G%20is%20%242.28%3B%20if%20F%20is%20%24135%20then%20G%20would%20be%20%243.18%20and%20if%20F%20is%20%24180%20then%20G%20would%20be%20%244.07.%26nbsp%3B%20I%20don't%20know%20how%20to%20give%20the%20formula%204%20different%20options%20of%20which%20fee%20to%20put%20into%20Column%20G.%26nbsp%3B%20Thanks%20for%20the%20assistance!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2861995%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2862146%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20you%20create%20multiple%20IF%20formulas%20on%20one%20cell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2862146%22%20slang%3D%22en-US%22%3EHey%2C%3CBR%20%2F%3E%3CBR%20%2F%3Esomething%20like%20this%3F%3CBR%20%2F%3E%3DIF(F1%3D45%3B1%2C39%3BIF(F1%3D90%3B2%2C28%3BIF(F1%3D135%3B3%2C18%3BIF(F1%3D180%3B4%2C07%3B%22undefined%22))))%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2862440%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20you%20create%20multiple%20IF%20formulas%20on%20one%20cell%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2862440%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1165844%22%20target%3D%22_blank%22%3E%40Anderszone%3C%2FA%3E%26nbsp%3BYes%20-%20except%20it's%20telling%20me%20that%20it%20can%20only%20have%20a%20maximum%20of%203%20equations%2C%20and%20I%20need%204.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am trying to create a formula so that when a certain number appears in the cells in Column F that the logic applies the correct PayPal fee in Column G.  The fee is not set percentage, so I can't make it a math formula.  The fee percentage changes the higher the value.  I used the "IF" formula to say that when the cell in Column F is $45 then put $1.39 in the cell in Column G.  BUT - F could also be $90, $135 or $180.  I want the formula to say that if F is $45 then G is $1.39; if F is $90 then G is $2.28; if F is $135 then G would be $3.18 and if F is $180 then G would be $4.07.  I don't know how to give the formula 4 different options of which fee to put into Column G.  Thanks for the assistance! 

6 Replies
Hey,

something like this?
=IF(F1=45;1,39;IF(F1=90;2,28;IF(F1=135;3,18;IF(F1=180;4,07;"undefined"))))

@Anderszone Yes - except it's telling me that it can only have a maximum of 3 equations, and I need 4.

best response confirmed by allyreckerman (Microsoft)
Solution
Hey,
what version of Excel are you using?
You could also try:
=IFS(F1=45;1,39;F1=90;2,28;F1=135;3,18;F1=180;4,07)
I have O365, so it should be the latest and greatest version.
Ok, because then you should be able to apply the function, since the limit for nested if statements, as far as I know, is 64.
Thank you!!! I got it to work! After looking more closely I had missed a comma. Ugh. THANKS for the help!!