+ Reply to Thread
Results 1 to 4 of 4

data validation in a cell in excel

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    3

    data validation in a cell in excel

    hi friends

    i wish to validate the cell B3 value as below

    1. the cell B2 should not be blank
    2. the values in B3 should be validated with a list located in another sheet (for example the list name is "PRODUCTS"

    Pls any one help me to incorporate both the validations

    thanks and regards

    ashok

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,758

    Re: data validation in a cell in excel

    We need some more information.

    For validating B2, the cell will start out as blank. The user may never touch it, and it will stay blank. Therefore Data Validation may not work, since it only evaluates the cell when it changes. At what point do you want to evaluate it to ensure that it is not blank?

    Is "PRODUCTS" a named range? If so then you can simply use Data Validation with a Dropdown List, and specify =PRODUCTS as the list.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-08-2012
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: data validation in a cell in excel

    thank you 6StringJazzer for your kind reply

    this is for writing into the column B. for B2 the validation would be only the named range products. it is simple, =PRODUCTS as the list will do.
    but from B3,B4 and so on, there should not be a blank in between. for this i would like to add an other criteria that the cell above the current cell is not blank

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,758

    Re: data validation in a cell in excel

    OK, I was not clear on your complete requirements.

    You cannot have a dropdown list and combine other validation criteria with it in the same cell. You can, however, ensure that what the user types in is a member of the list and combine that with your other requirement.

    You would do data validation with a custom formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Uncheck the "Ignore Blanks" checkbox.

+ 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] VBA to Prevent Data Entry in Cell with Data Validation List - Two Criteria Validation
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-25-2019, 11:48 AM
  2. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  3. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  4. excel formula working on a cell which is having data in a data validation cell
    By sujithy007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2013, 04:18 AM
  5. excel formula working on a cell which is having data in a data validation cell
    By sujithy007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 04:05 AM
  6. Excel cell data validation
    By hari_infotech in forum Excel General
    Replies: 3
    Last Post: 11-19-2012, 09:59 AM
  7. Excel data validation and cell dependency
    By amil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2007, 02:18 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