+ Reply to Thread
Results 1 to 10 of 10

Based on two cells data validation list should be populated in third cell with unique vals

  1. #1
    Forum Contributor
    Join Date
    06-04-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    108

    Cool Based on two cells data validation list should be populated in third cell with unique vals

    Hi,

    In cell H5 there is list of dates and in H7 there is codex, based on these two conditions in H11 a data validation list should be populated from the code_sheet using column B. The populated list should be unique entries, as the column B in code_sheet has duplicates.

    My apology, if posted this and seeking help in a wrong place.

    Searched much, found something, but I was unable to make what i need from the searched codes / formulas.

    Please do needful.
    Also posted on.. http://www.ozgrid.com/forum/showthread.php?t=187749

    Thanks & Regards
    Chaitanya
    Attached Files Attached Files
    Last edited by anchuri_chaitanya; 04-23-2014 at 03:58 AM. Reason: as per rule added the link posted on another forum
    Thanks & Regards
    Chaitanya A

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Based on two cells data validation list should be populated in third cell with unique

    Hi,

    I used a Pivot Table to get a unique range of the code_sheet (B column)
    The I created a dynamic range name of the data in the pivot to compensate for the shortening/lengthening of the list entries
    Then I linked the validation rule to the Dynamic range name.

    See sample file attached...
    Attached Files Attached Files
    Regards,
    Rudi

  3. #3
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Re: Based on two cells data validation list should be populated in third cell with unique

    I have written a macro:
    1. When you select a Date in H5: A unique list of CODEX will be shown in H7 (Criterion Date)
    2. When you select a Codex in H7: A unique list of LOG IN will be shown in H11 (Criteria: Date & Codex)

    The code can be written more compact because 3 subroutines are alomst the same. I think it works anyway.

    UniqueDataInLists.xlsm
    1. Reply to thread and inform if suggestion was helpful or not
    2. Click on the star (=Add Reputation) if you think someone helped you
    3. Mark [SOLVED] to this thread if solution was found. (On Menu "Thread Tools" > "Mark this thread as solved")

  4. #4
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Re: Based on two cells data validation list should be populated in third cell with unique

    I forgotten to load list of unique dates. Occurs at Workbook_Open()

    UniqueDataInLists.xlsm

  5. #5
    Forum Contributor
    Join Date
    06-04-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Based on two cells data validation list should be populated in third cell with unique

    Hi Joakim,

    Its great working. thanks for the needful.
    But, a small error which is occurring when i was trying to append data in the code_sheet to the existing data with the changes in dates column. It is not accepting if the dates were changed.
    Also, there is a slight change in the requirement. Please find the attached format for to understand the change.
    I know that the change in requirement will be irritating one, but, thought to ask.
    Thanks & Regards
    Chaitanya
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    06-04-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Based on two cells data validation list should be populated in third cell with unique

    Hi RudiS,

    Your solution is so cool. But, if I paste manually one Codex on H7 in Code_Template, then the corresponding Log values only should be populate.
    It is giving all the Log values in the column regardless of the Codex. Could you please look in.

    thanks & regards
    Chaitanya

  7. #7
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Re: Based on two cells data validation list should be populated in third cell with unique

    Now the list of dates updates automical when you add dates in code_sheet.

    I don't think I understand your desire above with "Range". I thought that all data should be shown in list just no duplicates. I am afraid you have to explain with an example or similar.

    UniqueDataInLists.xlsm

  8. #8
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Based on two cells data validation list should be populated in third cell with unique

    The drop down values will now only show the categories based on H7...
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    06-04-2011
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Based on two cells data validation list should be populated in third cell with unique

    Hi Joakim and RudiS,

    Its been long time I didn't logged in. My apology for the delay in replying.
    Both your solutions were working great! I modified accordingly to what I required/needed for the completion of my template using your codes or the techniques. Both codes/techniques helped me a lot to finish the task.

    Thanks & Regards
    Chaitanya

  10. #10
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Based on two cells data validation list should be populated in third cell with unique

    Excellent. Glad to hear the solutions are working well for you.

+ 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. Updating cells based on selection from drop down list data validation
    By excelstun in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-18-2016, 05:11 PM
  2. [SOLVED] data validation to limit amount of cell being populated in column A
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:14 PM
  3. [SOLVED] Sum Cells based on data validation list output
    By gavask in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2013, 03:34 PM
  4. [SOLVED] Updating cells based on selection from drop down list data validation
    By jingles9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2013, 02:57 PM
  5. Updating cells based on data validation list
    By benlawton in forum Excel General
    Replies: 10
    Last Post: 05-15-2009, 07:27 PM

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