Forum Discussion

dlsneb's avatar
dlsneb
Copper Contributor
Apr 05, 2023
Solved

Formula

I am trying to create a formula that looks at only two cells: A1 and A2.   If A1 = "A" or "B" or "C"    AND   (A2="M" then I want the output to be 2, otherwise 0  OR if A2="H" then I want the output ...
  • Detlef_Lewin's avatar
    Apr 05, 2023

    dlsneb 

    =OR(A1={"A","B","C"})*((A2="M")*2+(A2="H")*3)

     

    Or if A1 contains nothing but A, B or C:

    =(A2="M")*2+(A2="H")*3

     

Resources