Forum Discussion

BrandyNunes1's avatar
BrandyNunes1
Qrew Member
5 years ago

Formula help - multiple conditions

This group has helped me tremendously previously, and I'm hoping for some similar results. Previously you helped me with a formula to return a name based on a particular condition (see below). Now I am trying to create a formula that can take two conditions and return the name. So if the Type = Subcontractor AND Supplier = "Maintenance Supply Headquarters", "Zenovia"

I'm not sure how to have the AND in there to include the two conditions.



If(
[Supplier]="Maintenance Supply Headquarters", "Zenovia",
[Supplier]="Ferguson Facilities Supply", "Manuela",
[Supplier]="HD Supply", "Manuela",
[Supplier]="HD Supply White Cap", "Manuela",
Begins([Supplier],"F"),"Zenovia",
Begins([Supplier],"G"),"Zenovia",
Begins([Supplier],"H"),"Zenovia",
Begins([Supplier],"I"),"Zenovia",
Begins([Supplier],"J"),"Zenovia",
Begins([Supplier],"K"),"Zenovia",
Begins([Supplier],"L"),"Zenovia",
//else
"Manuela")

Thank you,

Brandy

------------------------------
Brandy Nunes
------------------------------
  • Ironically, exactly how you typed it!

    If(
    [Supplier]="Maintenance Supply Headquarters" and [Type] = "Subcontractor", "Zenovia",
    [Supplier]="Ferguson Facilities Supply" and [Type] = "Subcontractor", "Manuela",
    etc.....

    Perhaps someone has a more elegant solution though since there is one constant condition?

    ------------------------------
    Mike Tamoush
    ------------------------------