+ Reply to Thread
Results 1 to 13 of 13

Data Validation with VLookUp

Hybrid View

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    East Hanover
    MS-Off Ver
    7
    Posts
    6

    Data Validation with VLookUp

    Hello - I have the following sitation:

    xls Sheet 2
    ITEM EQUIPMENT
    1234 a
    1234 b
    5678 c
    5678 d

    xls Sheet 1
    PO ITEM EQUIPMENT
    56 1234 **
    99 5678 **

    ** in the equipment cell of sheeet 1 I want a drop down (data validation) with the possible equipment I can use forthis item only. I.e. for PO 56 Item 1234 only the equipment a & b should be in the drop down menu.

    Could somebody pls help me.

    Thanks.

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Data Validation with VLookUp

    It will likely require an additional reference sheet to assist you.

    I could give you some more specific guidance, but here's a website that explains it in more detail than I'd be able to:

    http://tim.webanalyticsdemystified.com/?p=1302
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Registered User
    Join Date
    07-18-2014
    Location
    East Hanover
    MS-Off Ver
    7
    Posts
    6

    Re: Data Validation with VLookUp

    See enclosed example in xls.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Data Validation with VLookUp

    I think this is what you are looking for. It will only work if the list on sheet 2 has all similar items next to each other as you have shown here. Easy to do with a sort if not already this way.
    Attached Files Attached Files
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  5. #5
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Data Validation with VLookUp

    See attached
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-18-2014
    Location
    East Hanover
    MS-Off Ver
    7
    Posts
    6

    Re: Data Validation with VLookUp

    Excactly. Both solutions are perfect.
    Hawkeye's is the more suitable for me because my Equipment list is top-down. Or may be the same can be done with Miraun's solution ?
    Could you pls explain me in details how you did that ?

    Thanks.

  7. #7
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Data Validation with VLookUp

    We both used similar OFFSET formulas. Mine will be more robust as miraun assumes there is always 3 options exactly where mine will count the number of options and present them no matter the number (>0 obviously).

    I put my offset formula right into the data validation formula while miraun created a defined name in the name manager with the formula and referenced it in the data validation.

    The offset formula takes a target cell and you can specify a row offset, column offset, number of rows and number of columns (resulting in a possible array of values).

    I started with an anchor cell and then found the row to start with using a Match function. I then also found the number of options (number of rows in the array) using a Countif function.

    Miraun rearranged your data so they used a Match function to find the column offset.
    Last edited by Hawkeye16; 07-18-2014 at 11:06 AM.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation with VLookUp

    Here is a solution that uses a table for all your data - Item and associated Equipment. You can add items just by adding a column to the table and under the heading enter the items that apply and the Data Validation is automatically updated.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Registered User
    Join Date
    07-18-2014
    Location
    East Hanover
    MS-Off Ver
    7
    Posts
    6

    Re: Data Validation with VLookUp

    First of all many thanks for the solutions. Just realized that I have a another file with a different setup. Basically the same logic but the equipment name (A, B, C etc) in the Data Validation is defined by a Y in Sheet 2. See enclosed

    Is there a similar solution ? In advance thanks for your help.
    Attached Files Attached Files

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation with VLookUp

    This shows the value of the table solution that I gave you. Just add the 1010 in the heading area like I did and the values under it.
    Attached Files Attached Files

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation with VLookUp

    All I did was to add the column 1010 just by typing 1010 in the next column to the table and then entered the values for 1010 under it. The 1010 was added to the drop down for the Item, and was also added to the equipment drop down...automatically.

  12. #12
    Registered User
    Join Date
    07-18-2014
    Location
    East Hanover
    MS-Off Ver
    7
    Posts
    6

    Re: Data Validation with VLookUp

    Thanks Newdoverman - I tried to apply your formulas, but struggled to follow in my file. I have enclosed again an updated filed. Would you mind to do the formulas again in this file and explain me how you did. Appologize for the confusion. Thanks.
    Attached Files Attached Files

  13. #13
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data Validation with VLookUp

    Here is your file back with the drop down list working. I had trouble with your workbook in that there was formatting that messed up the operation of the formulae. In the end I got it fixed without really knowing where the problem was...lucky I guess.
    Attached Files Attached Files

+ 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. Vlookup with data validation
    By 33CDonnelly in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2013, 10:30 PM
  2. Data Validation with VLookup
    By alo2116 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 02:11 PM
  3. [SOLVED] Using Vlookup and Data Validation
    By HarshDharamshi in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-10-2013, 07:47 AM
  4. Replies: 9
    Last Post: 11-26-2012, 12:46 AM
  5. How to use both Vlookup & data validation
    By shital shah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-04-2006, 03:30 PM

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