+ Reply to Thread
Results 1 to 8 of 8

Data Validation question

  1. #1
    Forum Contributor
    Join Date
    02-17-2005
    Location
    Wokingham
    MS-Off Ver
    365
    Posts
    111

    Data Validation question

    Hi All

    I use data validation list control to populate fields on a form, this works great.

    If the customer isn't within the list I wish to add new content and I don't know how to do this?

    Can you help me please?

    Thanks
    Steven811

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation question

    Select a cell with the data validation. Click on the Data tab, Data Validation. List should be selected and in the source field there is either a list of values separated by commas or there is an equation referring to a list. If and equation, it could refer to a range of cells that contain the values or it could refer to a Defined Name that contains an equation or a range of cells with the values.

    If the Source field has a list separated by commas, add the value(s) that you require. If the Source Field has an equation, go to the list referenced by the equation and add the value(s) and then change the cell references in the equation in Data Validation. If the equation refers to a Defined Name, go to the Name Manager, find the name and make the changes to the range in the formula defining the name after adding the value(s) to the list of values for the data validation.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Contributor
    Join Date
    02-17-2005
    Location
    Wokingham
    MS-Off Ver
    365
    Posts
    111

    Re: Data Validation question

    Hi newdoverman

    The data comes from a list on another worksheet within the same workbook. The list is connected via ODBC to our accounts package called Sage. It is this data that populates the fields to make it easier for the sales dept to complete the info for existing customers. What I wish to do is add new customer records. I imagined that I could add a button that cleared the fields and allowed the addition of the new record.

    Obviously the data validation rules step in to disallow the addition of new records.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation question

    The list used for data validation can be made to be dynamic so that new entries on the list will automatically be included in the data validation.

    Here is a very simple example of a dynamic data validation list on Sheet2 and the Drop Down listing is in Sheet1!A1. The formula used for the data validation is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Maybe you can adapt this idea to your actual situation substituting the OFFSET addresses in the formula with the reality of your workbook.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-17-2005
    Location
    Wokingham
    MS-Off Ver
    365
    Posts
    111

    Re: Data Validation question

    Hi newdoverman

    Sorry, I can't quite grasp what happens.

    On the example spreadsheet I can't see the data validation or where the formula works.

    I've enclosed the spreadsheet that we use.

    Data validation is used in customer acc ref field "info"D2 and the source is the "customers" worksheet.

    Thanks again for helping.
    Attached Files Attached Files

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation question

    I gave the table column an easy name to remember CUSTOMERS and changed the reference for the drop down Data validation list to =Customers. This will give you a dynamic listing of the first column of the large table that you have on the customers worksheet. Any customers that you add or subtract to/from the list will automatically be included or deleted.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-17-2005
    Location
    Wokingham
    MS-Off Ver
    365
    Posts
    111

    Re: Data Validation question

    Hi newdoverman

    Thank you, that works.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation question

    Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Question about Data Validation
    By Captainmarkie in forum Excel General
    Replies: 3
    Last Post: 05-06-2015, 11:58 AM
  2. Data Validation Question
    By Bizquick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2011, 12:12 PM
  3. Data Validation Question
    By Jorjor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-07-2010, 11:14 PM
  4. XLS data validation question
    By tirvin in forum Excel General
    Replies: 6
    Last Post: 03-11-2010, 11:17 AM
  5. Data Validation Question
    By Joe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2006, 02:10 PM
  6. Data>Validation Question
    By Weave in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-12-2005, 04:10 PM
  7. data validation Plus question
    By FDDavis in forum Excel General
    Replies: 0
    Last Post: 03-30-2005, 02:22 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