+ Reply to Thread
Results 1 to 13 of 13

Drop down list to retrieve the first column of a range.

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    Knebworth, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Drop down list to retrieve the first column of a range.

    Hi,

    Thought I'd join this forum today to hopefully get some answers to what could be a simple problem that I have been battling with for the last couple of days.

    Here is the scenario. I have a worksheet called mixes with about 6 rows and 23 columns with a header row. One unique record per row.
    I then created a dynamic range and gave it a name, mixesDynamic. If I add more records the range expands as it should. That part looks great.

    Then on another worksheet! the main page I want to add a drop down list to grab the first column from mixesDynamic, which is the mix name. Then when I click on a particular name I need it to populate 23 cells which are not in a single row or column they are in different positions on the page.

    I've been pulling my hair out with this one and I've searched the net and watch loads of YouTube vids but can't quite find what I need. So I thought I'd try here.

    Many thanks in advance.

    Cheers Rob.
    Last edited by RobM_01; 10-18-2011 at 05:55 PM. Reason: Solved by TMShucks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Drop down list to retrieve the first column of a range.

    Sounds like you need VLOOKUP formulae scattered about using the result from the drop down box as the search item and the rest of the mixes "table" as the elements to be returned.

    Easiest way to get an answer is to post a sample workbook.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Drop down list to retrieve the first column of a range.

    Hi RobM_01

    Welcome to the forum ...

    You would do best to post a sample workbook showing your Sheet Layout and perhaps Before and After examples.

    It should clearly illustrate your problem and not contain any sensitive data.

    Here's a link that should also help
    Excel Data Validation -- Create Dependent Lists

    Cheers

    From Forum FAQs

    How do I attach a file to a post?

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'. To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments. You can upload an attachment either from your computer or from another URL by using the appropriate box on this page. Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file. To upload a file from another URL, enter the full URL for the file in the second box on this page. Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window. You can then close the window to return to the new post screen.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Drop down list to retrieve the first column of a range.

    I'd suggest naming the first column of data MixName. You can then use data validation to give you a dropdown using this formula:
    Please Login or Register  to view this content.
    From that point, take a look at VLOOKUP to fill in the data in the remaining cells.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  5. #5
    Registered User
    Join Date
    10-18-2011
    Location
    Knebworth, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drop down list to retrieve the first column of a range.

    Wow they were quick replies, thanks, very much appreciated all.
    I was thinking that it may have something to do with vlookups to solve this. I'll send in the workbook in a few minutes when I log into my PC, as I don't have the workbook here on the iPad.
    The spreadsheet I'm trying to put together is an e-liquid calculator that saves my flavoured mixes where I can recall them back and make adjustments and save again as a new record.

    Started as just a quick project that has become more difficult as I go along.

    Cheers Rob.

  6. #6
    Registered User
    Join Date
    10-18-2011
    Location
    Knebworth, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drop down list to retrieve the first column of a range.

    Ok here is the workbook, the dropdown now works as per suggestion by tlafferty

    The drop down is in K6 as its not obvious until the cell is clicked on. So basically, if I click on a mix name I need it to fill in the boxes with the coresponding values found in the record.

    that was it really.

    Cheers Rob.
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Drop down list to retrieve the first column of a range.

    As an example:

    F9: =VLOOKUP($K$6,mixList!A:W,3,FALSE)


    Regards

  8. #8
    Registered User
    Join Date
    10-18-2011
    Location
    Knebworth, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drop down list to retrieve the first column of a range.

    Quote Originally Posted by TMShucks View Post
    As an example:

    F9: =VLOOKUP($K$6,mixList!A:W,3,FALSE)


    Regards
    I tried this but it didn't work
    =IF($K$6=0,10,VLOOKUP(K$6,mixList!mixDynamic,$C:$C,FALSE)

    I'll just try your suggestion now. Thanks

  9. #9
    Registered User
    Join Date
    10-18-2011
    Location
    Knebworth, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drop down list to retrieve the first column of a range.

    that worked great!!

    could you just explain what this means A:W,3,FALSE

  10. #10
    Registered User
    Join Date
    10-18-2011
    Location
    Knebworth, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drop down list to retrieve the first column of a range.

    actually i just figured it columns A -W 3rd column in

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Drop down list to retrieve the first column of a range.

    Correct ... Search Item, Search range, column to return (from within the range), False (unsorted list)

    Regards

  12. #12
    Registered User
    Join Date
    10-18-2011
    Location
    Knebworth, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Drop down list to retrieve the first column of a range.

    Hi,
    thanks for all your help, it all appears to work fine now. I used the formulars in the macro on the reset button. where it will clear the form and if i select from the drop down it picks up the values just fine, so thats really cool.
    I just need to tidy up a few things to finish it off.

    Cheers Rob.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Drop down list to retrieve the first column of a range.

    You're welcome.

    If this has answered your question, please mark your thread as solved. See my signature for details or the FAQ.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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