将数据导入电子表格(import data into a spreadsheet)时,您可能会发现混合大小写字母或包含所有大写或小写字母的单词。如果您希望保持文本数据的一致性,我们将向您展示几种在Excel中更改文本大小写的方法。
我们将向您介绍您可以使用的三个功能:快速填充(Flash Fill)功能、有用的Office加载项以及在(Office)Microsoft Excel和Word之间复制和粘贴的方法。使用(Use)最简单或最适合您的方法。

使用公式更改大小写
无论您是否已经使用Excel公式,都可以使用三个方便的函数(three handy functions)来更改文本大小写。使用UPPER、LOWER和PROPER,您可以使用简单的公式调整文本。
要使用Excel函数,您需要将公式添加到包含数据的单元格以外的单元格,例如右侧的新列。
上层函数
如果要将文本更改为全部大写字母,请使用UPPER函数。语法是UPPER(文本),您可以在其中输入实际文本或参数的单元格引用。
在这里,我们将使用以下公式将文本从大小写字母混合更改为全部大写:
=UPPER(“乔·史密斯”)

请注意(Notice),如果您使用文本作为参数,则应将其括在引号中并且可以使用任何字母大小写。
再举一个例子,我们将使用以下公式将单元格 A2 中的内容更改为所有大写文本:
=上(A2)

较低的功能
与UPPER(UPPER)函数相反的是LOWER。有了它,您可以更改为所有小写文本。语法是LOWER (text),您可以再次在其中输入单元格引用或文本。
在此示例中,我们将使用以下公式将单元格 A3 中的文本更改为所有小写字母:
=下(A3)

要将文本用作参数,请务必将其用引号引起来。在这里,我们将引号中的文本更改为全部小写字母:
=LOWER(“约翰·琼斯”)

正确的功能
最后是PROPER函数,它允许您将每个单词的首字母大写,通常称为首字母大写。这是名字和姓氏(first and last names)、头衔或标题的便捷选项。语法与上面的函数基本相同,PROPER (text)。
下面,我们将使用以下公式通过将文本括在引号中来将文本更改为首字母大写:
=PROPER(“杰里·怀特”)

在最后一个示例中,我们将使用以下公式更改单元格 A4 中的文本:
=正确(A4)

复制公式
如果您要将公式应用于一列中的多个单元格,则只需复制并粘贴即可。
选择包含公式的单元格,然后将右下角的填充柄(加号)向下拖动到剩余的单元格中,然后松开。

您将看到公式进行调整以包含正确的单元格引用并填写结果。

注意:如果您使用绝对单元格引用而不是相对引用,则公式不会自动更新引用(automatically update the references)。
利用快速填充
Excel(Flash Fill feature in Excel)中的快速填充功能是另一个可用于更改文本大小写的便捷工具。您只需按照您想要的文本方式创建一个条目,然后使用Flash Fill 填充(Flash Fill)其余条目。
这里我们有一个字母大小写混合的名字列表。您输入希望文本在右侧第一个单元格中显示的方式,然后按Enter或Return。

然后,使用键盘快捷键(keyboard shortcut) Ctrl + E或选择“数据”选项卡的“(Data)数据工具(Data Tools)”部分中的“快速填充(Flash Fill)”按钮。

就像变魔术一样,您会看到其他条目旁边的剩余单元格填充显示,就像您提供的第一个单元格一样。

或者,您可以选择显示为正式接受建议的“快速填充(Flash Fill)”按钮,但这不是必需的。
签出加载项
也许您不喜欢公式并且想要一个可以就地更改文本的工具。您可以试一试 Excel 的一个加载项。在这里,我们将使用Swap Case加载项。
- 使用“插入”选项卡上的“(Insert)获取加载项(Get Add-ins)”按钮打开Office 加载项商店(Office Add-ins Store)。

- 然后,将“案例”或“交换案例”弹出到搜索框中。选择添加(Select Add),然后继续(Continue)安装插件。

- 返回(Head)您的工作表并在“主页”选项卡上选择“(Home)交换大小写(Swap Case)” 。

- 如果您没有看到它,请打开“插入(Insert)”选项卡上的“我的加载项(My Add-ins)”下拉列表,选择“查看全部”(See All),选择加载项,然后选择“添加(Add)” 。

- 当加载项的侧边栏在右侧打开时,选择要更改的单元格并选择大写或小写按钮。

您会看到所选单元格中的文本更改为您选择的大小写。
加载项的好处是您可以更改原始单元格中的文本。不幸的是,加载项没有提供正确的大小写选项。
从 Microsoft Word 复制和粘贴
如果除了Excel之外,您还使用 Microsoft (Excel)Word并执行大量复制和粘贴操作,这为您提供了另一种选择。由于Word提供了一种更改文本大小写的简单方法,因此您可以在那里进行编辑并将其弹回到Excel 中(Excel)。
- 在Excel 中(Excel),复制包含要更改的文本的单元格。您可以使用Ctrl + C、 “主页”选项卡上的“(Home)复制”(Copy)按钮或右键单击并选择“复制(Copy)”来执行此操作。

- 打开Word 文档并粘贴(Word document and paste)数据。您可以使用Ctrl + V、 “主页”选项卡上的“(Home)粘贴(Paste)”按钮或右键单击并选择“粘贴(Paste)”来执行此操作。

- 当您的数据出现时,选择文本并使用“更改大小写”按钮和“(Change Case)主页”(Home)选项卡上的下拉列表来选择您想要的大小写。

