Loncat ke daftar isi utama

Bagaimana cara memasukkan nama file atau jalur ke sel / header atau footer di Excel?

Misalkan Anda ingin memasukkan nama file atau jalur file ke dalam sel Excel, header atau footer, bagaimana Anda bisa dengan cepat melakukan operasi ini?

Masukkan nama file atau jalur saat ini dalam sel dengan Formula

Masukkan nama file atau jalur saat ini di header / footer dengan fungsi Header & Footer

Masukkan nama file atau jalur saat ini di sel / header atau footer dengan Kutools for Excel ide bagus3


panah gelembung kanan biru Masukkan nama file atau jalur saat ini dalam sel dengan Formula

Dengan rumus berikut, Anda bisa dengan cepat menyisipkan nama file atau jalur atau nama lembar dalam sel tertentu.

Barang Rumus Contoh
Nama file saja = MID (CELL ("filename"), SEARCH ("[", CELL ("filename")) + 1, SEARCH ("]", CELL ("filename")) - SEARCH ("[", CELL ("filename ")) - 1) produk features.xlsx
Filepath saja = KIRI (SEL ("nama file", A1), TEMUKAN ("[", SEL ("nama file", A1), 1) -1) C: \ Users \ dt \ Desktop \ Folder baru \
Nama lembar aktif saja = KANAN (SEL ("nama file"), LEN (SEL ("nama file")) - TEMUKAN ("]", SEL ("nama file"), 1)) Sheet7
Nama file saat ini, jalur file, dan nama lembar aktif = SEL ("nama file") C: \ Users \ dt \ Desktop \ Folder baru \ [fitur produk.xlsx] Sheet7

Catatan:

1. Salin rumus di atas yang Anda perlukan ke sel tertentu, dan Anda akan mendapatkan hasil yang Anda butuhkan.

2. Buku kerja terbuka harus sudah disimpan.


panah gelembung kanan biru Masukkan nama file atau jalur saat ini di header / footer dengan fungsi Header & Footer

Jika Anda ingin memasukkan nama file atau jalur file ke dalam header atau footer wotksheet, Anda dapat menggunakan fungsi Header & Footer.

1. Di Pita, klik Menyisipkan > Bagian atas dan bagian bawah.

2. Akan ada tiga kotak pengeditan di bagian Header atau Footer, klik meninggalkan, pusat or ringh kotak yang ingin Anda masukkan nama file atau path. Kemudian di bawah Mendesain tab, klik Jalur File, File Name or Nama Lembar yang perlu Anda masukkan. Lihat tangkapan layar:

doc-masukkan-nama file-path1

Kemudian klik sembarang sel, dan Anda dapat melihat path file atau nama atau nama sheet telah dimasukkan ke dalam header atau footer. Lihat tangkapan layar:

Sisipkan jalur file ke dalam tajuk
doc-masukkan-nama file-path2
Masukkan nama file ke footer
doc-masukkan-nama file-path3

panah gelembung kanan biru Masukkan nama file atau jalur saat ini di sel / header atau footer dengan Kutools for Excel

Kutools untuk Excel'S Masukkan Informasi Buku Kerja adalah alat mutifungsional, ini dapat membantu Anda memasukkan nama lembar kerja, nama buku kerja, jalur buku kerja atau jalur & nama buku kerja ke dalam sel Excel, header atau footer dengan cepat dan nyaman.

Kutools untuk Excel, dengan lebih dari 300 fungsi praktis, membuat pekerjaan Anda lebih mudah. 

Setelah menginstal Kutools for Excel, lakukan seperti di bawah ini :(Unduh Gratis Kutools untuk Excel Sekarang!)

1. Klik Kutools Ditambah > Alat Buku Kerja > Masukkan Informasi Buku Kerja, lihat tangkapan layar:

doc memasukkan informasi buku kerja 3

2. di Masukkan Informasi Buku Kerja kotak dialog, pilih informasi buku kerja yang ingin Anda sisipkan dari panel kiri, lalu pilih tempat Anda ingin menyisipkan informasi. Lihat tangkapan layar:

