跳到主要內容

如何在Microsoft Excel中將大寫字母更改為大寫或大寫?

有時您可能需要將大寫字母更改為標題大小寫或適當的大小寫,如下所示的屏幕截圖。 並且本文將指導您將所有大寫字母或文本字符串更改為Microsoft Excel中的適當大小寫或標題大小寫。

doc將大寫更改為大寫1

在具有PROPER功能的Excel中將大寫字母更改為大寫字母/標題大寫

使用VBA代碼在Excel中將大寫字母更改為大寫字母/標題大寫

使用Kutools for Excel在Excel中將大寫字母更改為大寫字母/標題大寫


在具有PROPER功能的Excel中將大寫字母更改為大寫字母/標題大寫

Microsoft Excel的 正確 函數可以將任何文本更改為適當的大小寫。 請這樣做:

1。 在相鄰的空白單元格B2中,輸入以下公式: = PROPER(A2),請參見屏幕截圖:

doc將大寫更改為大寫2

2。 然後按 Enter 鍵,選擇單元格B2,然後將填充手柄拖動到要包含此公式的範圍內。 並且所有大寫文本都已轉換為正確的大小寫。 看截圖:

doc將大寫更改為大寫3

備註:由於它們是公式,因此在復制和粘貼它們時,需要將它們粘貼為值。


使用VBA代碼在Excel中將大寫字母更改為大寫字母/標題大寫

1。 激活您要使用的工作表。

2。 然後點擊 開發者 > Visual Basic中,一個新的 適用於應用程序的Microsoft Visual Basic 將會顯示一個窗口(或者您可以按快捷鍵 Alt + F11鍵 打開窗口),然後單擊 插入 > 模塊,然後將以下代碼輸入到 模塊:

Sub ProperCase()
'Updateby Extendoffice
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

3。 然後點擊 按鈕運行代碼,然後顯示一個對話框供您選擇範圍,請參見屏幕截圖:

doc將大寫更改為大寫4

4。 點擊 OK,  並且所有大寫字母都已更改為適當的大小寫。

doc將大寫更改為大寫5


使用Kutools for Excel在Excel中將大寫字母更改為大寫字母/標題大寫

變更案例 的工具 Excel的Kutools 可以幫助您輕鬆地將文本或字母更改為任何情況。 選擇中的正確/標題大小寫也是如此。

Excel的Kutools : 帶有300多個便捷的Excel加載項,可以在30天內免費試用. 

1。 選擇將大寫字母更改為大寫字母/標題字母的範圍。

2。 點擊 庫工具 > 文本 > 變更案例…。 看截圖:

3. 。 In在 變更案例 對話框,檢查 適當的情況 選項,然後您可以在 預覽 窗格。 看截圖:

doc將大寫更改為大寫7

4。 然後點擊 OK or 登記。 並且所選內容中的所有大寫字母均更改為大寫/標題大小寫。

doc將大寫更改為大寫5

注意: 此實用程序 適當的情況 不僅可以將大寫更改為標題大小寫,還可以將選擇中的所有大小寫更改為標題大小寫。

Excel的Kutools's 變更案例 工具可以快速將文字大小寫更改為 , 降低, 正確, 判例切換盒. 點擊了解更多...

單擊立即下載並免費試用Kutools for Excel!


演示:將所有大寫字母更改為大寫或大寫

Excel的Kutools:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!

相關文章:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
This a great tutorial, and you got the desired result, but you are actually converting to Proper case rather than "Title case". This Sentence Is Written In Proper Case. This Sentence is Written in Title Case. This sentence is written in sentence case. In Title case, the first word, proper nouns, etc are capitalised; the "little" words are not. If you try your tutorial with the text in this comment, you'll see even the "little" words become capitalised. I've been Googling how to do Title case in Excel, but everyone suggests using =PROPER(), which is not the right solution.
This comment was minimized by the moderator on the site
OMG... Thank you for this. I never knew about the PROPER command. This has been driving me nuts for years!
This comment was minimized by the moderator on the site
hello, great job. seems legit
This comment was minimized by the moderator on the site
Oh my gosh, you saved me. Best Excel help site I have seen. Plus I don't have to call Jeff for help every time I open excel. Thank you. Don
This comment was minimized by the moderator on the site
excel formula change sentence case shortcut key
This comment was minimized by the moderator on the site
Try turning it into a function as follows. Save in personal app file and then you can use in all workbooks Public Function SENTENCECASE(Sen As String) 'Sen is the range selected in the brackets of the function as the input cell On Error Resume Next xValue = Sen xStart = True For i = 1 To VBA.Len(xValue) ch = Mid(xValue, i, 1) Select Case ch Case "." xStart = True Case "?" xStart = True Case "a" To "z" If xStart Then ch = UCase(ch) xStart = False End If Case "A" To "Z" If xStart Then xStart = False Else ch = LCase(ch) End If End Select Mid(xValue, i, 1) = ch Next SENTENCECASE = xValue End Function
This comment was minimized by the moderator on the site
I wish to Sort the parameters by certain terms and not by Alphabetically, i.e by either A to Z or Z to A. Kindly suggest solution.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations