Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for character in a string

Status
Not open for further replies.

deemat

MIS
Jan 20, 2006
24
0
0
US

I'm trying to find a function or create a formula that will check the 4th character in a 5 character string to see if it is an A, B, J or D. I've looked but cannot find a solution any help would be greatly appreciated.
 
Try

If Mid(yourstring, 4, 1) in ['A', 'B', 'J', 'D'] then true else false

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top