View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
M John
 
Posts: n/a
Default filename search and extract into a cell

Hmm, well, that was easy.
Thanks. Most appreciated.

MJohn

"Dave Peterson" wrote:

Always 9 characters offeror##???

if yes:

=MID(CELL("filename",A1),SEARCH("offeror",CELL("fi lename",A1)),9)



M John wrote:

Here's what I'm looking for....
Say the file name is: "Eval - Technical - Offeror01.xls" and there will be
several different spreadsheets "...Offeror02", "...Offeror03", etc.

I would like to extract from the file name the Offeror01 part. I've used
this equation befo
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1),1)+1,FIND("]",CELL("filename",A1),1)-FIND("[",CELL("filename",A1),1)-1)

But now (as I said) want to select out that last part.

Any ideas?

Thanks,
MJohn


--

Dave Peterson