Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You're welcome. If you're caught in such a nasty mess in the future,
consider preceding such a line with s$ = Right(stContents, 1) if efficiency matters. You still can do better than that long ugly statement even when the letters are not fully contiguous (exactly A through F). You could put each valid letter in a range, like A C D F and do a isna(vlookup) - or even better, do a more efficient match<0. But you'd probably like using CHOOSE best of all - I'll let you experiment with it. But like you I'd have preferred something like "BETWEEN" or SQL's "IN" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checking whether a value in a list is present in a second list | Excel Discussion (Misc queries) | |||
checking for a value in a list | Excel Discussion (Misc queries) | |||
Error Checking for Duplicates in List | Excel Worksheet Functions | |||
Checking if different items are in a list | Excel Discussion (Misc queries) | |||
Checking if value is in a list | Excel Worksheet Functions |