+ Reply to Thread
Results 1 to 8 of 8

how to use data validation with a delimited list (or use multiple columns)

  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    how to use data validation with a delimited list (or use multiple columns)

    I have data validation in one of my cells, right now it's a delimited list (meaning 4 digits followed by a comma and then a description, ex "1010, Whittelsey Wood Products").

    but i need to tweak it some. Need to extract just the first four digits so that i can use that in a vlookup function in another cell.

    is that possible?

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,085

    Re: how to use data validation with a delimited list (or use multiple columns)

    Prepare another cell, doing the preparation of the 4 digits of the first cell which has the selection
    - Battle without fear gives no glory - Just try

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: how to use data validation with a delimited list (or use multiple columns)

    what are you looking up with that - numbers or text?

    if numbers...
    =vlookup(--left(your-cell,4),your-range...etc
    if text, leave out the --
    =vlookup(left(your-cell,4),your-range...etc
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: how to use data validation with a delimited list (or use multiple columns)

    what are you looking up with that - numbers or text?

    if numbers...
    =vlookup(--left(your-cell,4),your-range...etc
    if text, leave out the --
    =vlookup(left(your-cell,4),your-range...etc

  5. #5
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to use data validation with a delimited list (or use multiple columns)

    thanks fdibbins,

    this is what i tried (looking for the 4 digit number)
    =VLOOKUP(--LEFT(B10,4),Formulas!P:P,1,FALSE)

    but it didn't work, i get a #N/A in the cell

    as a work around, i put =left(B10,4) in the cell so that get's me where i wanted to go. but still would like to know how to get your solution to work.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: how to use data validation with a delimited list (or use multiple columns)

    what is in your search data?

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  7. #7
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to use data validation with a delimited list (or use multiple columns)

    here is the spreadsheet with the data in the formula's tab. the column that you want is "L".

    note that i had to delete some tabs to be able to upload to this forum
    Attached Images Attached Images
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: how to use data validation with a delimited list (or use multiple columns)

    fixed. the solution was to use the Value command on the last part of the vlookup.

+ 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: 1
    Last Post: 07-16-2014, 06:35 PM
  2. Pull Data from Multiple Columns Based On Data Validation List Selection
    By CHRISOK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2013, 11:41 PM
  3. Replies: 5
    Last Post: 01-31-2013, 01:03 PM
  4. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  5. Replies: 3
    Last Post: 07-20-2012, 09:52 AM
  6. Data Validation throwing me a delimited error
    By ge0rge in forum Excel General
    Replies: 5
    Last Post: 03-25-2009, 01:29 PM
  7. [SOLVED] data validation list from two columns
    By otinky in forum Excel General
    Replies: 1
    Last Post: 03-21-2005, 10: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