Consulting

Results 1 to 5 of 5

Thread: Solved: Change Values

  1. #1

    Solved: Change Values

    Hi,

    Can anyone help with following

    I have a number of short codes in a drop down list on sheet1 and would like the long code to be displayed on sheet2 in a related cell e.g.

    A1 (sheet1) = Hi (short) on A1 (sheet2) Hello (Long)
    A1 (sheet1) = Lo (Short) on A1 (sheet2) Lollipop (Long)

    Also is it possible to have the dropdown list display all possible values instead of having to scroll down?

    many thanks
    Jon

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Create a table of short and long codes, and use VLOOKUP to lookup the other value.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Ok - managed to create Lookup table.

    Any ideas on the dropdown list extension?

    Also would like to convert a cell containing

    NNNNNNNLN

    in to 14/NNNNNNN-N/L

    where the L & N in the first string are the N/L in the second.

    Again the first string is on sheet1 and the second on sheet2

    any ideas welcome

    thanks again
    Jon

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Blackie50
    Ok - managed to create Lookup table.

    Any ideas on the dropdown list extension?
    If it is data validation, you cannot. If it is a combobox from the Controls toolbar, it is just a property.

    Quote Originally Posted by Blackie50
    Also would like to convert a cell containing

    NNNNNNNLN

    in to 14/NNNNNNN-N/L

    where the L & N in the first string are the N/L in the second.

    Again the first string is on sheet1 and the second on sheet2
    ="14/"&LEFT(Sheet1!A1,8)&"-"&RIGHT(Sheet1!A1,1)&"/"&MID(Sheet1!A1,LEN(Sheet1!A1)-1,1)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    thanks for your help

    Jon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •