
- MS Excel Basics
- Excel - Home
- Excel - Getting Started
- Excel - Explore Window
- Excel - Backstage
- Excel - Entering Values
- Excel - Move Around
- Excel - Save Workbook
- Excel - Create Worksheet
- Excel - Copy Worksheet
- Excel - Hiding Worksheet
- Excel - Delete Worksheet
- Excel - Close Workbook
- Excel - Open Workbook
- Excel - Context Help
- Editing Worksheet
- Excel - Insert Data
- Excel - Select Data
- Excel - Delete Data
- Excel - Move Data
- Excel - Rows & Columns
- Excel - Copy & Paste
- Excel - Find & Replace
- Excel - Spell Check
- Excel - Zoom In-Out
- Excel - Special Symbols
- Excel - Insert Comments
- Excel - Add Text Box
- Excel - Undo Changes
- Formatting Cells
- Excel - Setting Cell Type
- Excel - Setting Fonts
- Excel - Text Decoration
- Excel - Rotate Cells
- Excel - Setting Colors
- Excel - Text Alignments
- Excel - Merge & Wrap
- Excel - Borders and Shades
- Excel - Apply Formatting
- Formatting Worksheets
- Excel - Sheet Options
- Excel - Adjust Margins
- Excel - Page Orientation
- Excel - Header and Footer
- Excel - Insert Page Breaks
- Excel - Set Background
- Excel - Freeze Panes
- Excel - Conditional Format
- Working with Formula
- Excel - Creating Formulas
- Excel - Copying Formulas
- Excel - Formula Reference
- Excel - Using Functions
- Excel - Builtin Functions
- Advanced Operations
- Excel - Data Filtering
- Excel - Data Sorting
- Excel - Using Ranges
- Excel - Data Validation
- Excel - Using Styles
- Excel - Using Themes
- Excel - Using Templates
- Excel - Using Macros
- Excel - Adding Graphics
- Excel - Cross Referencing
- Excel - Printing Worksheets
- Excel - Email Workbooks
- Excel- Translate Worksheet
- Excel - Workbook Security
- Excel - Data Tables
- Excel - Pivot Tables
- Excel - Simple Charts
- Excel - Pivot Charts
- Excel - Keyboard Shortcuts
- MS Excel Resources
- Excel - Quick Guide
- Excel - Useful Resources
- Excel - Discussion
How to Allow Only Date Format in Specific Cells in Excel?
Assume we want to create an excel that contains information about the dates of some important events, and everyone is attempting to enter data other than dates in the column, and you want to restrict them to only entering the date in the specified column. We can make that happen using some Excel tricks. In this tutorial, let's see a simple trick where we only allow date format data in a specified cell.
Here we will add the data validation to allow only dates. Let us look at a simple example to see how we can limit the date format to specific cells.
Step 1
Let us open an Excel sheet with the names of events and the dates of those events blank. We can enter dates after completing this simple step.

We can enter any value under the column of date, but a date can’t be any value; it has a format of dd-mm-yyyy, which specifies the particular day.
To only allow dates, we need to use the concept of data validation.
Now, on the data menu on the quick access tool bar, select data validation twice, and a pop-up will appear, as shown in the figure below.


Step 2
Now under the setting in the allow list, select Custom and enter the following formula in the Formula box −
=AND(ISNUMBER(B2),LEFT(CELL("FORMAT",B2),1)="D")
Click OK to complete the process. See the following screenshot.

In the formula, the cell "B2" represents that only date format data is allowed below the cell B2.
Step 3
Now if we try to enter any other format in the column date, an error message will be displayed.

Conclusion
In this tutorial, we used a simple example to demonstrate how we can allow only date format in Excel to highlight a particular set of data.
- Related Articles
- How to Allow Certain Users to Edit Cells Range in Excel?
- How to Allow Only Yes or No Entry in Excel?
- How to change American date format in Excel?
- How to Apply Data Validation to Allow Only Numbers in Excel?
- How to Allow Sorting and Filtering of Locked Cells in Protected Sheets in Excel?
- How to Convert yyyymmdd to Normal Date Format in Excel?
- How to Convert yyyymmddhhmmss Date Format to Normal Datetime in Excel?Datetime in Excel?
- How to Apply a Button to Clear Specific Cells in Excel?
- How to print date and time in specific format using JSP?
- Set a specific Date Format in MySQL?
- How to Copy and Paste Only Non-Blank Cells in Excel?
- How to add horizontal borders only in specific range in Excel
- Cast string to date in specific format in SAP HANA
- How to Copy Cells If Column Contains Specific Value/Text in Excel?
- How to get the max/min of visible cells only in Excel?
