+ Reply to Thread
Results 1 to 2 of 2

V lookup with an If statement

  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    MD
    MS-Off Ver
    Excel 2007
    Posts
    1

    V lookup with an If statement

    I have two sheets in Excel that I am trying to compare. This is a bit convoluted so I hope my explanation is clear.

    Sheet 1 is named 'mapping and Sheet 2 is named SOA

    I would like to compare column D in 'mapping' to column A in 'SOA'

    Where the value in column D of mapping is equal to the result in column A of 'SOA' I would like to enter the corresponding text info from column B of SOA into column E (which is blank) in 'mapping'

    Column A in SOA is in ascending order while column D is not, and cannot be.

    A sample for the data is:

    Sheet 1 (Mapping)

    A B C D E
    A1.3
    A1.1
    A1.2

    Sheet 2 (SOA)

    A B C D E
    A1.1 YES
    A1.2 MAYBE
    A1.3 NO
    A1.4 IDK

    The result I am looking for would give me:

    Sheet 1 (Mapping)

    A B C D E
    A1.3 NO
    A1.1 YES
    A1.2 MAYBE

    I have tried the following formula but it is returning the value in the last row of Column B in sheet 'SOA'. Can anyone see what is wrong with it?

    Sheet 'mapping' has 467 rows
    Sheet 'SOA' has 136 rows

    IF('mapping'!D3=SOA!A4,VLOOKUP('mapping'!D3:D466,SOA!A1:B136,2),FALSE)

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

    Re: V lookup with an If statement

    Hi

    Try
    =IFERROR(VLOOKUP(A1,SOA!A:B,2,FALSE),"")

    HTH

    rylo

+ 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