koda Skrevet 9. mars 2011 Del Skrevet 9. mars 2011 Fins det en formel for å hente navnet på excel-filen inn i en celle? Lenke til kommentar
Snasnt Skrevet 9. mars 2011 Del Skrevet 9. mars 2011 Insert the current file name, its full path, and the name of the active worksheet (for example, C:\Excel\[test.xls]Testsheet) Enter the following formula in the cell in which you want to display the current file name with its full path and the name of the current worksheet: =CELL("filename") Insert the current file name and the name of the active worksheet (for example, [text.xls]Testsheet) Enter the following formula as an array formula to display the current file name and active worksheet name: =RIGHT(CELL("filename"),LEN(CELL("filename"))- MAX(IF(NOT(ISERR(SEARCH("\",CELL("filename"), ROW(1:255)))),SEARCH("\",CELL("filename"),ROW(1:255))))) 1 Lenke til kommentar
Harald Staff Skrevet 9. mars 2011 Del Skrevet 9. mars 2011 (endret) Forutsetter engelsk Excel siden du ikke spesifiserer: =MID(CELL("filename");FIND("[";CELL("filename"))+1;(FIND("]";CELL("filename"))-FIND("[";CELL("filename"))-1)) HTH. Beste hilsen Harald Endret 9. mars 2011 av Harald Staff 2 Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå