+ Reply to Thread
Results 1 to 13 of 13

Add to Data Validation Values From Data Entry Cell

  1. #1
    Registered User
    Join Date
    09-03-2008
    Location
    Kahului, HI
    MS-Off Ver
    365 v.2409
    Posts
    46

    Add to Data Validation Values From Data Entry Cell

    Hopefully this makes sense, but I want to know if there is a way to add to the values of a Data Validation table directly from the cell that is referencing that table, instead of having to manually go to the Data Validation range and add the new values there.

    For example:
    • User enters data into column A
    • All cells in A have drop-down lists referencing TABLE1
    • The available values in TABLE1 are 111, 222, 333, 444
    • Error alerts are turned off, so the user can input their own values if desired

    What I'd like to know, is if the user enters their own value - let's say they put 789 into A5 - is there a way for 789 to be automatically added to the list of values in TABLE1? So when they move down to A6, A7, etc., their drop-down list now has 111, 222, 333, 444, and 789.

    Thanks for any time and assistance given to my request!
    Attached Files Attached Files
    Last edited by Ryusui; 11-02-2024 at 06:19 PM. Reason: Add file

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,122

    Re: Add to Data Validation Values From Data Entry Cell

    That would defeat the very purpose of data validation, which is to control the type of data you entered!

  3. #3
    Registered User
    Join Date
    09-03-2008
    Location
    Kahului, HI
    MS-Off Ver
    365 v.2409
    Posts
    46
    Quote Originally Posted by josephteh View Post
    That would defeat the very purpose of data validation, which is to control the type of data you entered!
    Typically, yes. That would very much be a ridiculous contradiction. The reason I am looking to do this, however - and my apologies for not saying so to begin with to better clarify the purpose - is for my own usage, and not for others for whom I am creating a sheet.

    So to keep it short but informative, I am basically trying to take current "forms" being used by my job and make them more efficient and effective. As an example, one form I use is to log received payments from clients. On that form, there are collumns for their client # in our inventory/billing system, the name that appears on their checks, and their name as it appears in our system. Unfortunately, there is no way for me to export that info, and going through the client database and just copying them onto the form would waste a lot of time as there are many imactive accounts. The idea is to have those fields reference a table so that I could enter in just the client number and the other fields would auto-populate, saving time from having to always type in the other two fields.

    Being that I don't have a quick and/or easy way of getting that info into a table, I need to manually enter that info each day as I get payments from clients until I finally have a working, current client list for the form to reference. I just figured, instead of having to jump back amd forth between the table and the form as I compile the client list, if I had the dropdown fields be able to add to the table from the field would save me from doing double work with each client.

    Hopefully that clarifies why I'm looking for this solution.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    7,999

    Re: Add to Data Validation Values From Data Entry Cell

    It would be easier to help if you could attach a copy of your file so we could see how your data is organized and test possible solutions. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  5. #5
    Registered User
    Join Date
    09-03-2008
    Location
    Kahului, HI
    MS-Off Ver
    365 v.2409
    Posts
    46

    Re: Add to Data Validation Values From Data Entry Cell

    Quote Originally Posted by Mumps1 View Post
    It would be easier to help if you could attach a copy of your file so we could see how your data is organized and test possible solutions. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
    Ahh, sorry. I should have remembered to do this.

    I added the file to the original post. Thank you!

  6. #6
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    832

    Re: Add to Data Validation Values From Data Entry Cell

    Code behind worksheet Summary.
    Please Login or Register  to view this content.
    Kind regards, Harry.

  7. #7
    Registered User
    Join Date
    09-03-2008
    Location
    Kahului, HI
    MS-Off Ver
    365 v.2409
    Posts
    46

    Re: Add to Data Validation Values From Data Entry Cell

    Quote Originally Posted by HSV View Post
    Code behind worksheet Summary.
    Please Login or Register  to view this content.
    That worked perfectly! Thank you!

    One last thing - I am sorry for not clarifying it in my original post, but I'd also like to have the values in Columns C & D also copied over on the Values sheet to their respective columns, B&C.

    I did try to dissect the code and see if I could figure out how to alter it msyelf...but my VBA is still developing, and I couldn't figure it out.

  8. #8
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    832

    Re: Add to Data Validation Values From Data Entry Cell

    Columns C:D contain formulas.

  9. #9
    Registered User
    Join Date
    09-03-2008
    Location
    Kahului, HI
    MS-Off Ver
    365 v.2409
    Posts
    46

    Re: Add to Data Validation Values From Data Entry Cell

    Quote Originally Posted by HSV View Post
    Columns C:D contain formulas.
    Does that mean they can't be copied? If a new value is entered in Column B on SUMMARY, then new values would also be added in both C & D, overwriting the formulas.

  10. #10
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    832

    Re: Add to Data Validation Values From Data Entry Cell

    You create a new customer in column B of Summary for the validationlist,.... That customer comes in sheet 'Values'.
    At that time there is nothing in sheets Values in B:C.

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Prof Plus 2019
    Posts
    6,989

    Re: Add to Data Validation Values From Data Entry Cell

    I created a non foolproof (no personal intent ) solution but since you're the only person working with the file it might work.
    On entering a new value in column B, C & D return zero meaning there's no extra info in CustInfo table.
    After overwriting the formulas in C & D with the new values you need to select the cell in column E next to the new values.
    The new values are added in CustInfo table next to the newly entered customer number and the formulas are restored in C & D column.
    Test it and just let me know if you have any other questions.
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  12. #12
    Registered User
    Join Date
    09-03-2008
    Location
    Kahului, HI
    MS-Off Ver
    365 v.2409
    Posts
    46

    Re: Add to Data Validation Values From Data Entry Cell

    Quote Originally Posted by bakerman2 View Post
    I created a non foolproof (no personal intent ) solution but since you're the only person working with the file it might work.
    On entering a new value in column B, C & D return zero meaning there's no extra info in CustInfo table.
    After overwriting the formulas in C & D with the new values you need to select the cell in column E next to the new values.
    The new values are added in CustInfo table next to the newly entered customer number and the formulas are restored in C & D column.
    Test it and just let me know if you have any other questions.
    Working like a charm! Thank you SO much!

    Oh, and no offense taken. 😁

  13. #13
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Prof Plus 2019
    Posts
    6,989

    Re: Add to Data Validation Values From Data Entry Cell

    You're welcome and thanks for rep+.

+ 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] VBA to Prevent Data Entry in Cell with Data Validation List
    By AliGW in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 03-26-2019, 03:02 PM
  3. Replies: 3
    Last Post: 12-18-2015, 03:16 PM
  4. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  5. Replies: 4
    Last Post: 02-01-2013, 10:18 AM
  6. Cell entry + data validation
    By Sharp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2007, 10:03 AM
  7. [SOLVED] Data Validation / Cell Entry
    By Steve Jones in forum Excel General
    Replies: 4
    Last Post: 03-23-2005, 12:06 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