Gå til innhold

[Løst] Excel: Hente inn filnavnet i celle?


koda

Anbefalte innlegg

Videoannonse
Annonse
Skrevet

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)))))

  • Liker 1
Skrevet (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 av Harald Staff
  • Liker 2

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 konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...