- 接下来,选择Word中的数据并使用上述复制操作之一复制它。

- 返回Excel并再次使用上述粘贴方法之一将数据粘贴到原始数据上。

然后,您将在您选择的大小写中看到编辑后的文本。
虽然此方法确实需要一些额外的工作,但如果您习惯使用它并且无需额外的列,它仍然是一种有用的方法。
您始终可以手动更改Excel中的文本大小写,一次一个单元格。但是,这些选项为您提供了更快、更轻松且不那么繁琐的方法。你会用哪个(Which)?
有关更多教程,请查看如何删除 Excel 中的重复行(remove duplicate rows in Excel)。
How to Change Text Case in Excel
Whеn you import data into a spreadsheet, you may find mixed letter cases or words that contain all upper or lowercase letters. If you prefer to keep your textual data consistent, we’ll show you a few ways to change text case in Excel.
We’ll walk you through three functions you can use, the Flash Fill feature, a helpful Office add-in, and a way to copy and paste between Microsoft Excel and Word. Use whichever method is easiest or works best for you.

Use a Formula to Change Case
Whether you already use Excel formulas or not, there are three handy functions for changing text case. With UPPER, LOWER, and PROPER, you can adjust your text with a simple formula.
To use the Excel functions, you’ll need to add the formulas to cells other than those containing the data, like in a new column to the right.
The UPPER Function
When you want to change your text to all uppercase letters, use the UPPER function. The syntax is UPPER(text) where you can enter the actual text or a cell reference for the argument.
Here, we’ll change the text from a mix of upper and lowercase letters to all caps using this formula:
=UPPER(“joe smith”)

Notice that if you use the text for the argument, you should enclose it in quotation marks and can use any letter case.
As another example, we’ll change the content in cell A2 to all uppercase text with this formula:
=UPPER(A2)

The LOWER Function
The opposite of the UPPER function is LOWER. With it, you can change to all lowercase text. The syntax is LOWER(text) where again, you can enter a cell reference or the text.
In this example, we’ll change the text in cell A3 to all lowercase letters with this formula:
=LOWER(A3)

To use the text as the argument, be sure to wrap it in quotation marks. Here, we’ll change the text in quotes to all lowercase letters:
=LOWER(“john jones”)

The PROPER Function
Lastly is the PROPER function which allows you to capitalize the first letter of each word, often called title case. This is a handy option for first and last names, titles, or headlines. The syntax is basically the same as the functions above, PROPER(text).
Below, we’ll use the following formula to change the text to title case by enclosing it in quotes:
=PROPER(“jerry white”)

In the final example, we’ll change the text in cell A4 with this formula:
=PROPER(A4)

Copy the Formula
If you have several cells in a column that you want to apply the formula to, you can simply copy and paste it down.
Select the cell containing the formula and drag the fill handle (plus sign) in the bottom right corner down through the remaining cells and release.

You’ll see the formula adjust to include the correct cell references and fill in the results.

Note: If you use absolute cell references rather than relative, the formula does not automatically update the references.
Take Advantage of Flash Fill
The Flash Fill feature in Excel is another convenient tool you can use to change the case of text. You simply create one entry the way you want your text and then fill the rest using Flash Fill.
Here we have a list of names with mixed letter cases. You enter the way you want the text to appear in the first cell to the right and press Enter or Return.

Then, either use the keyboard shortcut Ctrl + E or select the Flash Fill button in the Data Tools section of the Data tab.

Like magic, you’ll see the remaining cells next to your other entries fill to display like the first one you provided.

Optionally, you can select the Flash Fill button that appears to officially accept the suggestions, although it’s not required.
Check Out an Add-In
Maybe you’re not fond of formulas and want a tool that changes the text in-place. You can take one of Excel’s add-ins for a spin. Here, we’ll use the Swap Case add-in.
- Use the Get Add-ins button on the Insert tab to open the Office Add-ins Store.

- Then, pop “Case” or “Swap Case” into the search box. Select Add and then Continue to install the add-in.

- Head back to your worksheet and pick Swap Case on the Home tab.

- If you don’t see it, open the My Add-ins drop-down list on the Insert tab, select See All, choose the add-in, and pick Add.

- When the add-in’s sidebar opens on the right, select the cells you want to change and pick either the upper or lowercase button.

You’ll see the text in your selected cells change to the case you choose.
The benefit to the add-in is that you can change your text in the original cells. Unfortunately, the add-in doesn’t offer a proper case option.
Copy and Paste From Microsoft Word
If you use Microsoft Word in addition to Excel and perform a lot of copying and pasting, this gives you another option. Because Word offers an easy way to change text case, you can edit it there and pop it back into Excel.
- In Excel, copy the cells containing the text you want to change. You can do this using Ctrl + C, the Copy button on the Home tab, or with a right-click and choosing Copy.

- Open a Word document and paste the data. You can do this using Ctrl + V, the Paste button on the Home tab, or with a right-click and choosing Paste.

- When your data appears, select the text and use the Change Case button and drop-down list on the Home tab to choose the case you want.

- Next, select the data in Word and copy it using one of the copy actions above.

- Return to Excel and paste the data over the original data, again, using one of the above paste methods.

You’ll then see your edited text in the case you chose.
While this method does require a bit of extra work, it’s still a useful way to go if it’s what you’re comfortable using and eliminates the need for an extra column.
You can always change text case in Excel manually, one cell at a time. However, these options give you faster, easier, and less tedious ways to go. Which will you use?
For more tutorials, look at how to remove duplicate rows in Excel.