Forum Discussion

Dilip1615's avatar
Dilip1615
Copper Contributor
Mar 14, 2023

Multiple IF conditions

I am trying to get multiple IF condition based on below matrix but unable to get through:

 

StageWeightage
Revises0.6
M10.6
BPA0.16
M10.16

 

If for example cell B2 in excel has Stage as Revises, my requirement is for IF condition in cell C2 to return value 0.6; likewise if M1, BPA - the related values listed should reflect in C#. The values are static and thus can be defined in formula itself.

3 Replies

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        Dilip1615 

        With a small lookup table:

        The formula in C2 is =VLOOKUP(B2,$E$2:$F$4,2,FALSE)

        This can be filled down.

         

        Without a lookup table:

        =IF(OR(B2={"Revises","M1"}),0.6,IF(B2="BPA",0.16,""))

Resources