+ Reply to Thread
Results 1 to 4 of 4

Data Valadation : If List A then List 1, If List B then List 2. If list 1, autocomplete

  1. #1
    Registered User
    Join Date
    04-13-2014
    Location
    Skipton, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Data Valadation : If List A then List 1, If List B then List 2. If list 1, autocomplete

    Hi guys!

    Really struggling with this one as far outside my excel experience.

    I'm trying to do a few things here, the first (I hope) is quite simple.

    Problem A
    In one cell I have a list which is just two options you can select, say either 'A' or 'B'. In another cell (based on info drawn from another sheet)I have two lists of about 30 options, with the whole lists named, say list '1' and list '2'.

    What I would like is for the first list selection to determine what options are available in the second list selection. e.g, if A is selected from the list in first cell, the second cell gives the 30 options of list 1, alternateively if B is selected in first cell, then all the options for list 2 are named in the second cell. No idea what to do though, contemplated IF function but can't get it to work!

    Problem B

    Second part relates to this but might be more tricky. In lists 1 & 2, the format is something like this (content isnt important for this purpose):

    List 1:

    Cell A Cell B Cell C Cell D
    Jon Cats Mushrooms Tarmac
    Phil Hairnets Jam Keyrings
    Barry Dogs Fish Table
    This sort of format continues for about 30 lines for each list and is the second sheet on my workbook.

    What I would like is if 'Jon' is selected from List 1 on my first sheet, it will automatically copy the information from the adjacent cells (i.e. cell B, C, D) in my second sheet into certain cells in my first sheet. Make sense? Probably not!

    If you can help with either of these queries it would be much appreciated or if you need more clarity I'll do my best haha.

    Many thanks

    Rick
    Last edited by Phrick; 04-22-2014 at 03:32 PM. Reason: clarity!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Data Valadation : If List A then List 1, If List B then List 2. If list 1, autocomplet

    First problem can be dealt by dependent data validation. See link below

    http://www.contextures.com/xlDataVal02.html

    Second problem will need VBA
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Data Valadation : If List A then List 1, If List B then List 2. If list 1, autocomplet

    Sounds like you are talking about dependent drop downs

    http://www.contextures.com/xlDataVal02.html

    In the attached sheet, I named List 1 "A" and List 2 "B" as per you.
    As per the above site, I put simple A,B data validation into A2 and in B2
    =INDIRECT(A2)
    To get the proper VLOOKUP to work, I created another Defined Name VLOOK
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then in C2
    =VLOOKUP(B2, VLOOK, 2, FALSE)
    In D2
    =VLOOKUP(B2, VLOOK, 3, FALSE)
    Is that what you were looking for?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    04-13-2014
    Location
    Skipton, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Data Valadation : If List A then List 1, If List B then List 2. If list 1, autocomplet

    Cheers guys!

    I searched the net for ages trying to find a solution to first problem and couldnt find anything that seemed to fit my requirement, google falls apart if you don't know what to search for/how to use it haha!

    Thanks for link guys will have a read now.

    ChemistB, I just...I don't...I can't express in words..Thats exactly it, down to a 'T'. Getting this working will save me an astronomical amount of time - you have literally extended my (out of work) life span!!

    Cant thank you enough for this,

    All the best

    Rick

    Cheers

+ 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. Replies: 2
    Last Post: 02-22-2015, 11:40 AM
  2. Replies: 1
    Last Post: 11-05-2013, 12:40 AM
  3. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  4. [SOLVED] Taking a list of tasks and a list of subtasks and creating a new list with groupings
    By kknb0800 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2012, 12:16 PM
  5. Replies: 3
    Last Post: 07-20-2012, 09:52 AM

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