+ Reply to Thread
Results 1 to 16 of 16

Drop down list. Entries including numbers and spaces

  1. #1
    Registered User
    Join Date
    03-30-2015
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    7

    Drop down list. Entries including numbers and spaces

    Hi. I'm having problems creating a drop down list with entries containing both numbers and spaces. I know how to use the substitute function for spaces. An example of an entry will be like this: 11 Avvik fra standard. (In Norwegian) Excel 2010 obviously doesn't understand this and creates an error message. Anyone who knows how to fix this problem? Thanks!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces

    Hi there... and welcome to the Excel Forum.

    i don't understand what's wrong. If I understand you correctly, the attached sheet will show that htere's no probem. If I've misunderstood (or even if I haven't misuderstood) can you attach a sample worksheet clearly showing the problem?
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-30-2015
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    7

    Re: Drop down list. Entries including numbers and spaces

    Thanks for you're reply. I'm not too fluent in Excel lingo, so maybe I was a bit unclear. My object is too create a form for bridge inspections. In my department we have a manual that describes each part of a bridge, each cause of damage, each type of damage and so forth in a code hierarchy. For example a cause of damage is described with code 4: Lack of maintenance. This code has several entries like code 44: damage from snow removal. I create lists, and then with data validation and the indirect(substitute function I am able to create drop down list who are dependant on each other. As you can see in shet one in my example. The original lists are in sheet two. These entries does not contain any codes in front of the code description. But in sheet 4 i did exatcly the same thing with the code in front of the description. And now it doesn't work. Any suggestions what to do? It's really important that the form has these codes in it for documentation purposes. Thanks in advance!example.xlsx

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces

    Names can't begin with a number. I have modified it for you. I changed two things - the Data Validation formula in B1 and the names of the named ranges in Ark 2 (e.g. B2:B4)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-30-2015
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    7

    Re: Drop down list. Entries including numbers and spaces

    Thank you so much for you're contribution!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  7. #7
    Registered User
    Join Date
    03-30-2015
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    7

    Re: Drop down list. Entries including numbers and spaces

    Enkelisnpeksjon.xlsx

    Hi. Sorry for asking again, but I encountered another problem. Tried to google but no answers. Now I'm struggeling with another. Now I'm describing different parts of the bridge in a 3 level codehierarchy: The code starts with a letter followed by either one or two numbers. I've created and saved all the lists, so if you know how to get the same result as my last example, i would be really grateful. Thanks and happy easter!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces

    A simple mistake. The named range can't contain spaces - that you knew. However, in the data validation you were removing the space, while the named ranges replaced the space with an underscore. I changedd the DV to substitute a space with an underscore and it seems OK now.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-30-2015
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    7

    Re: Drop down list. Entries including numbers and spaces

    Thank you so much. Really appreciate it. Will check the result after the weekend.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces

    Let me know how it works out...

  11. #11
    Registered User
    Join Date
    03-30-2015
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    7

    Re: Drop down list. Entries including numbers and spaces

    Hi again. In cell B4 everything is fine, but the next "level" in cell C4 is not working. An example: If i choose in A4 "D overbygning", and in B4 "D2 Bjelke", i want to be able to choose from all the options in column N in sheet two.

  12. #12
    Registered User
    Join Date
    04-04-2015
    Location
    -
    MS-Off Ver
    -
    Posts
    5

    Re: Drop down list. Entries including numbers and spaces

    Thanks Glenn!

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces

    That's because I didn't go that far - the original query was about numbers & spaces. I'll take a look.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces

    OK. I tried to change the _C1_Landkar ro C1_Landkar, but it didn't like that (not sure why); so I changes all of the teriary named references to begin with an underscore. Then, the formula in the data validation for the tertiary level had to be amended to put an underscore i at the start, as well as substituting underscores for spaces. The it worked fine, except for the subsidiary list for H4. It wouldn't work because of the hyphen. So, I added another substitute intot he Data Validation formual for the tertiary level and it STILL wouldn't work. Finally, I spotted that someone (you/me: who cares...) had mis-spelled Utstyr in the Named Range. It's fixed now and maybe.... everything is good to go.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    03-30-2015
    Location
    Oslo, Norway
    MS-Off Ver
    2010
    Posts
    7

    Re: Drop down list. Entries including numbers and spaces

    This is really fantastic. The task was maybe i little bit too ambitious for a guy with almost no Excel experience. My brother always tell me you can do everything in Excel, and it seems he's right. The bridges in Oslo, Norway will be a lot safer thanks to you. Thanks again and now i promise no more questions. Have a nice day

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Drop down list. Entries including numbers and spaces




    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Length of drop down list entries
    By BazzaBit in forum Excel General
    Replies: 4
    Last Post: 02-27-2016, 04:02 PM
  2. [SOLVED] Drop-down list without spaces
    By shimaa01234 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 10-26-2014, 01:26 AM
  3. [SOLVED] Not showing Blank Spaces in a Drop Down List
    By Bob Folks in forum Excel General
    Replies: 6
    Last Post: 08-25-2014, 09:11 AM
  4. Copy and paste values without including the drop-down list
    By Utz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2014, 12:14 PM
  5. 'same entries':Drop Down List
    By warburger in forum Excel General
    Replies: 2
    Last Post: 08-05-2006, 02:35 PM

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