I would like to display a certain value in a cell based on two conditions:
1) If L11 = "P," "K," "C," or "F" then add 0, 1, 2 or 3 accordingly to Column A,
2) From what's being displayed in column B
Here is my formula in a VBA Module:Function OverStock(L As Range, B As Range)
If L11 = "P" Then
OverStock = B
ElseIf L11 = "K" Then
OverStock = B + 1
ElseIf L11 = "C" Then
OverStock = B + 2
ElseIf L11 = "F" Then
OverStock = B + 3
End If
End Function
Bookmarks