LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Checking the last character is in a list

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking whether a value in a list is present in a second list [email protected] Excel Discussion (Misc queries) 5 June 1st 07 02:30 PM
checking for a value in a list kcrad Excel Discussion (Misc queries) 3 March 13th 07 04:20 PM
Error Checking for Duplicates in List bman342 Excel Worksheet Functions 2 June 29th 06 11:15 AM
Checking if different items are in a list LAF Excel Discussion (Misc queries) 2 January 11th 06 09:47 PM
Checking if value is in a list roeaster Excel Worksheet Functions 1 April 15th 05 05:00 PM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"