The private sub below works ok, but I am managing the formula and coding. I don't know how to change my current code to something that works off of Sheet2 so I would only manage a list. I have tried Index, Match, and Xlookup, etc., but I haven't figured it out. Additionally, besides always have to update the vba coding, the formula has grown too big. I really need something different, something better. Thank you in advance for your help!
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$2" Then
Select Case Target.Value
Case "Run":
Range("B2:B" & Cells(Rows.Count, "C").End(xlUp).Row).FormulaR1C1 = "=IF(OR(COUNTIF(RC[-1],""*""&""IBM""&""*"")>0,COUNTIF(RC[-1],""*""&""multifunction""&""*"")>0,COUNTIF(RC[-1],""*""&""xerox""&""*"")>0,COUNTIF(RC[-1],""*""&""konica""&""*"")>0,COUNTIF(RC[-1],""*""&""ricoh""&""*"")>0),""MFC"",IF(OR(COUNTIF(RC[-1],""*""&""chair""&""*"")>0,COUNTIF(RC[-1],""*""&""desk""&""*"")>0,COUNTIF(RC[-1],""*""&""file cabinet""&""*"")>0,COUNTIF(RC[-1" & _
"],""*""&""bookshelves""&""*"")>0,COUNTIF(RC[-1],""*""&""table""&""*"")>0),""O"",IF(OR(COUNTIF(RC[-1],""*""&""computer""&""*"")>0,COUNTIF(RC[-1],""*""&""laptop""&""*"")>0,COUNTIF(RC[-1],""*""&""desktop""&""*"")>0,COUNTIF(RC[-1],""*""&""printer""&""*"")>0,COUNTIF(RC[-1],""*""&""keyboard""&""*"")>0,COUNTIF(RC[-1],""*""&""mouse""&""*"")>0,COUNTIF(RC[-1],""*""&""monitor" & _
"""&""*"")>0,COUNTIF(RC[-1],""*""&""server""&""*"")>0,COUNTIF(RC[-1],""*""&""router""&""*"")>0,COUNTIF(RC[-1],""*""&""motum""&""*"")>0,COUNTIF(RC[-1],""*""&""POS""&""*"")>0,COUNTIF(RC[-1],""*""&""time clock""&""*"")>0,COUNTIF(RC[-1],""*""&""WiFi""&""*"")>0),""C"",IF(OR(COUNTIF(RC[-1],""*""&""cutter""&""*"")>0,COUNTIF(RC[-1],""*""&""lift truck""&""*"")>0,COUNTIF(RC[-1" & _
"],""*""&""stretch wrap""&""*"")>0,COUNTIF(RC[-1],""*""&""table saw""&""*"")>0,COUNTIF(RC[-1],""*""&""continuous feed""&""*"")>0,COUNTIF(RC[-1],""*""&""fork lift""&""*"")>0,COUNTIF(RC[-1],""*""&""folder""&""*"")>0),""M"",""??""))))"
End Select
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$2" Then
Select Case Target.Value
Case "Run":
Range("B2:B" & Cells(Rows.Count, "C").End(xlUp).Row).FormulaR1C1 = "=IF(OR(COUNTIF(RC[-1],""*""&""IBM""&""*"")>0,COUNTIF(RC[-1],""*""&""multifunction""&""*"")>0,COUNTIF(RC[-1],""*""&""xerox""&""*"")>0,COUNTIF(RC[-1],""*""&""konica""&""*"")>0,COUNTIF(RC[-1],""*""&""ricoh""&""*"")>0),""MFC"",IF(OR(COUNTIF(RC[-1],""*""&""chair""&""*"")>0,COUNTIF(RC[-1],""*""&""desk""&""*"")>0,COUNTIF(RC[-1],""*""&""file cabinet""&""*"")>0,COUNTIF(RC[-1" & _
"],""*""&""bookshelves""&""*"")>0,COUNTIF(RC[-1],""*""&""table""&""*"")>0),""O"",IF(OR(COUNTIF(RC[-1],""*""&""computer""&""*"")>0,COUNTIF(RC[-1],""*""&""laptop""&""*"")>0,COUNTIF(RC[-1],""*""&""desktop""&""*"")>0,COUNTIF(RC[-1],""*""&""printer""&""*"")>0,COUNTIF(RC[-1],""*""&""keyboard""&""*"")>0,COUNTIF(RC[-1],""*""&""mouse""&""*"")>0,COUNTIF(RC[-1],""*""&""monitor" & _
"""&""*"")>0,COUNTIF(RC[-1],""*""&""server""&""*"")>0,COUNTIF(RC[-1],""*""&""router""&""*"")>0,COUNTIF(RC[-1],""*""&""motum""&""*"")>0,COUNTIF(RC[-1],""*""&""POS""&""*"")>0,COUNTIF(RC[-1],""*""&""time clock""&""*"")>0,COUNTIF(RC[-1],""*""&""WiFi""&""*"")>0),""C"",IF(OR(COUNTIF(RC[-1],""*""&""cutter""&""*"")>0,COUNTIF(RC[-1],""*""&""lift truck""&""*"")>0,COUNTIF(RC[-1" & _
"],""*""&""stretch wrap""&""*"")>0,COUNTIF(RC[-1],""*""&""table saw""&""*"")>0,COUNTIF(RC[-1],""*""&""continuous feed""&""*"")>0,COUNTIF(RC[-1],""*""&""fork lift""&""*"")>0,COUNTIF(RC[-1],""*""&""folder""&""*"")>0),""M"",""??""))))"
End Select
End If
End Sub