Forum Discussion

Jeannedv's avatar
Jeannedv
Copper Contributor
Apr 09, 2020
Solved

function IF

Hello! 

I explain: I have this: "if grade>80 = A, if grade>70 = B, else = fail"

So I wrote my first IF and now in the part "if it's wrong" I want to add a new IF function but I don't succeed to do it.. If someone can help me!

Thank you  

  • Jeannedv 

    Hi, if you have started learn if here, spend some time here

    https://gyankosh.net/msexcel/functions/logical/excel-function-if/

     

    for your problem, I think nested if is good. If you had mentioned the cell, it'd have been better.

     

    =IF(M>80,"A",(IF(M>70,"B","FAIL")))

     

    M is the cell address containing the marks

4 Replies

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    Jeannedv 

     

    Here is an example with nested IF functio.

     

    It should actually work like Mr. Baklan has already described.

     

    Anyway, if it doesn't work then it doesn't work. Too much time to look for it, the easy way chosen 🙂

     

    Thx all,

    Nikolino

  • gyankosh's avatar
    gyankosh
    Brass Contributor

    Jeannedv 

    Hi, if you have started learn if here, spend some time here

    https://gyankosh.net/msexcel/functions/logical/excel-function-if/

     

    for your problem, I think nested if is good. If you had mentioned the cell, it'd have been better.

     

    =IF(M>80,"A",(IF(M>70,"B","FAIL")))

     

    M is the cell address containing the marks

    • Olufemi1450's avatar
      Olufemi1450
      Copper Contributor
      Please, I'm new here. I need your help to solve this problem in Excel 2016. I want a function that will help grade the score of students as A, B, C, D, E, or F. The formula I entered seemed not correct.
      =IFS(G2>80,"A",G2>70,"B",G2>60,"C",G2>50,"D",G2>40,"E",TRUE,"F")

Resources