data validation

Status
Not open for further replies.

prakashkumar

New Member
Joined
May 9, 2021
Messages
42
Office Version
  1. 2010
Platform
  1. Windows
first 2 digit must be numerical value
third digit must be "/"
4th and 5th digit must be numerical value
6th digit must be "/"
7 8 9 10 digit must be numerical value
else say some error message
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
how about
=AND(ISNUMBER(LEFT(a1,2)*1),ISNUMBER(RIGHT(a1,4)*1),ISNUMBER(MID(a1,4,2)*1),MID(a1,3,1)="/",MID(a1,6,1)="/")
in datavalidation

maybe a simplier formula - say removed the / , check there are 2 and the rest is a number
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,390
Messages
6,124,669
Members
449,178
Latest member
Emilou

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top