+ Reply to Thread
Results 1 to 5 of 5

conditional value

  1. #1
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    conditional value

    hi i hope you can help, i have a spreadsheet which helps to organise our visits
    it works by grouping client sites acoording to proximity to a rail station (central london and surrounding area)
    i have two columns in the table 1 for selecting the nearest station from a defined drop down list, the 2nd column to assign a group code ie marylebone,baker st,paddigton,marble arch all have code bc, the idea is by selecting bc all sites local to these stations are displayed with other info making our visits more efficient. what i want is that by selecting the station the group code in the next column is automaticallly populated . i was going to use an if statement but it would be very long with 300 stations and the 15 group codes.
    thank you

  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
    Would a dependant list help

    http://www.contextures.com/xlDataVal02.html

    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
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    conditional value

    thank you, but not realy as i want the group value to be entered automatically ie if the bc group is made up of paddington,baker st, marble arch,bond st,queens way,lancaster gate ,notting hill gate an marylebone. if someone selects say paddington as the nearest station to a pecific client site then in the group column bc is automatically entered

    thank you

  4. #4
    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
    Set up a table and do a vlookup

    http://www.contextures.com/xlFunctions02.html

    VBA Noob

  5. #5
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    conditional value

    thank you works well

+ 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