+ Reply to Thread
Results 1 to 5 of 5

Data validation, alpha or numeric characters

  1. #1
    Registered User
    Join Date
    01-10-2006
    Posts
    7

    Data validation, alpha or numeric characters

    I need to enter either the letters "nd" in a cell, or a numeric range of less that 5.0. Can this be done with validation? If not "nd" or <5, then I would like spreadsheet to pop up the "stop" box.

    Please help!!!

    Thanks!!!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    If you only want "nd" or the integers between 1 and 4, inclusive:
    Data>Validation
    Allow: List
    Source: nd,1,2,3,4

    Alternatively, If you only want "nd" or any numeric value less that 5, try this:
    Data>Validation
    Allow: Custom
    Formula: =or(A1="nd",A1<5)

    Does that help?

    Regards,
    Ron

  3. #3
    Max
    Guest

    Re: Data validation, alpha or numeric characters

    One way ..

    Assume inputs would be made in col A, A1 down

    Select col A
    Click Data > Validation
    Select Custom under "Allow"
    Put as the "Formula:"
    =OR(A1<5,A1="nd")
    Click OK

    Test it out ..
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "tsammons" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I need to enter either the letters "nd" in a cell, or a numeric range of
    > less that 5.0. Can this be done with validation? If not "nd" or <5,
    > then I would like spreadsheet to pop up the "stop" box.
    >
    > Please help!!!
    >
    > Thanks!!!
    >
    >
    > --
    > tsammons
    > ------------------------------------------------------------------------
    > tsammons's Profile:

    http://www.excelforum.com/member.php...o&userid=30335
    > View this thread: http://www.excelforum.com/showthread...hreadid=499996
    >




  4. #4
    Registered User
    Join Date
    01-10-2006
    Posts
    7
    Thank you soooo much . . . this worked.

  5. #5
    Max
    Guest

    Re: Data validation, alpha or numeric characters

    You're welcome (from us) !
    Believe Ron arrived fractionally ahead (1 min? <g>),
    and provided a more comprehensive response with 2 options
    --
    Rgds
    Max
    xl 97
    ---
    Singapore, GMT+8
    xdemechanik
    http://savefile.com/projects/236895
    --
    "tsammons" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thank you soooo much . . . this worked.




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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