• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microsoft Excel Tips and Tricks - Computergaga

  • Home
  • Excel Online Courses
  • Excel Functions List
  • Free Downloads
  • Blog
  • Tutorials
  • About
Home / Formulas / Validate Uppercase Entries in Excel

Validate Uppercase Entries in Excel

The Data Validation tool in Excel can be used to validate uppercase entries. This post demonstrates two examples of validation to ensure text is entered in uppercase.

The first ensures that the whole entry has been written in uppercase, and the second will only validate the first letter of an entry.

Validate Text Entries to be in Uppercase

This example will ensure that the whole entry is in uppercase.

  1. Select the cells you want to validate
  2. Click the Data tab on the Ribbon and then click the Data Validation button
  3. Click the Allow: list arrow and select Custom
Validate uppercase entries with Data Validation
  1. Type the following formula in the box provided replacing E2 with the first cell of the range selected
=EXACT(E2,UPPER(E2))

The Exact function compares two text entries and returns True if they are exactly the same, and False if they are different.

The Upper function is used to convert the case of text to uppercase. In this example it is used to compare an uppercase version of the text entry to the actual text entry.

  1. Click the Error Alert tab in the dialogue box
  2. Enter a customised error message which explains what the user has done wrong, and what they should do
Error alert for invalid text entry
  1. Click Ok

Validate only the First Letter of an Entry to be Uppercase

You may wish to validate only the first letter of an entry to be in uppercase. This can be popular with ID’s for products and employees that commonly have a prefix lettering in uppercase.

  1. Select the cells you want to validate
  2. Click the Data tab on the Ribbon and then click the Data Validation button
  3. Click the Allow: list arrow and select Custom
Validate to ensure first letter is uppercase
  1. Type the following formula in the box provided replacing A2 with the first cell of the range selected
=EXACT(LEFT(A2,1),UPPER(LEFT(A2,1)))

In this formula, the LEFT function is used to extract the first letter from the text entered. This enables the formula to only check the first character.

  1. Click the Error Alert tab in the dialogue box
  2. Enter an error message that instructs the user what has gone wrong and what they should do
  3. Click Ok

Using formulas in Data Validation enables you to create complex validation criteria. This is great because as well as ensuring accurate data entry, it also instructs the spreadsheet users on how they should be entering it.

In my Excel stock control spreadsheet, stock items need to be entered with the first letter  in uppercase. Instead of using Data Validation I used the Ucase function in VBA to convert the entry to uppercase.

This is a good demonstration of other techniques available. Different techniques work better in different scenarios.

Related Posts:

  • Calculate age in Excel thumbnail
    How to Calculate Age in Excel
  • SWITCH function feature
    Excel SWITCH Function - Nested IF Function Alternative
  • Copy a formula down in Excel
    How to Copy a Formula Down in Excel
  • N Functions in Excel thumbnail
    N Function in Excel

Reader Interactions

Comments

  1. bharath bhushan says

    13 August 2013 at 7:36 pm

    HI, THE FUNCTION IS REALLY GOOD ,
    I TRIED, BUT GETTING ERROR MSG CAN U PLS SEND ME A SAMPLE OR CAN CREATE A VIDEO IT WILL HELP ME
    REGARDS
    BHUSHAN

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Excel SWITCH Function – Nested IF Function Alternative
  • Sum Formulas Only in Excel
  • How to Calculate Age in Excel
  • Custom Sort in Excel
  • Case Sensitive Lookup with XLOOKUP in Excel
Advanced Excel Success book

Footer

Contact

[email protected]

LinkedIn Twitter YouTube

Useful Links

  • Home
  • Excel Online Courses
  • Tutorials
  • Sitemap
  • Privacy Policy
  • Jobs by Jooble

Course Topics

  • Blog
  • Charts
  • Courses
  • Dashboards
  • Downloads
  • Excel Tips
  • Formulas
  • Mail Merge
  • Office
  • PivotTables
  • Power BI
  • Power Pivot
  • Power Query
  • VBA

Join Our Mailing List

© Copyright 2009 Computergaga · All Rights Reserved ·