+ Reply to Thread
Results 1 to 9 of 9

vlookup, drop down, indirect function

  1. #1
    Registered User
    Join Date
    05-01-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    vlookup, drop down, indirect function

    Hello, thanks to member assistance I have almost completed my task. I appreciate your time and guidance.

    I am at the last piece of the puzzle but am stuck.

    I have a workbook with 2 worksheets, Main and Data.
    On the main sheet I would like to enter my customer's account number in column A. From that, I would like vlookup to populate the customer's company name in column B, have Data Validation return a drop down box with contact names related only to that account number which I can pick from in column C, and then have vlookup populate column D and E with the email and phone number of the contact I selected from the drop down.

    The vlookup parts I can do, but I can't get the drop down box to populate. I would like to keep the "Data" worksheet information organized the way it currently is.

    I have attached a sample sheet with the problem. Can someone please help to fix the error of the drop down box, and get it to populate with the correct contact names associated to the company/acct#?

    ContactSamp.xlsx

    Thank you!

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: vlookup, drop down, indirect function

    copy below then go to formulas-> Name Manager---> select New --> give it a name as DROPDOWN in source box paste
    =INDEX(Data!$C$2:$C$13,MATCH(Main!$B2,Data!$B$2:$B$13,0)):INDEX(Data!$C$2:$C$13,MATCH(Main!$B2,Data!$B$2:$B$13))

    then select the range for data validation --> go to data--> data validation--> List in Source box typr =DROPDOWN
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    05-01-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: vlookup, drop down, indirect function

    Thank you, almost working. I'm not sure why, but the drop down is only allowing me to select from the first list of contacts in the data sheet.

    My formula in the name manager is: =INDEX(Data!$D$2:$D$91,MATCH(Main!$A4,Data!$A$2:$A$91,0)):INDEX(Data!$D$2:$D$91,MATCH(Main!$A4,Data!$A$2:$A$91))

    No matter what acct# i enter in columns A4 to A10 of the main sheet, I am only able to select the contacts from whatever is entered into A4. In other words, the first row is working perfectly, but the others are not...

    Also, if I copy the data validation dropdown using a ctrl-c/ctrl-v, it displays all contacts for all accounts no matter what I enter into A5 to A10

    Any idea?

    Thank you.
    Last edited by shingudaze; 05-15-2014 at 04:20 PM.

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: vlookup, drop down, indirect function

    Are you sure formula is same in name manager.
    delete data validation then
    First Select all the cells where you want to apply data validation. Then go to --> data validation and then enter the formula Or else

  5. #5
    Registered User
    Join Date
    05-01-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: vlookup, drop down, indirect function

    Yes, I'm not sure.. I selected all the cells, applied data validation using =DROPDOWN and the formula above =INDEX(Data!$D$2:$D$91,MATCH(Main!$A4,Data!$A$2:$A$91,0)):INDEX(Data!$D$2:$D$91,MATCH(Main!$A4,Data!$A$2:$A$91))

    Again, it works for the very first cell (in my case N4), looking up from A4 and returning the three contacts from that account, but all the other cells N5 to N150 show all contacts. I confirmed that if I choose cell N6 for example, then check name manager, the formula references $A6 correctly as well. I don't understand...

  6. #6
    Registered User
    Join Date
    05-01-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: vlookup, drop down, indirect function

    Here is some more information... I tried to re-enter the formula from the beginning and received an error: "The Source currently evaluates to an error. Do you want to continue?"

    Also, the Excel changed the name manager formula to: =INDEX(Data!$D$2:$D$91,MATCH(Main!$A1048486,Data!$A$2:$A$91,0)):INDEX(Data!$D$2:$D$91,MATCH(Main!$A1048486,Data!$A$2:$A$91))

    Thank you.

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: vlookup, drop down, indirect function

    Ohk, May be you are getting wrong results because of the same. correct the formula and try again or upload a sample book where it is actually happening (remove sensitive information)

    You will find a icon(at the end) in the source tab, where you put the formula, in the name manager . Once you enter the formula click the icon and it will take you to the results if it shows correct results then your formula is correct.
    Last edited by hemesh; 05-16-2014 at 02:50 PM.

  8. #8
    Registered User
    Join Date
    05-01-2014
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: vlookup, drop down, indirect function

    It looks like there was an issue with me trying to get the information from the acct# instead of the company name. So I did things a different way, I recreated my entire pipeline sheet around your original example spreadsheet.

    The reason I wanted to go by acct# instead of company name is that from internal system to internal system around here, the spelling of some of the accounts may change. For example, in one system it a company may be referred to as ABC, INC. but in another it may show as just Advanced BC, Inc. It's a pain, but as I only really need to pull from one report, I have renamed all my accounts to match what the reporting system I use shows, and now it works.

    Thanks again for your help Hemash. I think the takeaway here is for me to get used to the name manager, and the index/match features!

    Have a great weekend.

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: vlookup, drop down, indirect function

    You are welcome and Thanks for the feedback !

+ 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] Huge problem with the INDIRECT function, trying to create dependent drop downs
    By Quillow in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-09-2013, 03:27 PM
  2. Indirect Function - drop down starts at end of list
    By specialfx in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-17-2013, 11:16 AM
  3. Error with Dependant Drop downlist (using INDIRECT function)
    By johnkelly11 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2013, 07:10 AM
  4. Indirect or Vlookup Function
    By Justin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 07:05 PM
  5. Indirect or Vlookup Function
    By Justin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

Tags for this Thread

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