doc memasukkan informasi buku kerja 2

3. Lalu klik OK. Jika Anda memasukkan informasi wotkbook ke dalam sel, Anda akan mendapatkan hasil sebagai berikut:

doc-masukkan-nama file-path6

Jika Anda menyisipkan informasi buku kerja ke header atau footer, Anda bisa memilih lokasi tempat Anda ingin menyisipkan informasi, kiri, Kanan or pusat. Dan Anda dapat melihat dulu header atau footer dari View > Page Layout.

Untuk mengetahui lebih lanjut tentang fitur ini, silakan kunjungi Masukkan Informasi Buku Kerja.

panah gelembung kanan biru Masukkan Informasi Buku Kerja

Ketik.Jika Anda ingin memasukkan beberapa baris atau kolom kosong di setiap baris ke-n, silakan coba gunakan Kutools for Excel's Sisipkan Baris & Kolom Kosong seperti yang ditunjukkan pada tangkapan layar berikut. Ini berfungsi penuh tanpa batasan dalam 60 hari, silakan unduh dan dapatkan uji coba gratis sekarang.

Batch menyisipkan baris atau kolom kosong dalam interval tertentu dalam rentang Excel

Jika Anda ingin menyisipkan baris kosong di setiap baris lainnya, Anda mungkin perlu memasukkannya satu per satu, tetapi file Sisipkan Baris & Kolom Kosong of Kutools untuk Excel dapat menyelesaikan pekerjaan ini dalam hitungan detik. Klik untuk uji coba gratis 30 hari!
doc memasukkan kolom baris kosong
Kutools for Excel: dengan lebih dari 300 add-in Excel yang praktis, gratis untuk dicoba tanpa batasan dalam 30 hari.

Alat Produktivitas Kantor Terbaik

馃 Kutools AI Ajudan: Merevolusi analisis data berdasarkan: Eksekusi Cerdas   |  Hasilkan Kode  |  Buat Rumus Khusus  |  Analisis Data dan Hasilkan Grafik  |  Aktifkan Fungsi Kutools...
Fitur Populer: Temukan, Sorot, atau Identifikasi Duplikat   |  Hapus Baris Kosong   |  Gabungkan Kolom atau Sel tanpa Kehilangan Data   |   Putaran tanpa Formula ...
Pencarian Super: VLookup Beberapa Kriteria    VLookup Nilai Berganda  |   VLookup di Beberapa Lembar   |   Pencarian Fuzzy ....
Daftar Drop-down Lanjutan: Buat Daftar Drop Down dengan Cepat   |  Daftar Drop Down yang Bergantung   |  Multi-pilih Drop Down List ....
Manajer Kolom: Tambahkan Jumlah Kolom Tertentu  |  Pindahkan Kolom  |  Alihkan Status Visibilitas Kolom Tersembunyi  |  Bandingkan Rentang & Kolom ...
Fitur Unggulan: Fokus Kisi   |  Tampilan Desain   |   Bar Formula Besar    Manajer Buku Kerja & Lembar   |  Perpustakaan Sumberdaya (Teks otomatis)   |  Pemetik tanggal   |  Gabungkan Lembar Kerja   |  Enkripsi/Dekripsi Sel    Kirim Email berdasarkan Daftar   |  Filter Super   |   Filter Khusus (filter tebal/miring/coret...) ...
15 Perangkat Teratas12 Teks Tools (Tambahkan Teks, Hapus Karakter, ...)   |   50 + Grafik jenis (Gantt Chart, ...)   |   40+ Praktis Rumus (Hitung usia berdasarkan ulang tahun, ...)   |   19 Insersi Tools (Masukkan Kode QR, Sisipkan Gambar dari Jalur, ...)   |   12 Konversi Tools (Angka ke Kata, Konversi Mata Uang, ...)   |   7 Gabungkan & Pisahkan Tools (Lanjutan Gabungkan Baris, Pisahkan Sel, ...)   |   ... dan banyak lagi

