+ Reply to Thread
Results 1 to 4 of 4

Vlookup based on IF critria

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Vlookup based on IF critria

    Hi therenot sure if this is even possible but i wasnt to have a formla that does the funtion of a Vlookup but retruns the values from different cols depending on certain criteria. See the axaple attached the formula i need is something like:

    In I4 =Vlookup(H4,A:D,=if($H$2=$B$3,2,=if($H$2=$C$3,3,=if($H$2=$D$,3," "))),False) - This is deffo wrong!

    or in words

    In I4 look for H4 in Col A, retrun the data in COl B if H2 =scott, retrun the data in COl C if H2 =Jane and retrun the data in COl D if H2 =Dorris, if non leave blank

    Thanks Vlookcomplex.xlsx
    Last edited by Notters; 03-01-2013 at 09:05 AM. Reason: Resolved

  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: Vlookup based on IF critria

    Try in I5 and copy down.

    =IFERROR(INDEX($B$4:$D$7,MATCH(H5,$A$4:$A$7,0),MATCH($H$2,$B$3:$D$3,0)),"")
    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
    12-14-2009
    Location
    Nottingham
    MS-Off Ver
    Microsoft D365
    Posts
    93

    Re: Vlookup based on IF critria

    This is amazing thank you!

  4. #4
    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: Vlookup based on IF critria

    You are welcome.

    Thanks for the feed back and the reb*

+ 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