+ Reply to Thread
Results 1 to 7 of 7

Data validation dropdown list in cell IF...

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Data validation dropdown list in cell IF...

    Hi,

    I have followed tutorials I found using Google in trying to improve how my sheet works but all I can find seems to be working for a horizontal movement between cells and my data runs vertically. I have a list of barcodes, column A sheet "transactions" and next to that, column B a list of item descriptions. Column C is a column for Variants because sometimes an item has the same barcode but is different in some way (for example, there are items of different colour all under the same barcode, so the description is the same but the variant for "yellow", "blue", or "green" is what makes the entry unique for stock counting purposes).

    What I would like to do is make the variant column a dropdown menu, with relevant selections for the barcode that is scanned into column A of sheet "sales". This would mean that when a barcode is scanned that contains no variants, there are either no options in the dropdown, or there is no dropdown menu available but when there are variants available for that code, the dropdown menu shows only options that are relevant to that barcode.

    I'm flexible with my database at this point, so if the solution requires that all non-variant cells be empty for example, I can arrange that but at the moment a product without a variant contains a 0 in the variant column.

    -Jay
    IF("helping me", "thanks", "need more detail?")

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Data validation dropdown list in cell IF...

    How many different barcodes/barcode groups you have? If you have hundreds of different barcodes/barcode groups that would mean that you would need hundreds of barcode specific drop down lists that contain variants applicable only to those certain barcodes.

  3. #3
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Data validation dropdown list in cell IF...

    Hi Bmouse.

    There are hundreds of barcodes and the list will only ever increase in size really. I have considered lots of different ways to accomplish this effect.

    In essence the validation needs to look at the barcode and pick out all the possible variants for that code, then populate a dropdown list with them.

    In the various tutorial pages i went to, there was only ever a description of how to get multiple dropdown menus that were dependant on cell entry but they weren't exactly what I would need as they don't ever change the list of results based on the value of the cell that they look at.

  4. #4
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Data validation dropdown list in cell IF...

    I'm no expert, but right now it seems to me that there is no easy/managable way out to accomplish this task. No matter how you look at it you would need to manually create many barcode groups to specify which barcodes apply to that group and then create a specific drop down list for each barcode group. Loads of data and loads of work to create that data.

    For example barcodes for chairs, sofas, tables would go in a barcode group called "Furniture" and there would be a drop down list with all possible variants for furniture, etc.

  5. #5
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Data validation dropdown list in cell IF...

    I tend to agree bmouse. I don't think i can easily do what I described above without some massive effort. However,

    just reading back to myself what the problem is I think i have come up with a method.

    I would find a blank space on the worksheet and in one cell put a simple link to the column B cell eg, "=B9". then in column C I would use a formula to lookup all unique variants that are listed alongside that code. I've done a "list unique" type formula before.

    From there, I would make a data validation list using the unique values list that is created each time the value in colB changes and presto! I have a dropdown in column C that changes depending on which barcode I have selected! The macro that processes the sales won't care where that data is found, all it cares about is whether the variant name exists so that it knows where to deduct stock from after a sale - which it would because the variant dropdown and the stock sheet are sourcing from the same list!

    I'm going to give this method a try later and see if there are any pitfalls that make it impractical to use as my solution

  6. #6
    Forum Contributor
    Join Date
    08-23-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    139

    Re: Data validation dropdown list in cell IF...

    I tend to agree bmouse. I don't think i can easily do what I described above without some massive effort. However,

    just reading back to myself what the problem is I think i have come up with a method.

    I would find a blank space on the worksheet and in one cell put a simple link to the column B cell eg, "=B9". then in column C I would use a formula to lookup all unique variants that are listed alongside that code. I've done a "list unique" type formula before.

    From there, I would make a data validation list using the unique values list that is created each time the value in colB changes and presto! I have a dropdown in column C that changes depending on which barcode I have selected! The macro that processes the sales won't care where that data is found, all it cares about is whether the variant name exists so that it knows where to deduct stock from after a sale - which it would because the variant dropdown and the stock sheet are sourcing from the same list!

    I'm going to give this method a try later and see if there are any pitfalls that make it impractical to use as my solution

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data validation dropdown list in cell IF...

    Here is a simple table that allows you to enter barcodes as column titles and the variants to be added under each code. As codes are added to the title row of the table, they are automatically added to the drop down listing with codes and the variants are added to the drop down list associated with the barcode.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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: 8
    Last Post: 06-25-2014, 01:08 PM
  2. Dropdown List/Data Validation
    By ScabbyDog in forum Excel General
    Replies: 7
    Last Post: 03-14-2013, 08:01 AM
  3. Unique list of records dropdown in Data Validation list
    By sghosh12 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-13-2013, 08:27 AM
  4. [SOLVED] Data Validation dropdown list
    By grumpyguppy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2012, 01:54 AM
  5. Replies: 1
    Last Post: 10-11-2010, 06:19 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