Tingkatkan Keterampilan Excel Anda dengan Kutools for Excel, dan Rasakan Efisiensi yang Belum Pernah Ada Sebelumnya. Kutools for Excel Menawarkan Lebih dari 300 Fitur Lanjutan untuk Meningkatkan Produktivitas dan Menghemat Waktu.  Klik Di Sini untuk Mendapatkan Fitur yang Paling Anda Butuhkan...

Deskripsi Produk


Tab Office Membawa antarmuka Tab ke Office, dan Membuat Pekerjaan Anda Jauh Lebih Mudah

  • Aktifkan pengeditan dan pembacaan tab di Word, Excel, PowerPoint, Publisher, Access, Visio, dan Project.
  • Buka dan buat banyak dokumen di tab baru di jendela yang sama, bukan di jendela baru.
  • Meningkatkan produktivitas Anda sebesar 50%, dan mengurangi ratusan klik mouse untuk Anda setiap hari!
Comments (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What's the function to display and file path and file name WITHOUT the active sheet name? Example: C:\Users\dt\Desktop\New folder\products features.xlsx
This comment was minimized by the moderator on the site
Hello, Lydeth Chea
To only display the file path and name without the sheet name, please apply the below formua:
=SUBSTITUTE(LEFT(CELL("filename"), FIND("]", CELL("filename"))-1), "[", "")


Please have a try, thank you!
This comment was minimized by the moderator on the site
Is there an automated way to pass the current Excel filename (no file path, no extension) to the current worksheet name?
This comment was minimized by the moderator on the site
Is it possible to turn a file path in an excel print title into a clickable hyperlink? I would like to publish the excel file as a pdf with a clickable hyperlink in the footer.
This comment was minimized by the moderator on the site
Hi I have about 90 workbooks, and in each workbook i have 5 sheets, i want to put in a new column in every sheet across these workbooks to input the year.
This comment was minimized by the moderator on the site
Hi, correct formula for filename without path is: =MID((CELL("filename"));((SEARCH("[";(CELL("filename"))))+1);((SEARCH("]";(CELL("filename"))))-((SEARCH("[";(CELL("filename"))))+1))) (semicolon in MID and SEARCH funtions, and -1 --> +1 at the end) bye
This comment was minimized by the moderator on the site
For filename without extension: =MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-5)
This comment was minimized by the moderator on the site
This gives an error.
This comment was minimized by the moderator on the site
shouldn't be 6?
This comment was minimized by the moderator on the site
-6 was the correct for me on MS Office 2016 :)
This comment was minimized by the moderator on the site
On mine it works well. However, it finishes with a "." at the end. If you put 6 instead it will return without the ".". It basically works counting the characters which "+1" in the formula is the first character and the "-5" is the amount of characters that are not showing counting from the front. So, if you want to catch only the middle characters eg. (XXXXX from a document named ZZ-YY-WW-XXXXX from a extension .xlsm) you can input as per below:

=MID(CELL("filename"),SEARCH("[",CELL("filename"))+10,SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-15)
This comment was minimized by the moderator on the site
when i am using this function in excel 1 (this is the filename) , and then i open excel 2, the cell in excel 1 changes from "excel 1" to "excel 2". Please advise, how to prevent this.
This comment was minimized by the moderator on the site
Yes, I am having the same problem, this formula seems to point to a variable that is not tied to the actual spreadsheet of the cell the formula exists in but instead to the currently selected spreadsheet or similar.
This comment was minimized by the moderator on the site
I have the same problem when opening a different excel document. Is there a way to leave the file name with the current file?
This comment was minimized by the moderator on the site
You prolly already found this solution. But I figured I'd add it for any future searchers. :-) Simply add the third option, the "A1" reference, to each of the CELL functions as follows: =CELL("filename",A1) =SUBSTITUTE( LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),"[","") =MID(CELL("filename",A1),SEARCH("[",CELL("filename",A1))+1, SEARCH("]",CELL("filename",A1))-SEARCH("[",CELL("filename",A1))-1)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations