Loncat ke daftar isi utama

Bagaimana cara mengisi nomor urut melewati baris tersembunyi di Excel?

Misalkan, Anda memiliki rentang data filter yang ingin Anda isi nomor urut ke dalam sel kosong yang difilter seperti gambar berikut yang ditampilkan. Dalam hal ini, menyeret gagang isian tidak akan mengisi sel dengan benar secara umum, artikel ini, saya akan berbicara tentang beberapa trik bagus untuk menyelesaikan tugas ini di Excel.

doc mengisi lewati tersembunyi 1 2 doc mengisi lewati tersembunyi 2

Isi nomor urut melewati baris tersembunyi dengan rumus

Isi nomor urut melewati baris tersembunyi dengan kode VBA

Isi nomor urut melewati baris tersembunyi dengan Kutools for Excel


Untuk mengisi nomor urut hanya ke sel yang terlihat, rumus sederhana dapat membantu Anda, lakukan hal berikut:

1. Masukkan rumus ini: = SUBTOTAL (103, $ B $ 3: $ B3)(B3 adalah sel yang terlihat yang sesuai dengan sel yang ingin Anda isi nomor urutnya) ke dalam sel pertama tempat Anda ingin mengisi nomor urut, A3, untuk contoh ini, lalu tekan Enter kunci, Anda akan mendapatkan nomor 1, lihat tangkapan layar:

doc mengisi lewati tersembunyi 3

2. Kemudian pilih sel A3, dan seret gagang isian ke sel yang ingin Anda isi nomor urut, lihat tangkapan layar:

doc mengisi lewati tersembunyi 4


Kode VBA berikut juga dapat membantu Anda mengisi nomor urut menjadi hanya sel yang terlihat, lakukan seperti ini:

1. Tahan ALT + F11 kunci untuk membuka Microsoft Visual Basic untuk Aplikasi jendela.

2. Klik Menyisipkan > Modul, dan tempel kode berikut di Modul Jendela.

Kode VBA: Isi nomor urut melewati baris tersembunyi:

Sub FillValue()
'updateby Extendoffice
    Dim xRg As Range
    Dim xCell As Range
    Dim xTxt As String
    Dim xVal As Long
    Dim I As Long
    On Error Resume Next
    xTxt = ActiveWindow.RangeSelection.Address
    Set xRg = Application.InputBox("Please select the data range", "Kutools for Excel", xTxt, , , , , 8)
    Set xRg = xRg.SpecialCells(xlVisible)
    Debug.Print xRg.Address
    If xRg Is Nothing Then Exit Sub
    For Each xCell In xRg
        xVal = xVal + 1
        xCell = xVal
    Next
End Sub

3. Lalu tekan F5 kunci untuk menjalankan kode ini, dan kotak prompt muncul untuk mengingatkan Anda memilih rentang data yang ingin Anda isi, lihat tangkapan layar:

doc mengisi lewati tersembunyi 5

4. Dan kemudian klik OK tombol, nomor urut telah diisi ke dalam sel yang terlihat saja.


Dua metode di atas hanya dapat membantu Anda untuk mengisi nomor urut ke dalam sel yang terlihat, jika Anda ingin mengisi urutan sebagai AA-0001-BB, AA-0002-BB, AA-0003-BB…, metode di atas tidak akan berhasil. Tapi, jangan khawatir tentang, Kutools untuk Excel'S Masukkan Nomor Urutan utilitas dapat membantu Anda menyelesaikannya dengan cepat dan mudah.

Kutools untuk Excel : dengan lebih dari 300 add-in Excel yang praktis, gratis untuk dicoba tanpa batasan dalam 30 hari

Setelah menginstal Kutools untuk Excel, lakukan hal berikut:

1. Pilih sel yang ingin Anda isi string urutannya.

2. Klik Kutools > Menyisipkan > Masukkan Nomor Urutan, Dalam Masukkan Nomor Urutan kotak dialog, klik New tombol, lihat tangkapan layar:

2 doc mengisi lewati tersembunyi 7

3. Di kotak dialog yang diperluas, harap tentukan pengaturan yang Anda butuhkan ke bagian kiri bawah, pada saat yang sama, Anda dapat melihat pratinjau urutan di panel kanan bawah, lihat tangkapan layar:

doc mengisi lewati tersembunyi 8

4. Setelah menyelesaikan pengaturan, klik Add tombol untuk menyimpan item baru ini ke dalam kotak daftar di atas, lihat tangkapan layar:

doc mengisi lewati tersembunyi 9

6. Dan kemudian pilih item yang Anda buat dan klik Isi Rentang tombol, string urutan telah diisi hanya ke dalam sel yang terlihat, lihat tangkapan layar:

doc mengisi lewati tersembunyi 10

Unduh dan uji coba gratis Kutools untuk Excel Sekarang!


Kutools untuk Excel: dengan lebih dari 300 add-in Excel yang praktis, gratis untuk dicoba tanpa batasan dalam 30 hari. Unduh dan uji coba gratis Sekarang!

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 (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What's the magic with the 103?
This comment was minimized by the moderator on the site
It worked!! Thank you so muh!
This comment was minimized by the moderator on the site
none of these BS worked...The first one using formula, had skipped numbers and repeating other numbers... is there an easier way? FFS!
This comment was minimized by the moderator on the site
I have different worksheets in a workbook and I want to use VBA code for all worksheet at once .
Can anybody help me out.


For Example:
In every sheet in A1 I have S.No. and I want it to be a Sequence number 1 2 3 4 .....
This comment was minimized by the moderator on the site
VERY THANKS
This comment was minimized by the moderator on the site
I have been manually adding serial numbers to sheets containing hundreds, if not thousands, of rows since the past few years. The above formula has literally save a whole lot of hours for me, for the rest of my life. Thank you, Op.
This comment was minimized by the moderator on the site
This is not working. Instead of filling series, it's just copying first cell.
This comment was minimized by the moderator on the site
It doesn't work for me either! I get 1 in the original cell and then 1 in every cell I copy the formula to.
This comment was minimized by the moderator on the site
All of these steps above are way too complicated when I just want to double click the Fill Handle and Fill Down over hidden rows. Could Kutools give us a way to AutoFill using the Fill handle over filtered/hidden rows just using double click?
This comment was minimized by the moderator on the site
Hello, Matt,
Thank you for your comment, Kutools does not support this feature so far, but, we will consider your suggestion.
Thank you!
This comment was minimized by the moderator on the site
How can we use this solution with a custom starting number: Fill Down Sequence Numbers Skip Hidden Rows With VBA Code
This comment was minimized by the moderator on the site
Thank you! This works!!! Really appreciate it! Take Care and God Bless, PB
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations