+ Reply to Thread
Results 1 to 17 of 17

Drop down menu help

Hybrid View

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    hamilton, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    13

    Drop down menu help

    I want to create a drop down menu in the attached sheet.

    The sheet functions as a tool to input 1 server name and have it update all of the commands that we may need to use for that server. I've named the commands and was hoping to get a drop down menu with the Networker Command name and then have it spit out the proper command in the output.

    I just think it looks a bit cleaner because some of the commands are pretty lengthy.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,447

    Re: Drop down menu help

    Normally, I would close this as a duplicate, but on this occasion I will let it go. I will, however, close the earlier thread.
    Last edited by AliGW; 03-03-2022 at 09:05 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,447

    Re: Drop down menu help

    Are you still using Excel 2007?

  4. #4
    Registered User
    Join Date
    01-20-2014
    Location
    hamilton, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Drop down menu help

    Excel 2013.
    Last edited by AliGW; 03-03-2022 at 09:07 AM. Reason: PLEASE don't quote unnecessarily!

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,447

    Re: Drop down menu help

    Then update your forum profile, please. Thank you.

    I have looked at your workbook again and still have no idea wat you are trying to achieve with the drop-down.

    What EXACTLY are you trying to do? What would the drop-down achieve? You have not illustrated this clearly in the sample, so we need more explanation.
    Last edited by AliGW; 03-03-2022 at 09:10 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Drop down menu help

    For B3 use Data Validation (I forget where it is for Excel 2013, for me it is on the Data Ribbon). On settings change "Allow" to "List" and specify your range of commands. If you have a range of unknown length, it doesn't show blanks after the last entry (not 100% this is true for Excel 2013, but I think so). This will probably look better without blank lines in between.

    Then for B5 use a VLOOKUP from B3 to the same range, e.g. =VLOOKUP(B3,A8:B12,2,0)

    Hope that helps,

    Nick

  7. #7
    Registered User
    Join Date
    01-20-2014
    Location
    hamilton, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Drop down menu help

    Thank you Nick and Ali for all your help. Rep given where I could.

    This can be closed off.
    Last edited by AliGW; 03-03-2022 at 09:27 AM. Reason: PLEASE don't quote unnecessarily!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,447

    Re: Drop down menu help

    If you have a range of unknown length, it doesn't show blanks after the last entry (not 100% this is true for Excel 2013, but I think so)
    That's not true, either in Excel 2013 or Excel 365.

    I am glad you think you know what the OP wants to do here.

  9. #9
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Drop down menu help

    Quote Originally Posted by AliGW View Post
    That's not true, either in Excel 2013 or Excel 365.
    Hmm, it seems we are both sort of right. For 365 at least. I can't test earlier versions.

    Just to ensure we are talking about the same thing, I am referring to the dropdown list created by using the List setting of the Data Validation feature.

    I thought that the behaviour was that it shows in the dropdown list the whole of the defined range until the last value, but does not show blank items after the last value. So for example, you set the List range to A8 to A20, and there are values in cells A8, A10, A12 (as per the example workbook), it will show the first 5 rows in the dropdown menu.

    Having looked at it a bit more, if you enter a value in A16 for example, and then delete it, it still shows the blank rows. Same is true even if you enter a value in B16. I guess it doesn't show them if they are outside the used range of the sheet.

    Quote Originally Posted by AliGW View Post
    I am glad you think you know what the OP wants to do here.
    I thought I knew what the OP was after as have done a very similar thing myself before

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,447

    Re: Drop down menu help

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,447

    Re: Drop down menu help

    I thought that the behaviour was that it shows in the dropdown list the whole of the defined range until the last value, but does not show blank items after the last value.
    No, it has never done that in the whole time I've been using Excel. If you look, you will find hundreds of threads here asking for workarounds for this very issue.

  12. #12
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Drop down menu help

    Well, that's what it does for me. Normally when I use this feature I have the reference list on its own sheet, so that's what I've always observed. I've attached a couple of screenshots, one showing the List settings, the other showing the lack of a scroll bar in the drop down menu.
    Attached Images Attached Images

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,447

    Re: Drop down menu help

    I beg your pardon - something has changed! Last time I tried this (not that long ago), extra blank cells were definitely included in the list. Mmm ...

  14. #14
    Registered User
    Join Date
    01-20-2014
    Location
    hamilton, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Drop down menu help

    Here is the latest command I am getting an error on and I'm not sure why. I am following the same format as before but it's giving this error....


    Command I need with B2 input:

    ="mminfo -avot -q client="&B2&" -r"client ,pool,savetime(22),ssretent,name,level,totalsize(2),ssflags,clflags,sumflags""

    Error: We found a problem with this formula. Try clicking Insert Funct ....

    And then it highlights this section of the formula

    mminfo -avot -q client="&B2&" -r"client ,pool,savetime(22),ssretent,name,level,totalsize(2),ssflags,clflags,sumflags"
    Attached Files Attached Files

  15. #15
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Drop down menu help

    I don't know what code you are trying to create. Does it have a " in it? If not, then you have formatted your string incorrectly, the " after r (in r"client) ends the string, Excel is then expecting to see either a function or an &.

    If you are trying to put in a " then you need to use CHAR(34) instead (and have & either side).

  16. #16
    Registered User
    Join Date
    01-20-2014
    Location
    hamilton, Ontario
    MS-Off Ver
    Excel 2013
    Posts
    13

    Re: Drop down menu help

    Quote Originally Posted by nick.williams View Post
    I don't know what code you are trying to create. Does it have a " in it? If not, then you have formatted your string incorrectly, the " after r (in r"client) ends the string, Excel is then expecting to see either a function or an &.

    If you are trying to put in a " then you need to use CHAR(34) instead (and have & either side).
    I was trying to put in a " so I used double quotes as escape characters.

    Thanks Nick!

  17. #17
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Drop down menu help

    You’re welcome.

+ 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. Pick a drop down menu depending on another drop down menu
    By buhaj47 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2020, 11:38 AM
  2. Resetting a drop down menu by selecting another drop down menu
    By Chris07 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2013, 11:57 AM
  3. Replies: 1
    Last Post: 02-07-2013, 11:03 AM
  4. [SOLVED] I cant work out how to create a drop down menu that relates to another drop down menu
    By louise2613 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-18-2012, 01:49 PM
  5. Replies: 0
    Last Post: 06-25-2012, 03:22 PM
  6. Replies: 2
    Last Post: 01-30-2009, 04:23 PM
  7. [SOLVED] Drop down menu-How do you produce a drop down menu in a single cell in Excel
    By Freddo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-04-2006, 04:35 AM

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