+ Reply to Thread
Results 1 to 6 of 6

Data Validation with mixed numbers and a single letter

  1. #1
    Registered User
    Join Date
    06-01-2014
    Posts
    4

    Post Data Validation with mixed numbers and a single letter

    I am looking for a simple (maybe) formula I can use in the custom Validation area. It will have up to 3 numbers an X in the middle and up to three more numbers at the end. Examples: 1X58 or 100X100 or 545X165 the numbers will be 1 to 999 with a capital X between the 2 sets of numbers. If it doesn't equal its a no go. Kind of new to this so what ever help you can give will help.
    Thank you

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,412

    Re: Data Validation with mixed numbers and a single letter

    Is "X" represent for any single string? Is it able to be "Y" ,"Z", "@" or any single string?
    Quang PT

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,412

    Re: Data Validation with mixed numbers and a single letter

    If B2 need Validation
    Try:
    Please Login or Register  to view this content.

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,401

    Re: Data Validation with mixed numbers and a single letter

    @bebo021999,

    You need to change both of your 999's to 1000 otherwise 999X# or #X999 (where # is a stand-in for any number less than 1000) will be blocked.

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Data Validation with mixed numbers and a single letter

    @bebo021999,

    Also another condition is required to confirm both numbers >=0, otherwise the following will accept;

    -1X-1
    1X-1
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,401

    Re: Data Validation with mixed numbers and a single letter

    That is a good point Haseeb! I have reworked bebo021999's formula to overcome the problem you and I found while still keeping it somewhat short...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Rick Rothstein; 08-10-2020 at 12:14 AM.

+ 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. TOP CHALLENGE!! Sumif every single cell in sum range is mixed with numbers and strings
    By jhs1212 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 9
    Last Post: 05-21-2020, 10:59 PM
  2. [SOLVED] Data Validation List First Letter and second numbers from 0 to 99
    By jaryszek in forum Excel General
    Replies: 5
    Last Post: 03-20-2019, 03:02 AM
  3. Incrementing Letter / Numbers / Letters in a single cell
    By Alan27 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2017, 06:11 PM
  4. [SOLVED] Countif & Sumif with single and double digit numbers mixed in same column.
    By hoventim in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-15-2015, 03:19 PM
  5. [SOLVED] Data Validation: String of Numbers and A Single Letter at End
    By b624333 in forum Excel Formulas & Functions
    Replies: 32
    Last Post: 06-30-2014, 01:48 PM
  6. Delete leading zeros from all numbers present in a single, mixed cell
    By daedelous00 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2013, 04:47 PM
  7. Data Validation - 1 letter, 2 numbers
    By RumbleBee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2012, 08:16 AM

Tags for this Thread

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