+ Reply to Thread
Results 1 to 11 of 11

Data Validation List and Vlookup combined

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    Inida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Data Validation List and Vlookup combined

    Hey ..

    My sheet looks somewhat like this .. ( Sheet Attached - DataValid_Vlookup )


    Column "A" shows the Fresh Booking/Cancellation no.
    Column "B" has a data validation list with options Fresh and Cancellation.
    Column "C" has data validation list with invoice no. depending the value in column "B".

    Is it possible
    That in case of a fresh booking column "C" has a drop down list from which fresh invoice no. can be chosen but incase its a cancellation it uses vlookup ( to look up for 1111 in column "A" and return the corresponding in value in column "C" )

    Like in rows 3-6 there are fresh bookings and thus the invoice no. in column "C" is different. But incase of row 7 there is cancellation of booking no. 1111 so here I don't want a drop down list but a vlookup function to automatically tell me the invoice no. which has been cancelled.

    Please help me ..
    Attached Files Attached Files
    Last edited by Meunixx; 08-11-2013 at 02:43 AM.

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    Makati
    MS-Off Ver
    Excel 2010
    Posts
    138

    Re: Data Validation List and Vlookup combined

    Hi Meunixx,

    Here is one alternatives without dropdown list to get what you want assuming that the contract no. of cancelation always below the fresh contract number .. I don't know if there is any way to combine drop down list and formula in 1 column. Hope this help

    Book4.xlsx

  3. #3
    Registered User
    Join Date
    07-04-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Data Validation List and Vlookup combined

    Hi Jul Stev

    I trust that you are well. I have a similar problem with data validation and vlookup. In my workbook I created a simple drop down menu in cell A460 to select your steel section type. From this it should create a drop down list in cell B460 with all the standard sizes of the selected section in A460. My table range is $A$18:$B$441 and I've tried inserting the following formula into a data validation for cell B460: =INDIRECT(VLOOKUP($A460,$A$18:$B$441,2,FALSE)). It returns the following error message: "The source currently evaluates to an error. Do you want to continue?" What am I doing wrong? Please see my attached workbook

    Kind Regards
    Theo
    Job Measuring Formula Sheet - Structural Steel, REV 1.xlsx

  4. #4
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Data Validation List and Vlookup combined

    This example you can probably help
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-04-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Data Validation List and Vlookup combined

    Hi Jean

    Thank you, but this didn't solve my problem. The Drop Down list in column B should be created according to the selected steel section in Column A. Please have a look at the file I have attached in my first post.

    Kind Regard
    Theo

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Data Validation List and Vlookup combined

    Pl see the attached file.
    Attached Files Attached Files

  7. #7
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Data Validation List and Vlookup combined

    Look at my contribution

  8. #8
    Registered User
    Join Date
    07-11-2013
    Location
    Inida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Data Validation List and Vlookup combined

    Thanks for the help ..
    But it didn't work as your solution is based on the assumption that every new fresh booking will have a separate invoice no. for it. I forgot to mention in my query that 2 or more fresh bookings can have same invoice no. My Bad.

    Thanks Anyways

  9. #9
    Registered User
    Join Date
    07-11-2013
    Location
    Inida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Data Validation List and Vlookup combined

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see the attached file.
    Thanks for your reply. The sheet you've attached gives the exact solution to the problem.
    However,

    I tried to copy/paste the VBA coding in it in my sheet and edited it. It works fine till the time " Canc." is being selcted but as soon as " Fresh" is selected there is some error showing in it. cz of my lack of knowledge of VBA I don't understand where is the problem.

    Can you please look into and correct it.
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Data Validation List and Vlookup combined

    The code is modified .Try this

    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 08-16-2013 at 12:52 AM.

  11. #11
    Registered User
    Join Date
    05-04-2018
    Location
    Sydney, Australia
    MS-Off Ver
    2016
    Posts
    65

    Re: Data Validation List and Vlookup combined

    Hi Guys.. I have a similar problem. I have Names in one column and their role titles in 2nd. I want a formula to select Names in 1st column and it should return titles in 2nd column but If I select "Select by Role" in 1st column then it should give me drop down list of role titles in 2nd column. Can you help me with formula

+ 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 in VBA using data validation list
    By chriscusick in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-31-2013, 04:17 AM
  2. [SOLVED] Data Validation Lists combined with VLookups
    By SKirkaldy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2013, 06:08 AM
  3. Replies: 1
    Last Post: 09-05-2012, 11:39 AM
  4. Data validation list, vlookup, update
    By todmac in forum Excel General
    Replies: 2
    Last Post: 01-13-2011, 03:26 PM
  5. Using VLookUp to build Data Validation List?
    By SteveSeattleTou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2007, 10:10 PM

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