+ Reply to Thread
Results 1 to 4 of 4

Control data entry formats

  1. #1
    Registered User
    Join Date
    02-01-2017
    Location
    Lisboa
    MS-Off Ver
    2010
    Posts
    81

    Control data entry formats

    Hello,

    I need tto control data entry in a Excel workbook but I still can not find any solution to this problem.

    I have a column "A" where the users need to fill out with ID numbers, but the ID numbers must be only from 1 to 99 or the word "Out", in some cases the ID correspond to a period and in this situations the first digit and the last digit need to be separate with a "-" (example: 1-20 or 92-99),

    I attached the file with the example.

    Any suggestions would be greatly appreciated!
    Thank you in advanced.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by PaulaGon; 11-27-2018 at 11:13 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Control data entry formats

    One way, using this as the Data Validation formula (applied to yellow cells):

    =(OR(IFERROR(AND(ISNUMBER(--A2),--A2<100,--A2<>0),FALSE),IFERROR(A2="Out",FALSE),IFERROR(AND(--LEFT(A2,SEARCH("-",A2)-1)<100,--RIGHT(A2,SEARCH("-",A2)-1)<100),FALSE))=TRUE)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-01-2017
    Location
    Lisboa
    MS-Off Ver
    2010
    Posts
    81

    Re: Control data entry formats

    Hello Glenn,

    Your solution is fantastic it works perfectly. Exactly the solution i need.

    Thank you a lot for the quick response and for the help you had given me to improve my worksheet!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Control data entry formats

    You're welcome and thanks for the rep.

+ 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. [SOLVED] Code to control data entry in Combo-box situated in userform
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-05-2015, 10:15 AM
  2. Help with a worksheet control to govern column data entry ...
    By NikonMan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2013, 07:48 PM
  3. Cell Formats Using Spreadsheet Control in a Form
    By lee.lee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 10:23 AM
  4. Control Panel - Date Formats
    By Cecil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-20-2008, 07:34 PM
  5. Changing entry and formats on referenced cells.
    By luvmath03 in forum Excel General
    Replies: 0
    Last Post: 05-03-2007, 11:33 AM
  6. Replies: 0
    Last Post: 01-21-2006, 11:10 AM
  7. [SOLVED] excel limit data entry range, control cursor movement to 2 cols
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2005, 01:05 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