SOLVED

Request help with IF Formula in excel

%3CLINGO-SUB%20id%3D%22lingo-sub-2343637%22%20slang%3D%22en-US%22%3ERequest%20help%20with%20IF%20Formula%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343637%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20someone%20pls%20advise%20what%20is%20the%20error%20in%20this%20IF%20Formula%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(D2%26gt%3B85%2C%20%22'%3DA%2B%22%20%2C%20IF%20(D2%20%26gt%3B%2080%2C%20%22A%22%2C%20IF%20(D2%26gt%3B75%2C%26nbsp%3B%20%22'%3DA-%22%2C%20IF%20(D2%26gt%3B70%2C%20%22'%3DB%2B%22%2C%20IF%20(D2%26gt%3B65%2C%20%22B%22%2C%20IF%20(D2%26gt%3B60%2C%20%22%20'%3DB-%22%2C%20IF%20(D2%26gt%3B60%2C%26nbsp%3B%20%22%20'%3DC%2B%22%2C%20IF%20(D2%26gt%3B55%2C%20%22C%22%2C%20IF(D2%26gt%3B50%2C%20%22D%22%2C%20IF(D2%26gt%3B45%2C%20%22E%22%2C%20IF%20D2%26lt%3B40%2C%20%22F%22))))))))))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2343637%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343732%22%20slang%3D%22en-US%22%3ERe%3A%20Request%20help%20with%20IF%20Formula%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343732%22%20slang%3D%22en-US%22%3EThank%20You!%20Really%20appreciate%20that.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343726%22%20slang%3D%22en-US%22%3ERe%3A%20Request%20help%20with%20IF%20Formula%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343726%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1050557%22%20target%3D%22_blank%22%3E%40rinirock19%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBrackets%20were%20not%20paired%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIF(D2%26gt%3B85%2C%22'%3DA%2B%22%2C%0AIF(D2%26gt%3B80%2C%22A%22%2C%0AIF(D2%26gt%3B75%2C%22'%3DA-%22%2C%0AIF(D2%26gt%3B70%2C%22'%3DB%2B%22%2C%0AIF(D2%26gt%3B65%2C%22B%22%2C%0AIF(D2%26gt%3B60%2C%22%20'%3DB-%22%2C%0AIF(D2%26gt%3B60%2C%22%20'%3DC%2B%22%2C%0AIF(D2%26gt%3B55%2C%22C%22%2C%0AIF(D2%26gt%3B50%2C%22D%22%2C%0AIF(D2%26gt%3B45%2C%22E%22%2C%0AIF(D2%26lt%3B40%2C%22F%22%2C%22N%2FA%22%0A)))))))))))%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343757%22%20slang%3D%22en-US%22%3ERe%3A%20Request%20help%20with%20IF%20Formula%20in%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343757%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1050557%22%20target%3D%22_blank%22%3E%40rinirock19%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20welcome%3C%2FP%3E%0A%3CP%3EAnother%20point%20you%20have%20two%20conditions%20D2%26gt%3B60%2C%20only%20first%20of%20them%20returns%20result.%20Plus%20it%20is%20not%20defined%20what%20to%20return%20between%2040%20and%2045.%3C%2FP%3E%0A%3CP%3EAnother%20variant%20could%20work%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DLOOKUP(D2%2C%0A%20%20%7B0%2C40%2C45.1%2C50.1%2C55.1%2C60.1%2C65.1%2C70.1%2C75.1%2C80.1%2C85.1%7D%2C%0A%20%20%7B%22F%22%2C%20%22E%22%2C%22D%22%2C%22C%22%2C%22%20'%3DC%2B%22%2C%22%20'%3DB-%22%2C%22B%22%2C%22'%3DB%2B%22%2C%22'%3DA-%22%2C%22A%22%2C%22'%3DA%2B%22%7D%0A%20%20)%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Ethe%20only%20the%20logic%20shall%20be%20corrected%20as%20mentioned%20above%2C%20I%20don't%20know%20what%20it%20shall%20be.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Can someone pls advise what is the error in this IF Formula? 

 

=IF(D2>85, "'=A+" , IF (D2 > 80, "A", IF (D2>75,  "'=A-", IF (D2>70, "'=B+", IF (D2>65, "B", IF (D2>60, " '=B-", IF (D2>60,  " '=C+", IF (D2>55, "C", IF(D2>50, "D", IF(D2>45, "E", IF D2<40, "F"))))))))))

3 Replies
best response confirmed by allyreckerman (Microsoft)
Solution

@rinirock19 

Brackets were not paired

=IF(D2>85,"'=A+",
IF(D2>80,"A",
IF(D2>75,"'=A-",
IF(D2>70,"'=B+",
IF(D2>65,"B",
IF(D2>60," '=B-",
IF(D2>60," '=C+",
IF(D2>55,"C",
IF(D2>50,"D",
IF(D2>45,"E",
IF(D2<40,"F","N/A"
)))))))))))
Thank You! Really appreciate that.

@rinirock19 , you are welcome

Another point you have two conditions D2>60, only first of them returns result. Plus it is not defined what to return between 40 and 45.

Another variant could work

=LOOKUP(D2,
  {0,40,45.1,50.1,55.1,60.1,65.1,70.1,75.1,80.1,85.1},
  {"F", "E","D","C"," '=C+"," '=B-","B","'=B+","'=A-","A","'=A+"}
  )

the only the logic shall be corrected as mentioned above, I don't know what it shall be.