+ Reply to Thread
Results 1 to 3 of 3

Two VLookup statements with an IF Statement and an IFERROR HELP!!!

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    2

    Two VLookup statements with an IF Statement and an IFERROR HELP!!!

    HELP!!!!!!!!!!!!!

    I cannot figure this out. I've attached my test file.

    Pseudocode: If(x = blank, find the name in column c and return value from branch tab, but if column c = "p", or ="q", then do a vlookup in the location tab.)

    If x is not blank, return value.

    The first vLookup works, it's the second one with the embedded if statement that is not working.


    =IF(F5="",IFERROR(VLOOKUP(C5,MB!D:E,2, FALSE),VLOOKUP(E5,EL!A:B,IF((B5="p")+(B5="q")+ (B5="ml"),2,))),F5)
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Two VLookup statements with an IF Statement and an IFERROR HELP!!!

    Should it be:

    Please Login or Register  to view this content.
    ?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Two VLookup statements with an IF Statement and an IFERROR HELP!!!

    Genius!!

    TY!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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