View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Fiona Fiona is offline
external usenet poster
 
Posts: 70
Default Extracting a code

Thank you Mike, thats exactly what I needed!

"Mike H" wrote:

Fiona

If I understand correctly you have strings like

qwertyABC999jjnsccjkn

and you want the 999. If so try this

=MID(A1,SEARCH("abc",A1)+3,3)

Mike

"Fiona" wrote:

Hi, I have a list of titles that all contain a 6 digit reference ABC123, the
first 3 digits are always the same (ABC) but the second 3 change, they are in
a different places on each line, so the MID function doesn't work.

Is there anyway to =ABC and the 3 digits after it??


thank you