View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Bernd P Bernd P is offline
external usenet poster
 
Posts: 806
Default Finding a string of 7 numbers in cell contents

=regexpreplace(" "&A1&" ","^.* (\d{7}) .*$","$1")

The function regexpreplace you will find he
http://www.sulprobil.com/html/regexp.html

Regards,
Bernd