Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • Conditional Formatting Rules in Excel
  • Excel Frequency Function Example
  • Excel Bar Chart
  • How To Perform and Interpret Regression Analysis in Excel

References

  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • Perform case-sensitive Lookup in Excel
  • How to get address of last cell in range in Excel
  • Find closest match in Excel
  • Get nth match with INDEX / MATCH in Excel

Data Validations

  • Excel Data validation must not contain
  • How To Create Drop-down List in Excel
  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year
  • Excel Data validation whole percentage only

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:   How to Capitalize first letter in a sentence 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:   IS functions: ISBLANK, ISERR, ISERROR, ISLOGICAL, ISNA, ISNONTEXT, ISNUMBER, ISREF, ISTEXT

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:

VLOOKUP without #N/A error in Excel

Next Post:

How to Create Gantt Chart in Excel

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

Logical Functions

  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel FALSE Function
  • How to use IFS function in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • Extract multiple matches into separate rows in Excel

Date Time

  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Count dates in current month in Excel
  • Add years to date in Excel
  • YEARFRAC function: Description, Usage, Syntax, Examples and Explanation
  • Assign points based on late time in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • How to randomly assign people to groups in Excel
  • Categorize text with keywords in Excel
  • Group times into unequal buckets in Excel
  • How to randomly assign data to groups in Excel

General

  • How to calculate percent of goal in Excel
  • Excel Autofill Cell Ranges, Copy, Paste
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • How to generate random times at specific intervals in Excel
  • Creating and Opening an existing file in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning