+ Reply to Thread
Results 1 to 4 of 4

Substitute a value in a pull down list from a lookup table

  1. #1
    Registered User
    Join Date
    10-10-2014
    Location
    munich, germany
    MS-Off Ver
    2013
    Posts
    2

    Substitute a value in a pull down list from a lookup table

    Hi,

    I have a cell with a pull down list of values (slot_size), this works great because it is a simplified version of the value for the person inputting the data. However, once a value is selected, I need to replace the value with the absolute number IN THE SAME CELL. I have found several functions that can do this in a different cell and I can get that to work I can even put a function "on top" of the data validation and that works; but what I really want is when someone selects the value from the pull down menu the equivalent number is displayed.

    Is that possible?

    i.e.

    slot_size
    32KB 32768

    thx

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Substitute a value in a pull down list from a lookup table

    use match and index

    if A1 is your pull down list

    then in B1
    Please Login or Register  to view this content.
    will give you the position of the data in a database sheet2
    Please Login or Register  to view this content.
    will give you the data 2 cells to the right of the data.

  3. #3
    Registered User
    Join Date
    10-10-2014
    Location
    munich, germany
    MS-Off Ver
    2013
    Posts
    2

    Re: Substitute a value in a pull down list from a lookup table

    Thanks Mehmetcik,

    Yes, this returns the value I want in a different cell, but I would like this value to show up after I select the pull down in the SAME cell. For instance, I am trying to use this function in the data validation formula - but it is not working.

    I would like the user to pull down the slot size values: 16KB, 32KB, etc. but I want the cell to display the value in Bytes (16,384, 32768, etc.)

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Substitute a value in a pull down list from a lookup table

    I haven't been able to find a non VBA solution for this.

    If you are going the vba route then use the change event to match the selected text in a table and then use the offset or the index function to find your display data.

    This works:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 10-11-2014 at 10:09 AM.

+ 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. Replies: 3
    Last Post: 05-19-2014, 02:01 PM
  2. Replies: 2
    Last Post: 07-25-2012, 04:15 PM
  3. [SOLVED] How to use two pull down lists to pull information from a third table
    By RibbleValley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2012, 07:45 AM
  4. Substitute, lookup, isnumber help?
    By mjhaston in forum Excel General
    Replies: 6
    Last Post: 08-10-2011, 01:07 PM
  5. [SOLVED] How do i pull details from a table to appear as a list in excel?
    By GBH99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-29-2005, 06:55 AM

Tags for this Thread

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