+ Reply to Thread
Results 1 to 5 of 5

Dynamic generation of list of values in a column based on values selected in another colum

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Dynamic generation of list of values in a column based on values selected in another colum

    Hi,

    I am trying to populate a list of values suppose in columns B1, B2......Bn in sheet Values based on what I select in column A1, A2.......An. The values are given for different sets in the Data sheet. Suppose for name A possible values are x, y, z, similarly for name B possible values are s, t, u, v. In sheet Values I want the A columns as list of selection as well as B columns also as list of selection based on what I select in corresponding A columns. I would prefer simple use of IF-Else, Data Validation etc. rather than writing macro etc. Attached is the file for reference.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Dynamic generation of list of values in a column based on values selected in another c

    Try this in Values B1, copied down and across as needed...
    =IF(A1="","",INDEX(Data!B:B,MATCH(Values!$A1,Data!$A:$A,0)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Dynamic generation of list of values in a column based on values selected in another c

    Hi FDibbins,

    This is not giving list in column B's rather it's simply returning a value. I want to clarify again that I want a list of values in column A's to select (which I can do), but based on value selected in column A's, list of values to select in column B's should be governed.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Dynamic generation of list of values in a column based on values selected in another c

    Created some name manages and used data validation
    see the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Dynamic generation of list of values in a column based on values selected in another c

    Thanks nflsales for help. It solved my problem but a new problem is observed that after change in values seelcted in A's column, previously selected value in B's column is not getting cleared. I know I am asking for additional help but this was observed only after experimenting your suggestion. So, if you can help little more that will be great.

+ 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. Create a list that sums values of selected names in a dynamic range
    By PAexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2014, 11:23 AM
  2. Replies: 1
    Last Post: 05-14-2014, 05:09 PM
  3. Match values in a colum based on criteria from other column
    By lcaseybsa in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-15-2013, 02:04 PM
  4. Macro to sum values in one column based on data in another colum while ignoring blanks
    By The Machinist in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-15-2012, 03:25 PM
  5. [SOLVED] Colum count based ón values In colum a and b
    By 2001jesper in forum Excel General
    Replies: 16
    Last Post: 11-05-2012, 03:28 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