跳到主要內容

如何在Microsoft Excel中將大寫更改為小寫?

假設您收到一個Excel報告,其中所有文本字符串均使用大寫字母,則可以在Excel中將這些大寫字母更改為小寫,這將更加容易閱讀,如下面的屏幕截圖所示。 以下技巧可以在Excel中快速將所有大寫字母更改為小寫字母。


方法1:Excel函數將文本更改為小寫

Microsoft Excel支持Lower函數將任何類型的文本字符串更改為小寫,請執行以下操作:

1。 在相鄰的空白單元格D1中,輸入或複制公式

=下(A2)

並按下 Enter 獲得第一個結果的關鍵。 看截圖:

doc更改為小寫1

2。 然後,選擇單元格D1並將填充手柄向下拖動到要應用此公式的單元格,所有文本字符串都已轉換為小寫字母,請參見屏幕截圖:

doc更改為小寫2

3。 然後,您應該複製轉換後的單元格,然後根據需要將它們粘貼為原始單元格作為值格式。

doc更改為小寫3

筆記:

要將文本字符串轉換為大寫,請應用以下公式:

=UPPER(A2)

doc更改為小寫4

要將文本字符串轉換為適當的大小寫形式(即大寫每個單詞的首字母),請應用以下公式:

=PROPER(A2)

doc更改為小寫5


方法2:Flash Fill功能將文本更改為小寫

在Excel 2013及更高版本中,有一個方便的實用程序– Flash填充,借助此功能,您也可以快速解決此任務。

1。 在要更改大小寫的數據旁邊插入一個空白列,然後輸入要使用的第一個文本字符串。 例如,我將在單元格B2中鍵入小寫的文本字符串,請參見屏幕截圖:

doc更改為小寫6

2。 輸入正確格式的文本字符串後,選擇它,然後單擊 首頁 > > 填寫Flash,此列中的其餘單元格將用小寫文本字符串填充,請參見屏幕截圖:

doc更改為小寫7

筆記:

1.要獲取所有大寫文本,請在第一個單元格中鍵入大寫文本,然後應用 Flash填充 功能;

2.要獲取所有適當的大小寫文本,請在第一個單元格中鍵入每個單詞首字母大寫的文本字符串,然後應用 Flash填充 功能;


方法3:VBA代碼將文本更改為小寫

以下VBA代碼還可以幫助您根據需要更改文本字符串的大小寫,並且轉換後的結果將直接替換為原始值。

1。 按住 Alt + F11鍵 鍵打開 Microsoft Visual Basic for Applications 窗口。

2。 點擊 插入 > 模塊,然後將以下代碼粘貼到“模塊窗口”中。

VBA代碼:將文本字符串更改為小寫:

Sub LCase()
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Rng.Value = VBA.LCase(Rng.Value)
Next
End Sub

3。 然後,按 F5 鍵以運行此代碼,在彈出的提示框中,選擇要轉換大小寫的單元格範圍,請參見屏幕截圖:

doc更改為小寫8

4。 然後,點擊 OK 按鈕,並且所選單元格中的所有文本字符串均已轉換為小寫,請參見屏幕截圖:

doc更改為小寫9

筆記:

將文本字符串更改為大寫,請將此VBA代碼複製並粘貼到模塊中:

Sub UCase()
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Rng.Value = VBA.UCase(Rng.Value)
Next
End Sub

每個單詞的首字母大寫,請複制以下VBA代碼並將其粘貼到模塊中:

Sub ProperCase()
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Rng.Value = Application.WorksheetFunction.Proper(Rng.Value)
Next
End Sub
 

方法4:Kutools for Excel將文本更改為小寫

如果你有 Excel的Kutools 安裝,其 變更案例 工具可以幫助您將所有文本字符串直接更改為小寫,大寫,適當的大小寫,句子的大小寫以及在單元格中切換大小寫。 點擊下載Kutools for Excel! 請參見下面的演示:


doc更改為小寫12

安裝後 Excel的Kutools,請這樣做:

1。 選擇要更改大小寫的單元格,然後單擊 庫工具 > 文本 > 變更案例,請參見屏幕截圖:

2。 在 變更案例 對話框中選擇 小寫 選項,然後單擊 OK or 登記 按鈕,所有文本字符串均已轉換為所需的小寫字母,請參見屏幕截圖:

doc更改為小寫11

保養竅門: 這個 變更案例 實用程序還可以幫助您根據需要將文本字符串更改為大寫,大寫,句子大小寫和切換大小寫。


週末忙於工作,使用 Excel的Kutools,
給您一個輕鬆愉快的周末!

週末,孩子們大聲疾呼要出去玩,但周圍有太多工作無法陪伴家人。 太陽,沙灘和大海那麼遠? Excel的Kutools 幫助您 解決Excel難題,節省工作時間。

圖片海灘
  •  獲得晉升和增加薪水並不是遙不可及的。
  •  包含高級功能,解決應用場景,部分功能甚至節省99%的工作時間;
  •  在3分鐘內成為Excel專家,並獲得您的同事或朋友的認可;
  •  不再需要從Google搜索解決方案,不必再為痛苦的公式和VBA代碼告別了;
  •  只需單擊幾下,即可完成所有重複的操作,從而解放了您的手;
  •  只有39美元,但比其他人的4000美元的Excel教程更有價值;
  •  被110,000名精英和300多家知名公司選中;
  •  30天免費試用,並在60天內無條件全額退款;
  •  改變工作方式,然後改變生活方式!
 
Comments (34)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Simple online tool for convert case Convert Case
This comment was minimized by the moderator on the site
Simple online tool for convert case Case converter
This comment was minimized by the moderator on the site
Is there any simple method without using any formula within the same excel sheet ?
This comment was minimized by the moderator on the site
My friends Upper case and Lower case formula is =UPPER(COLOM &ROW ) ENTER
This comment was minimized by the moderator on the site
how to ms excel in current cell & all selected cell upper case & lower case formula use in this work sheet . because used short key of sued key board . than show result.
This comment was minimized by the moderator on the site
advance excel note book . warms regard. sandeep verma Thank's
This comment was minimized by the moderator on the site
Thank you so much i learnt what i wanted to know in excel
This comment was minimized by the moderator on the site
Thanks very much. It is so useful & easy to understanding. :-)
This comment was minimized by the moderator on the site
thanks, your suggestion very helpful
This comment was minimized by the moderator on the site
Dear sir, when i strat to enter in the excel column i expected only uppercase using some formula. Please answer me
This comment was minimized by the moderator on the site
Thank you Very much it's very easy use ....... :-)
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations