Forum Discussion

Safi23's avatar
Safi23
Copper Contributor
Feb 23, 2021
Solved

IF Function

How would I use the IF function or any other function to make the response acid (<7.35) Neutral (7.35-7.45) and Alkaline (>7.45)?

 

 

  • Safi23 

    Let's say the number is in A2.

    In another cell, say B2:

     

    =IF(A2="","",IF(A2<7.35,"Acid",IF(A2<=7.45,"Neutral","Alkaline")))

     

    This can be filled down if required.

7 Replies

  • Safi23 

    Let's say the number is in A2.

    In another cell, say B2:

     

    =IF(A2="","",IF(A2<7.35,"Acid",IF(A2<=7.45,"Neutral","Alkaline")))

     

    This can be filled down if required.

    • Safi23's avatar
      Safi23
      Copper Contributor
      If C8 shows 'Macrocytic' for example and C9 shows 'Hyperchromic' how would I make C10 say 'Iron deficiency' ? and then change depending on the word combinations?
      • Safi23

         

        =IF(AND(C8="Macrocytic",C9= "Hyperchromic"), "Iron Deficiency", IF(AND(C8="...", C9="..."), "...", "..."))

         

        But if you have many combinations, it would be better to create a lookup table. We'd need to have detailed information if you want help with that.

    • Safi23's avatar
      Safi23
      Copper Contributor
      Thank you so much! you saved me so much time!

Resources