Filename:
U:\Pjongyang\returns\Clients\0 Client Files Sorted\P - T\Gymkata\vReturn\2012\10_12\AWP\[Gymkata_AvaTax_Upload_Data_Summary_201210_vTEST.xls]qrySelUploadSummary
Formula:
=CONCATENATE(LEFT(MID(CELL("filename"),FIND("\",CELL("filename"))+54,LEN(CELL("filename"))),FIND("\",MID(CELL("filename"),FIND("\",CELL("filename"))+3,LEN(CELL("filename")))))," - ","11/2012")
Result:
Gymkata
I am trying to extract a company name from the file name. The company name is going to be different each time. What I wrote above works if the company name is the same length; I did not consider different counts in company names.
U:\Pjongyang\returns\Clients\0 Client Files Sorted\P - T\Gymkata\vReturn\2012\10_12\AWP\[Gymkata_AvaTax_Upload_Data_Summary_201210_vTEST.xls]qrySelUploadSummary
I now realize that what I really want is the text string between the 6th and 7th occurrence of "\". Can the formula I wrote be easily adapted to this change?
Bookmarks