Log in  \/ 
x
or
x
x
Register  \/ 
x

or

Kutools for Excel 22.00 HOT

300+ Powerful Features You Must Have in Excel

Kutools-for-Excel

Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!

Read More Download Buy now

Office Tab 14.00HOT

Adding Tabbed Interface for Office

Office Tab

It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo

Read More Download Buy now

Kutools for Outlook 13.00NEW

100+ Powerful Features for Outlook

Kutools-for-Outlook

Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!

Read More Download Buy now

Kutools for Word  9.00NEW

100+ Powerful Features for Word

Kutools-for-Word

Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!

Read More Download Buy now

Classic Menu for Office

Bringing Back Your Familiar Menus

Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.

Read More Download Buy now

How to force text string to uppercase / lowercase / proper case in Excel?

In Excel, when you enter some letters or words into the cells, you want to force the text strings to uppercase even though you entered the lowercase or proper case letters and vice versa. Most of us may consider the Data Validation feature in Excel, with this function, we will get a warning when we don’t type the correct case of the text. In this article, I will introduce some interesting ways to force the text to uppercase, lowercase or proper case as you need.

Force the text strings to uppercase / lowercase / proper case with Data Validation

Force the text strings to uppercase / lowercase / proper case with VBA code

Change text to UPPERCASE/lowercase/Proper Case with Kutools for Excel good idea3


Data Validation is a powerful tool in Excel, it can help us to do many operations, with its help, we can also force the uppercase, lowercase or proper case of the text strings when typing, please do as follows:

1. Go to click Data > Data Validation > Data Validation, see screenshot:

doc-force-uppercase-1

2. In the Data Validation dialog, under the Settings tab, click the Allow drop down list and choose Custom option, then in the Formula text box, enter this formula =EXACT(UPPER(A1),A1), (A1 stands for a column that you will apply this feature, you can change it to your need ), see screenshot:

doc-force-uppercase-1

3. Then you can create an alert as you need, please click Error Alert tab, and select Stop from the Style drop down list, at the right corner of the Error message text box, enter your own warning message, see screenshot:

doc-force-uppercase-1

4. And then click OK to close the dialog, now when you enter the text string not in uppercase in column A, a warning box will pop out to remind you entering the uppercase letters.

doc-force-uppercase-1

Note:

If you need to force the text strings to lowercase or proper case, please apply the following formulas into the Data Validation in step 2.

Force to lowercase: =EXACT(LOWER(A1),A1);

Force to proper case: =EXACT(PROPER(A1),A1)


With the following VBA code, when you enter the lowercase words into a cell, the lowercase text will be changed to the uppercase letters automatically.

1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

2. Then choose your used worksheet from the left Project Explorer, double click it to open the Module, and then copy and paste following VBA code into the blank Module:

VBA code: Force text string to uppercase

Private Sub Worksheet_Change(ByVal Target As Range)
'Update 20140603
Target.Value = VBA.UCase(Target.Value)
End Sub

doc-force-uppercase-1

3. Then save and close this code to return to the worksheet, now when you enter text string whenever it is lowercase or proper case, it will become uppercase after tapping the Enter key automatically.

Notes:

1. This code is applied to the whole worksheet.

2. If you cannot find the Project Explorer Pane in the window, you can click View > Project Explorer to open it.

3. To force the words lowercase or proper case, you can apply the following VBA code: (The procedure is the same as the above)

VBA code: Force text string to Lowercase

Private Sub Worksheet_Change(ByVal Target As Range)
'Update 20140603
Target.Value = VBA.LCase(Target.Value)
End Sub

VBA code: Force text string to proper case

Private Sub Worksheet_Change(ByVal Target As Range)
'Update 20140603
Target.Value = Application.WorksheetFunction.Proper(Target.Value)
End Sub

If you just want to change some specific texts into UPPERCASE, lowercase or Proper Case, you can apply the Change Case utility of Kutools for Excel to quickly get it done.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After free installing Kutools for Excel, please do as below:

1. Select the texts you want to change case and click Kutools > Text > Change Case. See screenshot:
doc change case 6

2. In the Change Case dialog, check the operation option as you need, and you can preview the result in the Preview pane. See screenshot:
doc change case 2

3. Click Ok or Apply and the texts have been change case.

 Change to UPPERCASE  Change to Proper Case  Change to Sentence case
 doc change case 3  doc change case 4 doc change case 5 

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
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.
    Thomas Reid · 1 years ago
    This worked for me, however if you went to delete the contents of the cell then a "runtime error '13': type mismatch" came up

    Any ideas?
    • To post as a guest, your comment is unpublished.
      Miguel Neves · 1 years ago
      i have the same problem. if you know how to deal with it please tell me!
      • To post as a guest, your comment is unpublished.
        Sunny · 1 years ago
        Hello, which method you use will come up the errors?
  • To post as a guest, your comment is unpublished.
    Russ Maurer · 2 years ago
    Like your VBA solution, but how could I limit it to a single column and format other columns differently, e.g., columns A and C force uppercase, column B force proper case?
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      I do not know which VBA can handle your job (some columns in uppercase, some in proper case), but the data validation can solve it, why do not use it?
  • To post as a guest, your comment is unpublished.
    Patrick · 4 years ago
    thanks for the macro to convert all entries to capital letters, but is there something i need to do to stop the macro from crashing excel every fe minutes?

    Appreciate the help!

Feature Tutorials