+ Reply to Thread
Results 1 to 4 of 4

Custom Data Validation

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Blackpool
    MS-Off Ver
    Excel 2003
    Posts
    13

    Custom Data Validation

    Hi. Folks.

    Please can you good folks help me with some custom data validation.

    1. I want to be able to enter the numbers 0 to 21 or the letter R in a cell.
    2. I want to be able to enter any whole number or the letter R in a cell.

    Your help is and always has been very much appreciated.
    Looking forward to your answer in anticipation.
    Big Rick.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Data Validation

    1) Assuming the DV cell is C3, use this Custom DV formula:

    =IF(ISNUMBER(C3), AND(C3>=0, C3<=21, MOD(C3,1)=0), C3="R")


    2) Assuming the DV cell is C3, use this Custom DV formula:

    =IF(ISNUMBER(C3), MOD(C3,1)=0, C3="R")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-01-2012
    Location
    Blackpool
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Custom Data Validation

    Hi. Jerry,

    That is truly superb.

    I was beginning to think that this was not possible because I normally get help within a few minutes, while this took many hours.
    Was this straightforward, or did you have to put on your thinking cap.

    Many many thanks.
    Couldn't have done it without you.
    Best regards,
    Big Rick

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Custom Data Validation

    It was straightforward. I'd suggest hours for a response is normal for a Sunday.

+ 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