+ Reply to Thread
Results 1 to 2 of 2

Validation - List value or any number

  1. #1
    Registered User
    Join Date
    01-03-2005
    Posts
    35

    Validation - List value or any number

    Is there any way to add data validation that will accept either:
    - string values from a drop down list
    or
    - any number

    so for example, the user can either enter:
    S
    M
    L
    XL
    or any numerical measurement

    So I need them to be able to select the strings from a drop down list, or they can free type a number
    Last edited by grey; 10-12-2009 at 08:13 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446

    Re: Validation - List value or any number

    Hi,

    I don't think that you can have a list or optional free-entry. However,

    using the custom option in data validation, use the following formula

    =OR($A1="S",$A1="M",$A1="L",$A1="XL",ISNUMBER($A1))

    Note that A1 must reside at the top of the validated list.
    Last edited by sweep; 10-12-2009 at 08:39 AM.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

+ 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