Hello
I have the following formula which works great, it takes a bunch of criteria and searches a master list for the matching part number.
Data is in the following cells
B5
B12
B16
B18
B3
Formula
=IFNA(INDEX(Master_Fittings!E2:E1504,MATCH(1,(B19=Master_Fittings!H2:H1504)
*(B5=Master_Fittings!B2:B1504)
*(B12=Master_Fittings!C2:C1504)
*(B16=Master_Fittings!D2:D1504)
*(B18=Master_Fittings!F2:F1504)
*(B3=Master_Fittings!A2:A1504)
,0)),"Please add fitting")
However
If B5 = "Plug" I want it to omit this line from the search criteria
*(B16=Master_Fittings!D2:D1504)
I guess its a nested IF of some sort ?
If B5 = "Plug" then use the below criteria
=IFNA(INDEX(Master_Fittings!E2:E1504,MATCH(1,(B19=Master_Fittings!H2:H1504)
*(B5=Master_Fittings!B2:B1504)
*(B12=Master_Fittings!C2:C1504)
*(B18=Master_Fittings!F2:F1504)
*(B3=Master_Fittings!A2:A1504)
,0)),"Please add fitting")
Else use this criteria
=IFNA(INDEX(Master_Fittings!E2:E1504,MATCH(1,(B19=Master_Fittings!H2:H1504)
*(B5=Master_Fittings!B2:B1504)
*(B12=Master_Fittings!C2:C1504)
*(B16=Master_Fittings!D2:D1504)
*(B18=Master_Fittings!F2:F1504)
*(B3=Master_Fittings!A2:A1504)
,0)),"Please add fitting")
Hope you can help
Thanks
Geoff