View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Glen[_5_] Glen[_5_] is offline
external usenet poster
 
Posts: 31
Default Extract Certain character from string

Declare str1 as a string
Set str1 = 1164NB1 as your string value
then use the MID function:
MID(str1,4,2)

This will grab and return the 4th and 5th characters of your string