+ Reply to Thread
Results 1 to 15 of 15

Drop down list to fill information.

  1. #1
    Registered User
    Join Date
    01-28-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    24

    Drop down list to fill information.

    Hello,

    I have a sheet where I keep contact details, such as Company Name, Contact Person, Email, Phone Number and Address.

    I also have different templates for example for a purchase order. I would like to make a drop down list where I will select the Company name (that exists in my sheets as "contacts") and based on the name of the company, to have all the cells with addresses and phone numbers fill in.

    Is this possible? If yes, could you please give me some hints on how to do it?

    Thank you!

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Drop down list to fill information.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    01-28-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    24

    Re: Drop down list to fill information.

    I have attache the file.

    Thank you for your help. Please let me know if you need more information.
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Drop down list to fill information.

    Here's your sheet back - it's just in the before sheet - try it and let me know:
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-28-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    24

    Re: Drop down list to fill information.

    Quote Originally Posted by xladept View Post
    Here's your sheet back - it's just in the before sheet - try it and let me know:
    It works! This is it!

    Now I just need few days to understand how it works as for now, reading the code did not help.

    I know a bit of coding but not that much, would you suggest anything to help me improve my skills? A website, some example, anything would be appreciated.

    Thank you for your help!

  6. #6
    Valued Forum Contributor
    Join Date
    03-24-2014
    Location
    England
    MS-Off Ver
    Excel 2003 - 2016
    Posts
    575

    Re: Drop down list to fill information.


  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Drop down list to fill information.

    You're welcome and thanks for the rep!


    Here's commented code:

    Please Login or Register  to view this content.
    *The data validation was installed manually

  8. #8
    Registered User
    Join Date
    01-28-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    24

    Re: Drop down list to fill information.

    this is gold! thank you

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Drop down list to fill information.

    You're welcome!

  10. #10
    Registered User
    Join Date
    01-28-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    24

    Re: Drop down list to fill information.

    I tried to add more items in it but it does not work with more data.This code is too much for me to understand.
    It did the trick but now i need more items in it.

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Drop down list to fill information.

    What do you need to add?

  12. #12
    Registered User
    Join Date
    01-28-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    24
    Quote Originally Posted by xladept View Post
    What do you need to add?
    More companies. If I add another company it is not in the list, I would like to add as many as I want and see them in drop down.

  13. #13
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,003

    Re: Drop down list to fill information.

    Hi, brainkill3r

    If your list is big, say more than 50, then I suggest you use a combobox instead of data validation.
    The combobox would be able to search as you type (the list will be narrowed down as you type).
    Here’s an example:
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    01-28-2019
    Location
    London
    MS-Off Ver
    2018
    Posts
    24

    Re: Drop down list to fill information.

    This is good but id does not return values that would be on the on the same row, next to the value from drop down.

    How can I add a command that would return the values from the same row where the one in the drop down is?

  15. #15
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,003

    Re: Drop down list to fill information.

    Ok, try this:

+ 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. Replies: 1
    Last Post: 11-03-2018, 04:26 PM
  2. Information into certain tabs dependent on drop down list
    By Cuffy70 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-21-2015, 06:55 AM
  3. Auto fill information based off of drop down list
    By anorberg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2014, 03:55 PM
  4. Replies: 2
    Last Post: 03-27-2014, 06:10 PM
  5. Information from a drop down list selection
    By Evander in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2013, 03:43 PM
  6. Drop down list - rich information experience
    By kccboy2004 in forum Excel General
    Replies: 3
    Last Post: 05-28-2008, 10:16 AM
  7. many bits of information:Drop Down List
    By travelersway in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-17-2005, 02:05 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