Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get address of named range in Excel
  • Merge tables with VLOOKUP in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Two-way lookup with VLOOKUP in Excel
  • Count rows that contain specific values in Excel

Data Analysis Examples

  • How to create a Histogram in Excel
  • Error Bars in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • Managing Conditional Formatting Rules in Excel
  • Conditional Formatting Rules in Excel

Data Validation Examples

  • Excel Data validation don’t exceed total
  • Excel Data validation number multiple 100
  • Excel Data validation unique values only
  • Data validation must not exist in list
  • Excel Data validation must not contain

Excel Data validation allow uppercase only

by

Using the example below, this tutorial shows how to create Excel Data validation to allow uppercase only.

Formula

=AND(EXACT(A1,UPPER(A1)),ISTEXT(A1))

Excel Data validation allow uppercase onlyExplanation

To allow a user to enter only uppercase TEXT,  you can use data validation with a custom formula based on the UPPER, EXACT, and AND functions.

In the example shown, the data validation applied to C5:C7 is:

=AND(EXACT(C5,UPPER(C5)),ISTEXT(C5))

How this formula works

Data validation rules are triggered when a user adds or changes a cell value.

Worked Example:   Extract data with helper column in Excel

The UPPER function changes text values to uppercase, and the EXACT function performs a case-sensitive comparison.

The AND function takes multiple arguments (logical conditions) and returns TRUE only when all arguments return TRUE.

Worked Example:   How to set check register balance in Excel

The first logical condition compares the value input by the user to an uppercase version of the same value:

EXACT(C5,UPPER(C5)

The second logical condition tests that input to C5 is actually text

ISTEXT(C5)

If both conditions are TRUE, the AND function returns TRUE and input passes validation. If either condition is FALSE, AND returns FALSE and input fails data validation.

Worked Example:   Check multiple cells are equal in Excel

Note:  Cell references in data validation formulas are relative to the upper left cell in the range selected when the validation rule is defined, in this case C5.

Post navigation

Previous Post:

Shade alternating groups of n rows in Excel

Next Post:

Excel Data validation date in next 30 days

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to pad text to match equal length in Excel
  • BAHTTEXT function: Description, Usage, Syntax, Examples and Explanation
  • DBCS function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate Number of Instances in Excel
  • Get last name from name with comma — Manipulating NAMES in Excel
  • Convert decimal hours to Excel time
  • Convert text to date in Excel
  • Get days between dates ignoring years in Excel
  • Get date from day number in Excel
  • How to calculate working days left in month in Excel
  • RRI function: Description, Usage, Syntax, Examples and Explanation
  • XIRR function: Description, Usage, Syntax, Examples and Explanation
  • SLN function: Description, Usage, Syntax, Examples and Explanation
  • VDB function: Description, Usage, Syntax, Examples and Explanation
  • SYD function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles