Forum Discussion

yennyg's avatar
yennyg
Copper Contributor
Mar 22, 2022
Solved

IF Function with more criteria

I need to calculate based in two or more criteria and with multiple return values.  For example:  If base is open and type is narrow, then the result must be B4-1.75 If base is open and type is me...
  • mtarler's avatar
    mtarler
    Mar 22, 2022

    yennyg If you have multiple criteria you will need to have more of a list format:

    basetypecolorvalue
    narrowopenblue1.75
    narrowopenred2.25
    narrowdoorblue2.75
    narrowdoorred3.25
    narrowclosedblue1
    narrowclosedred3.75
    mediumopenblue6.5
    mediumopenred9.25
    mediumdoorblue4.25
    mediumdoorred2.5
    mediumclosedblue0.75
    mediumclosedred-1

     

    and then you can use a FILTER() function like:

    =FILTER($D$8:$D$19,($A$8:$A$19=$F$8)*($B$8:$B$19=$G$8)*($C$8:$C$19=$H$8),"n/a")

     

    see attached