+ Reply to Thread
Results 1 to 2 of 2

Validated List Entry But Only Return/Make Visible Part of the String Result?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Cali
    MS-Off Ver
    Excel 365
    Posts
    64

    Validated List Entry But Only Return/Make Visible Part of the String Result?

    I have a validated list of employee names and ID numbers. Because of the way the existing form I'm trying to update is formatted, I need to pull the ID # into column A and the Name in column B. In order to have a searchable validated list that goes by name or #, I would like to have the validated list main column be "FirstName LastName - #####-###" which is first name last name and 8 digit employee ID. I would like this list to be the validate result in column B in my form, however column B in the form is just employee name so I would like the returned result to NOT make the ID string part of the result visible, just the name. column A will then return the ID based on a lookup back to the table (it could also be validated in column A where he ID shows and the name does not).

    The reason for this is so that the user can start searching to pull up an employee by either ID or name in case one or the other is known.

    Is there any way to make this happen without VBA? I'm thinking maybe not at this point. In a perfect world excel needs to add some functionality where you can have 2 or more fields that otherwise would have a key field and lookup fields, but you can enter in any of the 2 or more fields and the others dynamically populate based on the one you entered (and it would need to live update if you entered a new value in one of the fields by changing the others).

    Thanks,

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,162

    Re: Validated List Entry But Only Return/Make Visible Part of the String Result?

    I think this requires VBA. Someone may have a creative idea that I'm not aware of.

    The reason I say this is that the dropdown list for data validation contains a list of values. The value you select will be entered into the cell, exactly as seen in the list (except when you are selecting a numeric value with a different format than what the destination cell is set for). What you want to do requires VBA to modify the selection after the user selects it to truncate the ID number. It's not complicated to do, but I strongly suggest you attach a file with sample data for development and testing.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. [SOLVED] How to pass VLOOKUP with more than one result passed to validated drop list.
    By gedkins in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-27-2023, 12:16 PM
  2. [SOLVED] Match value in text string to list and return result based on date
    By Dan_B in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-24-2020, 09:23 AM
  3. Replies: 2
    Last Post: 02-28-2014, 06:42 PM
  4. Replies: 0
    Last Post: 04-30-2012, 12:59 PM
  5. Make text visible when entry made in another cell
    By lilraskle in forum Excel General
    Replies: 1
    Last Post: 01-27-2011, 01:19 PM
  6. enter text, return a validated list
    By shivs69 in forum Excel General
    Replies: 3
    Last Post: 07-27-2010, 10:53 AM
  7. To make sure only the Validated list can be put in the drop down b
    By Belmeera Pinto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2005, 09:06 AM

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