跳到主要内容

如何在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。 然后按 输入 键,选择单元格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 中将大写更改为正确/标题大小写

变更案 的工具 Kutools for Excel 可以帮助您轻松地将文本或字母更改为任何情况。 选择中的正确/标题大小写也是如此。

Kutools for Excel : 带有300多个便捷的Excel加载项,可以在30天内免费试用. 

1。 选择将大写字母更改为大写字母/标题大写字母的范围。

2。 点击 库工具 > 文本 > 变更案例…。 看截图:

3。在 变更案 对话框,检查 适当的情况 选项,然后您可以在 预览 窗格。 看截图:

doc将大写更改为大写7

4。 然后点击 OK or 使用。 并且所选内容中的所有大写字母均更改为大写/标题大小写。

doc将大写更改为大写5

请注意: 此实用程序 适当的情况 不仅可以将大写更改为标题大小写,还可以将选择中的所有大小写更改为标题大小写。

Kutools for Excel's 变更案 工具可以快速将文字大小写更改为 , LOWER, 正确, 判例切换盒. 点击了解更多...

单击立即下载并免费试用 Kutools for Excel !


演示:将所有大写字母更改为大写或大写

Kutools for Excel:具有300多个方便的Excel加载项,可以在30天内免费试用,没有任何限制。 立即下载并免费试用!

相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 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