+ Reply to Thread
Results 1 to 8 of 8

Two-column-based validation without names

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011
    Posts
    4

    Two-column-based validation without names

    Hi,

    I have searched the web for long for an answer and haven't found one yet.

    Essentially; I have a table with two columns, «*Beer*» and «*brewery*». Every beer occurs once, but breweries many times each.

    On another sheet, I have one cell with a validation list of all of my brewers; what I can't figure out is how to make another cell taht would have a validation list based on the list of beers from that brewer. The list will change with time (by adding beers to the data set), which is why I do not simply make a static list of all the beers per brewer, and why I can't use names to make dependent validation lists since the name ranges will be changing.

    Is there any way to simply make the validation of the Beer name conditional on the name of the brewery being selected, preferably without use of VBA because I'm not quite there yet, technically speaking?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Two-column-based validation without names

    Hello and welcome to the forum

    Please attach a sample book.

    go to --> advanced---> select paper clip icon or manage attachment
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    02-14-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Two-column-based validation without names

    Here is a sample.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Two-column-based validation without names

    go to formula name manager select define name. Give name as listing or whatever you want and in refers to add this formula
    =INDIRECT("BRASSEURS!B"&(1+MATCH(Sheet1!$A2,Table3[Brewer],0))&":"&"B"&(1+MATCH(Sheet1!$A2,Table3[Brewer],0)+COUNTIF(Table3[Brewer],Sheet1!$A2)-1))

    on second sheet in A2 type the name and in b2 add data validation select list and in refers to box add =Listing or the name you have given

    as you are using table so this will be dynamic based on table.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-14-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Two-column-based validation without names

    wow... thanks. This is exactly the functionality I have been looking for. However when I adapt the formulas to my actual workbook I get the wrong beers by brewer.

    On Sheet1 is where I want the validation to be (B3 is validated with Listings)

    My listings formula goes:

    =INDIRECT("DATA!C"&(1+MATCH(DASHBOARD!$B$6,Table3[Brasseurs],0))&":"&"C"&(1+MATCH(DASHBOARD!$B$6,Table3[Brasseurs],0)+COUNTIF(Table3[Brasseurs],DASHBOARD!$B$6)-1))



    Any idea why?
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Two-column-based validation without names

    You have matched in the last table that was Table3 it is supposed to be matched at Table1
    =INDIRECT("DATA!C"&MATCH($B$6,Table1[Brasseur],0)+1&":C"&MATCH($B$6,Table1[Brasseur],0)+1+COUNTIF(Table1[Brasseur],DASHBOARD!$B$6)-1)

    Hope this helps

  7. #7
    Registered User
    Join Date
    02-14-2014
    Location
    Canada
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Two-column-based validation without names

    It worked. Thank you so very very much. I have spent so many hours trying to figure all of this out, your help is much appreciated!

    cheers
    Jonathan

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Two-column-based validation without names

    Glad ! I could help !

    if your query is solved you can mark thread as solved go to thread tools and mark as solved.
    Last edited by hemesh; 02-15-2014 at 12:48 PM.

+ 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. Creating validation list from table column based on data in another column
    By dreamthrum in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-11-2013, 08:38 PM
  2. Replies: 5
    Last Post: 01-13-2012, 03:20 PM
  3. Replies: 2
    Last Post: 03-24-2011, 04:45 AM
  4. Auto-Fill names based on a Validation?
    By aiwnjoo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2010, 01:01 PM
  5. Count the Names in a Column based on another Column
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2009, 02:42 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