+ Reply to Thread
Results 1 to 7 of 7

Dropdown list with multiple conditions...

  1. #1
    Registered User
    Join Date
    03-20-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Dropdown list with multiple conditions...

    Hi there,

    Sheet A: I have a database of samples which are all uniquely coded in column A. In column B it describes an integer for which box (IRL) the samples are stored in. In column C I have a Yes/No for whether the samples have been processed or not.
    Sheet B: I have a summary of what IDs are in each box. so a row describes a box number and then a range of values for the IDs. I have been able to figure out how to get it to tell me the NUMBER of samples which have been processed (ie yes/no). I also need a dropdown menu that gives me the list of IDs (Sheet A) that meet the conditions of box (x) and processed no.

    I also would like this to live update so that when I go into Sheet A and say that I have processed this sample, it will automatically shorten the list in the dropdown menu.


    Any ideas? Please be gentle, I'm not a very experienced excel user...
    Also, I am using Excel 2010.

    Thank you!

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Dropdown list with multiple conditions...

    I think an example workbook would be very helpful for us here...
    If I've been of help, please hit the star

  3. #3
    Registered User
    Join Date
    03-20-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dropdown list with multiple conditions...

    Ahh, right. Sorry I thought my description would make sense.

    Here is an example worksheet...

    Yes, this one is generated on a different version of excel, but I will be doing the real work on the version I described above.


    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Dropdown list with multiple conditions...

    Hi skadieverwinter

    Not a drop down list. If I get the gist of what you mean!
    Return the ID if it meets the following: Box: Value. Contains: Between (6101-6135) etc. Complete: "No"
    In C2 on the Boxes sheet, copy across and down:

    For Excel 2010:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For Excel 2007<
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Array formula: CTRL + SHIFT + ENTER
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  5. #5
    Registered User
    Join Date
    03-20-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dropdown list with multiple conditions...

    Hi Kevin,

    I tried the formula in the example sheet, but it only shows me the one ID, but I need all the IDs listed that meet those criteria, and I don't want static cell references because I want to be able to add columns or sort the data... Also, from your explanation above it sounds like you wrote some conditions of being between certain ID numbers, which would be unnecessary because that should be covered by the box number criterion.

    Sorry, I don't really understand the code you sent either, what do the "15,6,ROW" etc bits mean? I need to be able to translate what was designed for the sample spreadsheet for my actual dataset. Sorry, I am really very new to programming anything in excel so I am very stupid at it, so far.

    Thank you.

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Dropdown list with multiple conditions...

    Hi skadieverwinter

    As I said in post #4
    In C2 on the Boxes sheet, copy across and down:
    Put the formula in cell C2 (INDEX/AGGREGATE) and enter. Hover your mouse over the bottom right hand side of that cell untill the "+" appears, click and drag across (lets say column T), let go. Then click again and drag down 3 rows.

  7. #7
    Registered User
    Join Date
    03-20-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Dropdown list with multiple conditions...

    Hi Kevin,

    Right okay that makes more sense. Sorry, I didn't realise that you'd done it so it listed the ids along the rows.
    However, this is still kinda inviable because in my real dataset I actually have two separate categories (which need to be kept on the same line) for which I want lists of IDs for and they are all varying number (between 80 and 2 IDs)... Hence, why I needed a dropdown menu...

    From what I can gather so far, drop down menus require a new worksheet to source the list from. Could I use your code and put each category (same logic used for each, but accounting for different processes) on a separate line in there (thus not obscuring the boxes database set), and then make drop-downs from that?

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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