Forum Discussion

KuntalSingh's avatar
KuntalSingh
Helper V
2 years ago
Solved

Need help on excel conditional formula

Hi  I have need to apply excel formula  IF(ISBLANK([@Lookup])=FALSE,"MIS-2",IF(AND([@MIGO]<0,ISBLANK([@MIRO])=TRUE),"MIS-5",IF(AND([@MIGO]>0,ISBLANK([@MIRO])=TRUE),"MIS-1",IF(AND([@MIRO]<>0,ISBLANK...
  • mlsx4's avatar
    2 years ago

    Hi KuntalSingh 

     

    Data is not well inserted so I can't reproduce your case. I'm not sure when you need MIS-2. But, with the data I have understood, you can do:

     

     

    = Table.AddColumn(#"Tipo cambiado", "Personalizado", each if [MIGO]<0 and [MIRO]=null then "MIS-5" else 
      if [MIGO]>0 and [MIRO]=null then "MIS-1" else
      if [MIGO]=null and [MIRO]<>null then "MIS-4" else
      if [MIGO]<>null and [MIRO]<>null then "MIS-3" else "MIS-2")