+ Reply to Thread
Results 1 to 8 of 8

How to generate a dropdown list that links to other row data?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    16

    How to generate a dropdown list that links to other row data?

    Hi people,

    I am using Excel 07.

    I understand the dropdown list is created using the data validation function and can be dynamically linked using some MATCH and OFFSET formula. I am not too familiar with that.

    How can I create a dropdown list as below when I select Type A, B etc, the corresponding No. and Amount is also shown correctly?

    Type No. Amount.
    A 1 3
    B 2 4
    C 3 5
    D 4 5

    Thank you.
    Last edited by westbay; 11-22-2011 at 02:36 AM.

  2. #2
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: How to generate a dropdown list that links to other row data?

    Perhabs a vlookup would suit you without the need for a dependent drop down list. Look for some post on Vlookup, theres lots on this board. Doing this from my phone so not able to show you a sample at this time but if no one else responds I'll add one later
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How to generate a dropdown list that links to other row data?

    If you want all 3 columns to show in a drop down list:
    create a 4th column =A1&B1&B3 and use that column for the validation list.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  4. #4
    Registered User
    Join Date
    08-05-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: How to generate a dropdown list that links to other row data?

    I managed to dig a thread on this and one forum member came up with this file as attached.

    a) Is there a simpler way than to use the formula below?

    =IF(ISERROR(INDEX(Sheet1!$C$2:$C$7,SMALL(IF(Sheet1!$B$2:$B$7=Sheet2!$A$2,ROW(Sheet1!$B$2:$B$7)),ROW(1:1))-1)),"",INDEX(Sheet1!$C$2:$C$7,SMALL(IF(Sheet1!$B$2:$B$7=Sheet2!$A$2,ROW(Sheet1!$B$2:$B$7)),ROW(1:1))-1))

    b) I also noticed there is a {} when you click on the cell. However it disappears when you double click it. Why so?

    c) What should the formula be, for population, if we stick to the complex formula above?

    Thank you.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How to generate a dropdown list that links to other row data?

    I haven't looked at the file. Just commenting on the {}.

    {} indicates that it's an array formula. Array formulas work on a range of cells instead of just one cell. When you double click, you're editing the formula. You save the changes with a Shift+Ctrl+Enter, not just an Enter.

  6. #6
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: How to generate a dropdown list that links to other row data?

    Here's a file with simpler formulas.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-05-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: How to generate a dropdown list that links to other row data?

    Thank you foxguy for the file.

    If there are additional rows under the same county, how do I update the formula =IF(ROW()-1>$G$1,"",MATCH($A$2,OFFSET(County,N($H1),0),0)) so that I can display all the rows correctly?

    The earlier file provided by you seems to have an error in displaying the additional rows.
    Last edited by westbay; 11-21-2011 at 11:09 PM.

+ 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