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

Lookup and Reference Examples

  • Two-column Lookup in Excel
  • Count rows that contain specific values in Excel
  • Get nth match with INDEX / MATCH in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • Left Lookup in Excel

Data Analysis Examples

  • Conditional Formatting Color Scales Examples in Excel
  • How to count table columns in Excel
  • Add Outline to Data in Excel
  • How to calculate current stock or inventory in Excel
  • How to Create Column Chart in Excel

Data Validation Examples

  • Excel Data validation specific characters only
  • Excel Data validation only dates between
  • Excel Data validation with conditional list
  • How To Create Drop-down List in Excel
  • Data validation must not exist in list

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

Explanation

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:   Highlight cells that end with 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:   Highlight column differences 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:   How to Capitalize first letter in a sentence 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
  • LEFT, LEFTB functions: Description, Usage, Syntax, Examples and Explanation
  • UNICHAR function: Description, Usage, Syntax, Examples and Explanation
  • How to get first word in Excel
  • How to extract domain name from URL in Excel
  • Remove text by matching in a cell in Excel
  • How to get same date next year or previous year in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate Day of the Year in Excel
  • Display Date is same month in Excel
  • Next biweekly payday from date in Excel
  • Calculate cumulative loan interest in Excel
  • COUPDAYBS function: Description, Usage, Syntax, Examples and Explanation
  • ACCRINTM function: Description, Usage, Syntax, Examples and Explanation
  • YIELD function: Description, Usage, Syntax, Examples and Explanation
  • Example of payment for annuity in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles