+ Reply to Thread
Results 1 to 5 of 5

Data validation doesn't work

  1. #1
    Registered User
    Join Date
    04-14-2016
    Location
    Netherlands
    MS-Off Ver
    Microfost Excel 2013
    Posts
    2

    Exclamation Data validation doesn't work

    Hello fellow excelpeople,

    I am currently working with Excel 2010 and i would like excel to give me a warning when there are LESS or MORE than 18 signs (IBAN bank account number) in one cell.
    I have set this up using data validation. However, it sometimes gives a warning even though there are 18 numbers in the cell (which is good)
    Does anyone knows why this happens? Maybe because of the fact that a bank account number exists of numbers AND letters?

    How do i fix this?

    Thanks for your help!

    Suzan

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Data validation doesn't work

    Hello Suzan welcome to the forum.

    I'm not quite sure what you mean by '18 signs'. Is the length and syntax of each account number cell consistent? Is it: 'IBANxxxxxxxxxxxxxxxxxx' (18 numbers)?

    DBY

  3. #3
    Registered User
    Join Date
    04-14-2016
    Location
    Netherlands
    MS-Off Ver
    Microfost Excel 2013
    Posts
    2

    Re: Data validation doesn't work

    Hello DBY,

    First of all, thanks for your reply

    It should look like this: AA11AAAA111111111
    A standing for a random letter from the alphabet
    1 standing for a random number
    This is a European bank account number.

    A real example would be; NL12INGB876498756

    They should all have the same build up. If anything is not like the above, i want excel to give me a warning

    Suzan

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Data validation doesn't work

    So it's: 2 letters; 4 numbers; 4 letters and 9 numbers consistently? If so, then there might be a Custom Validation formula that would work but I'll have to give it some thought. In the meantime perhaps some other forum member might have a solution.

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Data validation doesn't work

    Hello
    If you can create a named range of numbers 0 to 9, perhaps called 'Numbers' then try this rather convoluted Custom Validation formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Here applied to A3. This should produce an input error if the syntax described (2 letters; 4 numbers; 4 letters and 9 numbers; length 17) is not entered in the cell. It seems to work but you'll need to test it out and try and break it to see if works for you.

    There may be a simpler way but at the moment it escapes me.

    DBY

+ 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. Replies: 4
    Last Post: 04-19-2017, 03:51 PM
  2. [SOLVED] Dynamic range with indirect in data validation list doesn't work
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-30-2015, 07:38 AM
  3. Data validation with named ranges doesn't work outside scope sheet
    By aprimak in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2015, 11:59 AM
  4. Replies: 1
    Last Post: 03-01-2013, 06:59 PM
  5. VBA validation doesn't work in modules
    By adds007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-25-2010, 03:22 PM
  6. validation macro doesn't work
    By .paul. in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2009, 12:55 PM
  7. [SOLVED] Data Validation doesn't work on 1 sheet only
    By lunker55 in forum Excel General
    Replies: 4
    Last Post: 02-25-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