Not quite getting that too work mate. I done a bit of house keeping on the Motor Calcs (Generic) sheet too, and I think I have revised your code appropriately, but still unable to get it to work correctly.
Sheet attached
What i did:
I copied and pasted your formula
=IF(LEFT(F31,5)="Cable", INDEX(INDIRECT(VLOOKUP(F32, table4d1aconfig, 2, 0)),1),"Not Applicable")
into a datavalidtion list Source box on Cell F33
Then in edited the VB code to
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$F$31" Then
Range("F32").FormulaR1C1 = "=INDEX(INDIRECT(VLOOKUP(R[-1]C, table4d1a, 2, 0)),1)"
Range("F33").FormulaR1C1 = "=IF(LEFT(RC6,5)=""Cable"", INDEX(INDIRECT(VLOOKUP(R[1]C6, table4d1aconfig, 2, 0)),1),""Not Applicable"")"
ElseIf Target.Address = "$F$32" Then
Range("F33").FormulaR1C1 = "=IF(LEFT(RC6,5)=""Cable"", INDEX(INDIRECT(VLOOKUP(R[1]C6, table4d1aconfig, 2, 0)),1),""Not Applicable"")"
End If
End Sub
Any ideas?
Bookmarks