JackDanIce
Well-known Member
- Joined
- Feb 3, 2010
- Messages
- 9,922
- Office Version
- 365
- Platform
- Windows
Hi,
I'm trying to condense following:
To:
Where "A", "B" etc are irrelevant or an equivalent function
Limits of 3, 10, 15 and 18 will never change (and always ascending order) can someone suggest?
TIA,
Jack
I'm trying to condense following:
Code:
Select Case i
Case 1 To 3: ForeCastCol = "A"
Case 4 To 10: ForeCastCol = "B"
Case 11 To 15: ForeCastCol = "C"
Case Else: ForeCastCol = "D" 'Limit is 18 regardless
End Select
Code:
Application.Vlookup(i, [3, 10, 15, 18], ["A", "B", "C", "D"], True)
Limits of 3, 10, 15 and 18 will never change (and always ascending order) can someone suggest?
TIA,
Jack
Last edited: