+ Reply to Thread
Results 1 to 15 of 15

How to set cell to certain value depending on two data validation dropdowns

  1. #1
    Registered User
    Join Date
    03-31-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    7

    How to set cell to certain value depending on two data validation dropdowns

    ive reached the end of my rope. this is a project for a college engineering class and basically needs to be as "pretty" and as user friendly as possible.
    so heres the scenario.

    i have 2 data validation dropdown lists. the first one is loaded with lets say animals: dogs, cats, birds.
    the second list is loaded with all subcategories of that, allowing for a combination selection if you will... (labs, yorkies, poodles, siamese, tabby, blue jay, robin, crow, etc.)

    counting it up theres more than 64 combination which i hear is the limit for nested statements for a particular cell.

    but what i need is when the user selects a combination like (dog,lab) or (cat,tabby) for a single cell to generate a code, (D-LAB) or (C-TAB)... this code will be used for an index lookup to change the picture located below the two validation lists to what its supposed to be. (lab or tabby etc)

    i finally figured out the pic lookup but i can not for the life of me figure out how to set up outcomes for my very large lists...

    and heres the kicker. i cant use macros or VB. as in not allowed.
    any help is GREATLY appreciated.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to set cell to certain value depending on two data validation dropdowns

    Generating a unique code should be easy enough using concatenation... Assuming that animal is in cell A1 and breed is in cell B1 then the formula to generate a unique code could be = A1 & " : " & B1..
    Your next problem then is to generate a list of all possible permutations of codes... Without VBA, I think you'll have to do it manually ...

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

    Re: How to set cell to certain value depending on two data validation dropdowns

    Hi StJohnny22

    Assuming your data validation lists are set up in A1 & B1, perhaps the following in C1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


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

  4. #4
    Registered User
    Join Date
    01-31-2013
    Location
    Brisbane, Australia. high and dry
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: How to set cell to certain value depending on two data validation dropdowns

    Assuming you dont want "dog" "tabby" then Dynamic Dependent Validation

    http://www.myonlinetraininghub.com/e...ata-validation

    First list gives you "cat", the second list gives you only cats, so the siamese in the second list is the input for Vlookup.

    Using this, I have 363 possibilities in one project.
    Last edited by bungslea; 03-31-2013 at 09:08 AM.

  5. #5
    Registered User
    Join Date
    03-31-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to set cell to certain value depending on two data validation dropdowns

    Thank you for the replies.

    Perhaps I have simplified my situation a little more than I should have.

    There are some values in dropdown2 that are "repeated" as in can be combined with more than one selection from dropdown1. [(Dog tabby) is a possibility]

    I wish it was as easy as concatenation, and that may very well be what I need to do to get the codes to be created.

    My problem still persists where I need one cell to handle the codes thrown at it to be used for the index lookup I have structured for my images.

    To test my image look up I have it basically structured like this:

    =if(and(dropdown1="dog",dropdown2="poodle"),codeCreateCell="d-pood",if(and(dropdown1="dog",dropdown2="tabby"),codeCreateCell="d-tab".))

    And it works. But that just covers 2 pictures. I have 31 pictures to display for any given arrangement.

    Sorry to have been unclear before. I really appreciate all the helpful ideas.

  6. #6
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to set cell to certain value depending on two data validation dropdowns

    Johnny
    Any chance of uploading the file ?
    Elegant Simplicity............. Not Always

  7. #7
    Registered User
    Join Date
    03-31-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to set cell to certain value depending on two data validation dropdowns

    Sure, Im new here- is there an accepted site the forum uses for file sharing or anything? or just whatever gets the job done?

    Edit: Went ahead and made a RapidShare account. here it is. I tried to note whats going on in red text.
    Ignore the Loads page as that has nothing to do with what im doing on the project at the moment.

    The SpecsDropdown and PicLookUp sheets will be hidden when all is done and I would like the calculations or formula crunching done there.
    Thanks again

    HTML Code: 
    Attached Files Attached Files
    Last edited by StJohnny22; 04-01-2013 at 02:11 AM. Reason: Adding Attachement

  8. #8
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to set cell to certain value depending on two data validation dropdowns

    I don't have permission to download from that site :-)...
    To upload here :-
    1.In your reply switch to advanced mode "Go Advanced" @ bottom right of message box
    2.Select the Attachment icon (Paperclip)
    3.Select "Add File"
    4. Select File
    5. Upload it
    6. Finally click the "Inline" button

  9. #9
    Registered User
    Join Date
    03-31-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to set cell to certain value depending on two data validation dropdowns

    alright, thanks for the heads up.

    i'll be on for a good while if theres any questions about it.

  10. #10
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to set cell to certain value depending on two data validation dropdowns

    Ha ha ... Soooo glad your not a vet

  11. #11
    Registered User
    Join Date
    03-31-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to set cell to certain value depending on two data validation dropdowns

    Forgive me for killing the joke, im just a bit confused. How do you mean vet?

  12. #12
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to set cell to certain value depending on two data validation dropdowns

    Sorry, in your early example you used animals to explain the scenario

    Anyway, I think I've just about cracked it. Take a look at sheet 1 of the uploaded file and see what you think

    Attachment 224855

  13. #13
    Registered User
    Join Date
    03-31-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to set cell to certain value depending on two data validation dropdowns

    lol oh gotcha.

    tried to click on the attachement: this is what i received:

    "Invalid Attachment specified. If you followed a valid link, please notify the administrator"

    Possibly needs to be reuploaded?

    Thanks again.

  14. #14
    Registered User
    Join Date
    03-31-2013
    Location
    Louisiana
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to set cell to certain value depending on two data validation dropdowns

    I feel like a moron.

    I ended up making a table on a new sheet with the possibilites of dropdown1 in column A and all the possibilites of dropdown2 in row 1, then filled in all the cross values with the code... then index and match.

    they need to add a *FACEPALM* emoticon.... sorry guys i appreciate all the help anyways.

    and Andy, you da man.

    thanks again.

  15. #15
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to set cell to certain value depending on two data validation dropdowns

    Project3ExcelForumHelp.xlsx


    Sorry about the upload fiasco Johnny...Faux pas at my end

+ 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