+ Reply to Thread
Results 1 to 3 of 3

Using full names in dropdown list

Hybrid View

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    Nowhere
    Posts
    1

    Using full names in dropdown list

    Hello Everyone,

    I use Excel 2003 on Windows xp

    This is my question:

    I have these 3 Regions (the group name is, Regions) as a dropdown list in I4
    Americas
    AsiaPacificRegion
    EuropeMiddleEastAndAfrica

    I have a dropdown list dependand on this one containing 196 Countries divided over these 3 Regions. currently =INDIRECT(I4) in the cell J4
    What code could do this? (thus a space before every capital letter exept the first of course, and a - between MiddleEast) I really do not know how that works (i do know it is possible) Please explain widely.

    Thank you in Advance
    Last edited by PabloV; 11-03-2008 at 05:04 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    PabloV,

    Welcome to the forum. Please read the forum rules below and then add the link to the other excel forum where you have posted this question

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day PabloV,

    If I've understood you correctly, that you want spacing in the data validation (dropdown box).

    You want the dropdown box to look like this (for example)

    Americas
    Asia & Pacific Region
    Europe, Middle East & Africa

    Your group name is, Regions and the range is Z1:Z3
    Americas
    AsiaPacificRegion
    EuropeMiddleEastAndAfrica

    Put the new look list you want the at Y1:Y3
    
    Col Y                                           Col Z
    Americas                                     Americas
    Asia & Pacific Region                     AsiaPacificRegion
    Europe, Middle East & Africa           EuropeMiddleEastAndAfrica
    
    Now change the cell range of 'Regions' to the new look list (Y1:Y3)
    Then in the data validation at cell J4 change =INDIRECT(I4) to

    =INDIRECT(VLOOKUP(I4,X1:Z3,2,FALSE))

    Remember to enter your cell reference to suit your data layout.

    HTH
    Last edited by ratcat; 11-04-2008 at 08:09 AM. Reason: typo
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create 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