6 Kaedah Teratas untuk Menukar Huruf Modal kepada Huruf Kecil di Excel

6 Kaedah Teratas untuk Menukar Huruf Modal kepada Huruf Kecil

Terdapat banyak kaedah yang boleh digunakan untuk menukar teks huruf besar menjadi huruf kecil. Dalam panduan ini, kita akan melihat 6 kaedah teratas untuk membuat huruf besar dengan huruf kecil secara terperinci.

# 1 Menggunakan Fungsi Bawah untuk menukar kes di Excel

Terdapat fungsi terbina dalam MS Excel untuk mendekapitalisasi setiap watak dalam satu perkataan, yang merupakan fungsi yang RENDAH .

Contohnya

Andaikan kita mempunyai senarai beberapa kata kerja di excel, kita mahu menukar huruf kecil menjadi huruf kecil.

Untuk menukar casing menjadi lebih rendah, kita perlu menulis fungsi di sel C2 sebagai '= RENDAH (A2)'. Tanda "= 'atau' + 'digunakan untuk menulis fungsinya, ' LOWER ' adalah nama fungsi dan A2 adalah rujukan sel untuk teks yang ingin kami ubah kesnya.

Tekan Enter, dan fungsi ini akan mengubah semua huruf dalam rentetan teks menjadi huruf kecil.

Satu nilai ditukar sekarang. Untuk nilai lain, kita boleh menekan Ctrl + D setelah memilih semua sel dengan sel atas atau tekan Ctrl + C dan Ctrl + V untuk menyalin dan menempelkan fungsi. Atau kita boleh menyeret formula di sel lain untuk mendapatkan jawapannya.

# 2 Menggunakan Butang Perintah VBA

Kita boleh membuat butang perintah VBA dan menetapkan kod untuk mengubah teks berikut menjadi huruf kecil menggunakan butang perintah.

Contohnya

Langkah 1: Untuk membuat butang arahan, klik pada perintah 'Masukkan' dalam kumpulan 'Kawalan' di 'tab Pembangun Excel.' Dan pilih 'Butang Perintah.'

Langkah 2: Klik lokasi lembaran kerja di mana anda mahu butang arahan muncul. Kita boleh mengubah saiz butang arahan menggunakan butang ALT .

Langkah 3: Menggunakan perintah 'Properties' , ubah sifat butang arahan seperti kapsyen, nama, AutoSize, WordWrap, dll.

Langkah 4: Sekarang, untuk menetapkan kod ke butang perintah, klik pada perintah 'Lihat Kod' dalam kumpulan 'Kawalan' di 'Pembangun' Pastikan 'Mod Reka Bentuk' diaktifkan.

Langkah 5: Di tetingkap yang dibuka, pilih 'ConvertToLowerCase' dari senarai drop-down.

Langkah 6: Tampal kod berikut di antara baris.

Kod:

Dim Rng Sebagai Julat Dim c Sebagai Julat Pada Kesalahan Resume Set seterusnya Rng = Pemilihan Untuk Setiap c Dalam Rng c.Value = LCase (c.Value) Next c

Langkah 7: Keluar dari editor asas visual. Pastikan fail disimpan dengan pelanjutan .xlsm kerana kita mempunyai makro di buku kerja kita.

Langkah 8: Nyahaktifkan 'Design Mode' . Sekarang, setelah memilih sel yang diperlukan, setiap kali kita mengklik butang perintah, nilainya ditukar menjadi huruf kecil.

Pilih semua nilai dari A2: A10 dan klik pada butang arahan. Teks akan diubah menjadi huruf kecil.

# 3 Menggunakan kekunci Pintasan VBA

Cara ini serupa dengan yang di atas kecuali hakikat bahawa kita tidak perlu membuat butang arahan di sini.

Contohnya

Langkah 1: Buka editor Visual Basic dari tab 'Developer' atau dengan menggunakan kekunci pintasan excel (Alt + F11) .

Langkah 2: Masukkan modul menggunakan Menu Sisip -> Perintah Modul .

Langkah 3: Tampal kod berikut.

Sub LowerCaseConversion() Dim Rng As Range Dim c As Range On Error Resume Next Set Rng = Selection For Each c In Rng c.Value = LCase(c.Value) Next c End Sub

Step 4: Save the file using Ctrl+S. Exit the visual basic editor. Make sure the file is saved with .xlsm extension as we have a macro in our workbook.

Step 5: Now choose the ‘Macros’ in the ‘Code’ group in the ‘Developer’ tab.

Step 6: Then click on ‘Options’ and assign the shortcut key to the Macro, and we can write a description as well.

In our case, we have assigned Ctrl+Shift+L.

Step 7: Macro is ready to use. Now to change the values into lowercase, select the required cells, and press Ctrl+Shift+L.

#4 Using Flash Fill

If we establish a pattern by typing the same value in the lowercase in the adjacent column, the Flash Fill feature will fill in the rest for us based on the pattern we provide. Let us understand this with an example.

Example

Suppose we have the following data, which we want to get in lowercase.

To do the same, we need to write the first value of the list in the lower case manually in the adjacent cell.

Come to the next cell in the same column and just press Ctrl+E.

Choose ‘Accept Suggestions’ from the box menu appeared.

That is it. We have all the values in the lower case now. Now we can copy the values, paste the same onto the original list, and delete the extra value from the right.

#5 Enter Text in Lower Case Only

We can make a restriction so that the user can enter text values in lowercase only.

Example

To do this, the steps are:

  • Select the cells which you want to restrict.
  • Choose ‘Data Validation’ from the ‘Data Tools’ group from the ‘Data’ tab.
  • Apply the settings explained in the figure below.
  • Now, whenever the user enters the value in capital letters, MS Excel will stop and will show the following message.

#6 Using Microsoft Word

In Microsoft word, unlike Excel, we have a command named ‘Change Case’ in the ‘Font’ group in the ‘Home’ tab.

Example

Suppose we have the following table of data for which we want to change the text case to ‘Lower’ Case.

To change the case, first, we will copy the data from MS Excel and paste it into MS Word. To do the same, the steps are:

Select the data from MS Excel. And press Ctrl+C to copy data from MS Excel.

Open the MS Word application and paste the table using the Ctrl+V shortcut key.

Select the table using the ‘Plus’ sign on the left-top side of the table.

Choose the ‘Change Case’ command from the ‘Font’ group and select ‘lowercase’ from the list.

Now, the data table is converted to ‘Lower.’ We can just copy the table after selecting the ‘Plus’ sign from the left top corner and paste it into Excel back.

Kita boleh menghapus jadual lama menggunakan menu kontekstual, yang dapat kita peroleh dengan mengklik kanan pada meja.

Perkara yang Perlu Diingat

Untuk menukar nilai menjadi huruf kecil, jika kita menggunakan kod VBA (butang Perintah atau kekunci Pintasan), kita perlu menyimpan fail dengan pelanjutan .xlsm kerana kita mempunyai makro di buku kerja.

Artikel menarik...