+ Reply to Thread
Results 1 to 4 of 4

If Statement with Vlook-Up using multiple criteria

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    4

    If Statement with Vlook-Up using multiple criteria

    I am going to provide a very simple example to my problem in the provided attachment- but in reality I am working with much more data.

    Column A has the formula I am working with:
    =IF(B2=$P$2:$P$5,VLOOKUP(B2,$P$2:$Q$5,2,FALSE))

    I need to look up one cell in multiple rows of data- I thought I created a good formula (not sure) but all that keeps coming back is FALSE.

    Can anyone please help me?

    It will make more sense if you look at the attachment

    Thank you so much in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: If Statement with Vlook-Up using multiple criteria

    Hi

    Using your example file what is wrong with just a straight vlookup?

    Please Login or Register  to view this content.
    rylo

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: If Statement with Vlook-Up using multiple criteria

    Try:

    =INDEX($E$2:$E$5,MATCH(B2,$D$2:$D$5,0)) in A2 and copy down. The =IF() part in your formula is redundant.

    Or?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Registered User
    Join Date
    04-12-2012
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: If Statement with Vlook-Up using multiple criteria

    Thanks SO much Søren Larsen- this works perfectly!!

+ 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