+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : Drop menu problem

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    San Diego, ca
    MS-Off Ver
    Excel 2004
    Posts
    9

    Drop menu problem

    My apologies if I missed the threads containing the information I'm looking for.

    In a nutshell, I am trying to have a cell (C1) output a certain value depending on the selections of the drop down menus in cells A1 and B1.

    I have no experience with VB so I would like to avoid it if possible, but I will use it if I must.

    For examples sake I would like my menus to each contain the numbers 1-4 (the easy part) and I would like C1 to output "Greater than", "Less than", or "Equal to".

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Drop menu problem

    Hi Nibiru, welcome to the forum.

    Perhaps this in C1:

    =IF(A1>B1,"Greater than",IF(A1<B1,"Less than","Equal to"))

  3. #3
    Registered User
    Join Date
    08-04-2009
    Location
    San Diego, ca
    MS-Off Ver
    Excel 2004
    Posts
    9

    Re: Drop menu problem

    Okay, now what if I were to want the numbers to be listed as words instead of actual numbers?

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Drop menu problem

    Do you mean "What if the drop downs in A1 and B1 had One, Two, Three, Four, etc., instead of 1, 2, 3, 4?"

    if so, you would need to create a lookup table. In one column you would have One, Two, Three, Four, Five, Six, etc. and in the column next to it you would put 1, 2, 3, 4, 5, 6. You could then use a VLOOKUP in combination with the earlier formula, e.g.

    Please Login or Register  to view this content.
    This example assumes your lookup table is in columns G:H, rows 1:10.

  5. #5
    Registered User
    Join Date
    08-04-2009
    Location
    San Diego, ca
    MS-Off Ver
    Excel 2004
    Posts
    9

    Re: Drop menu problem

    Very interesting.. now, would this apply to other situations involving one cell being manipulated by two others?

    For instance, one list containing "Salsa" and "Eggs" and the other containing "Poptarts" and "Chips". If one were to choose poptarts and salsa the word "Yuck!" would appear in C3, whereas if chips and salsa were chosen "Yum" would appear. Furthermore, if poptarts and eggs were chosen "so-so" would pop up.

    Also, thank you for your warm welcome!
    Last edited by Nibiru; 08-04-2009 at 05:38 PM.

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Drop menu problem

    It certainly could be used in other situations. The exact solution would depend on the two other cells, of course.

  7. #7
    Registered User
    Join Date
    08-04-2009
    Location
    San Diego, ca
    MS-Off Ver
    Excel 2004
    Posts
    9

    Re: Drop menu problem

    How about for the situation I edited in to my last post?

  8. #8
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Drop menu problem

    This is quite off the path of the original question...

    You could use a different lookup method, and your lookup table would need to include every combination possible plus a third column that would indicate "Yuck", "Yum" and "So-so".

    Please Login or Register  to view this content.
    Once that table is established, you could use an array formula like the one shown below:

    =INDEX($I$1:$I$4,MATCH(A3&B3,$G$1:$G$4&$H$1:$H$4,0))

    After typing or editing an array formula, you must press CTRL+SHIFT+ENTER, not just ENTER. When done properly Excel will automatically insert braces around your formula.

    If you have further questions you may want to start a new thread, as your issue is not truly with drop-downs but with formulas acting on them.
    Last edited by Paul; 08-04-2009 at 05:56 PM.

  9. #9
    Registered User
    Join Date
    08-04-2009
    Location
    San Diego, ca
    MS-Off Ver
    Excel 2004
    Posts
    9

    Re: Drop menu problem

    Will do. Thank you for your patience and advice, I really appreciate it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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