Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


How to quickly convert/change text to upper cases in Microsoft Excel?

This article is going to talk about some tips about how to change text strings to all uppercase letters easily in Microsoft Excel.

Supposing you need to change text strings in A1:A5 to uppercase letters, see the following screen shots:

arrow blue right bubble Change text strings to uppercases in Excel with UPPER function

Using Microsoft Excel's upper function is easy to change text strings to uppercase letters in one cell.

Enter =UPPER(A1) in Cell C1, and press Enter key. Then the content of "change case" in Cell A1 is copied and changed to "CHANGE CASE" in Cell C1. See screen shot:

Select the Cell C1, and you can copy the formula to other cells by dragging at bottom-right corner and dropping down to other cells.

arrow blue right bubble Change text strings to uppercase in Excel with VBA

There is a VBA code can help you to change the text string to uppercase in Excel.

1. Press Alt + F11 to display the Microsoft Visual Basic for Applications window.

2. In the window, click Insert > Module to show a new module window, then copy the following VBA code into the module window.

VBA: Change text string to uppercase in Excel.

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)
End Sub

3. Then click Run button, and a dialog pops out for you to select a range to change text string to uppercase. See screenshot:

4. After selecting, click OK. All the text string in the selection will be changed to uppercase.

arrow blue right bubble Change text strings to uppercase in Excel with Kutools for Excel

Kutools for Excel's Change Case tool can help you all text strings or letters to uppercase letters in a range of Microsoft Excel.

Kutools for Excel includes more than 100 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

Step 1: Select the range in which you will change text strings to uppercase letters.

Step 2: Click the Kutools > Text Tools > Change Case…. See screen shot:

Step 3: In Change Case dialog box, check the UPPER CASE option, and click OK or Apply button. See screen shot:

Then you will see that all text strings in selection are changed to uppercase letters. See screenshot:

Kutools for Excel's Change Case tool can quickly change text case to UPPER, LOWER, PROPER, Sentence Case, and tOGGLE cASE. Click to know more…

Relative articles:

Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Screen Shot of Excel (with Office Tab installed)

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!


Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Aron C · 4 years ago
    The VBA was freaking awesome thanks a lot :lol: .
  • To post as a guest, your comment is unpublished.
    Bryan Steven · 5 years ago
    This is one the ways that i know it could be done with VBA

    Sub UPPER ()

    Dim Addrr As Atring
    Addr = Intersect(ActiveSheet.UsedRange, Selection).Address
    Range(Addr) = _
    Evaluate("IF(LEN(" & Addr & "),UPPER(" & Addr & "),"""")")

    End Sub