+ Reply to Thread
Results 1 to 4 of 4

how to custom validate specific numbers in a range of cells in excel 2007

  1. #1
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    how to custom validate specific numbers in a range of cells in excel 2007

    Hi,
    For eg, if i want to ,say a1 to d11 to contain specific numbers , then these cells should allow. Otherwise, it shows validation error messages.
    Say, the numbers, that it should accept are 0,2,4,5,Na. Otherwise it should give the error message.I tried the custom format, but how could i make excel to accept specific numbers in so that it accept only the above mentioned numbers

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: how to custom validate specific numbers in a range of cells in excel 2007

    hi rajuj. select the cells you want the validation applied to (say fromA1:D11). go to Data -> Data Validation -> Allow: Custom -> Formula:
    =AND(OR(A1=0,A1=2,A1=4,A1=5,A1="Na"),A1<>"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how to custom validate specific numbers in a range of cells in excel 2007

    allow /list/ 0,2,4,5,na and uncheck the incell dropdown may be
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: how to custom validate specific numbers in a range of cells in excel 2007

    Hi, Thank you benishriyo,
    perfect, answer

+ 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. How i can validate TextBox value with specific Sheet Range
    By Reemet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2013, 07:17 AM
  2. Selecting, Moving Specific Numbers in Excel 2007
    By acharbonneau in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2012, 11:02 AM
  3. Replies: 3
    Last Post: 02-13-2012, 04:43 AM
  4. [SOLVED] Excel 2007 : Comparing a row of numbers to a range of numbers
    By egavasrg in forum Excel General
    Replies: 1
    Last Post: 08-19-2011, 09:55 PM
  5. Replies: 15
    Last Post: 10-11-2009, 11:46 AM

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