+ Reply to Thread
Results 1 to 5 of 5

Can a VLOOKUP nest in an IF formula? Can I use both in a data validation drop down??

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    San Diego, CA USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Can a VLOOKUP nest in an IF formula? Can I use both in a data validation drop down??

    I'm trying to figure out how to get around the nested function restriction in a formula that's being used to apply data validation to a cell that results in a drop down list. The problem I think I am having is that the result for some values is a single value, while for others it is a small range of values.

    Example:

    CellA1 has a drop down of possible drug name choices. Based on the selection in A1, B1 should be the corresponding dosage(s) for the drug selected. There are 13 drugs total and 10 of those only have one possible dosage associated with it. For those a vlookup would work perfectly; however, the other three have 2 or 3 possible dosages associated to them so the result should be a drop down selection of those doses if any one of those 3 drugs are selected.

    I've tried defining half of the formula and then adding it as one function to evaluate but that didn't work. Does anyone know how to do this? Can I combine an IFERROR formula with a vlookup so that that the formula tries to match the target with one of those 3 drugs and if successful, it returns the drop down range that corresponds with the selection, but if false it resorts to the vlookup for the rest of the drugs?

    Thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Can a VLOOKUP nest in an IF formula? Can I use both in a data validation drop down??

    Hi

    Can you upload a small sample workbook?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    05-29-2012
    Location
    San Diego, CA USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Can a VLOOKUP nest in an IF formula? Can I use both in a data validation drop down??

    Sure. The dosages and the drugs they align with can be found on the data tab. I separated the ones with multiple dosages because I was playing around with naming the ranges and trying to figure something out. The target cell that will dictate the dosage is G6 on the form tab. I am trying to have the result on T6.

    Gilead Special Exception REVIEW3.xlsmThanks for taking a look!

  4. #4
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Can a VLOOKUP nest in an IF formula? Can I use both in a data validation drop down??

    sry wrong thread
    Last edited by galvinpaddy; 06-26-2012 at 03:42 AM. Reason: responded here to different thread, sry

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Can a VLOOKUP nest in an IF formula? Can I use both in a data validation drop down??

    Unfortumately, my poor English, does not allows me to understand, what happens in your Sheets...Sorry...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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