Use Custom Data Validation Function To Limit Number of Digits In Excel Last Updated : 29 Oct, 2021 Comments Improve Suggest changes Like Article Like Report There might arise a situation while working on Excel where you want the users to type in 10-digits(say) numbers only in a cell. In these types of scenarios, we can make use of the Custom Data validation Function to limit the number of digits in Excel. In this article, we will discuss the same. Sample Data: Customer Sales Table Sales Table Approach: First, we check the given cell value is number and then the cell value is only 10 digit. Allow only both conditions are true Excel Formula: ISNUMBER(): Return Boolean value True if the cell value is number.LEN(): Return the number of characters in a cell.AND(): Logical and function.Implementation of Custom Data Validation Function: Follow the below steps to implement the custom data validation function: Step 1: Type Header (“Mobile Number” as an example) in Cell C1. Step 2: Select cells “C2” to “C21” Step 3: Click Data >> Data Validation >> Data Validation… to open the Data Validation dialog box as shown below. Here we will be implementing the function as : AND(LEN(C2)=10,ISNUMBER(C2))Error Alert: Data validation popup an Error Alert, when the condition is not met. Comment More infoAdvertise with us Next Article Use Custom Data Validation Function To Limit Number of Digits In Excel S sk123online Follow Improve Article Tags : Excel Excel-VBA ExcelGuide Similar Reads How to Validate Input to a Function Error in R In this article, we will examine various methods for how to validate input to the function by using R Programming Language. How to validate input to the function?Validating input to a function in R is crucial for ensuring that your code behaves as expected and can handle various types of input grace 5 min read How to Format Numbers in Thousands and Millions in Excel? Microsoft Excel allows its users to store raw data in a well-structured format in a spreadsheet. The spreadsheets consist of numerous cells in the form of rows and columns in which an individual can store data. An Excel spreadsheet can store different types of data such as numbers, characters, strin 4 min read Function Argument Validation in MATLAB The basics of Function Argument is, " The functions receive certain inputs from the calling command which applies in function syntax and processes it. sometimes It may or may not produce output argument it dependence completely on the functions efficiency or the accuracy of your code." Function Argu 5 min read Custom Format to Show Units Without Changing Number to Text in Excel Microsoft Excel is a great software that is used by individuals to store data in the form of spreadsheets in a formatted manner. Microsoft Excel allows us to store a variety of data such as characters, text, numbers, decimals, date, time, etc. Since Excel is a smart tool, it automatically identifies 3 min read COUNTIF Function in Excel - Step by Step Tutorial Excel Countif Function - Quick Steps Select the RangeDefine the CriteriaEnter the Formula =COUNTIF(range, criteria)Press EnterEver needed to quickly count cells that meet specific criteria in Excel? The COUNTIF function in Excel is your go-to tool for this task. Whether you're analyzing data, filter 9 min read Like