I wanted to know how to import the current file's name into an excel cell. also how to shorten it to just the relevant part.
here's the formula i found:
<CODE>=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1)</CODE></PRE></PRE>
can someone explain it to me? i dont get it. is there also some place, maybe within excel, where i could've gotten an explanation? when i click on the formula there's a small popup that shows where one is in it, but not an actual explanation.
now if i want to restrict this answer to, say, 10 letters, how would i do so?
here's the formula i found:
<CODE>=MID(CELL("filename"),SEARCH("[",CELL("filename"))+1, SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-1)</CODE></PRE></PRE>
can someone explain it to me? i dont get it. is there also some place, maybe within excel, where i could've gotten an explanation? when i click on the formula there's a small popup that shows where one is in it, but not an actual explanation.
now if i want to restrict this answer to, say, 10 letters, how would i do so?