+ Reply to Thread
Results 1 to 3 of 3

Custom Data Validation Number Format

  1. #1
    Forum Contributor
    Join Date
    06-19-2012
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    143

    Custom Data Validation Number Format

    Is there a way to set up a table column in the Custom Data Validation options to only allow numbers in the following formats?

    • 000-00000-0
    • 000-00000-00
    • 000-00000-000

    The first and second number sections will always be the same amount of digits, but the last section could have 1, 2 or 3 digits.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Custom Data Validation Number Format

    Please try

    =SEARCH("???-?????-?*",A2)*(LEN(A2)<14)*(-SUBSTITUTE(A2,"-",)<0)
    Attached Files Attached Files
    Last edited by Bo_Ry; 01-13-2022 at 03:10 PM.

  3. #3
    Forum Contributor
    Join Date
    06-19-2012
    Location
    Canada
    MS-Off Ver
    Office 365
    Posts
    143

    Re: Custom Data Validation Number Format

    Fantastic, that worked perfectly! Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Data Validation for custom time format
    By PaulGSmith7 in forum Excel General
    Replies: 1
    Last Post: 10-07-2016, 09:08 AM
  2. Data Validation for custom time format
    By PaulGSmith7 in forum Excel General
    Replies: 1
    Last Post: 10-06-2016, 11:26 PM
  3. Data Validation for custom time format
    By PaulGSmith7 in forum Excel General
    Replies: 1
    Last Post: 10-06-2016, 10:33 PM
  4. Data Validation for custom string format
    By jamiem4 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-15-2014, 03:04 AM
  5. Data Validation and Custom Number Formats
    By Sloth in forum Excel General
    Replies: 1
    Last Post: 08-03-2006, 05:25 PM
  6. [SOLVED] Custom function valid in Data Validation/Conditional Format?
    By Tetsuya Oguma in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2005, 10:05 PM
  7. [SOLVED] Custom Format and Data Validation Q
    By John in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2005, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1