+ Reply to Thread
Results 1 to 2 of 2

Comparing 2 columns from 2 different Worksheet and Returing Value of a 3rd column

Hybrid View

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Unhappy Comparing 2 columns from 2 different Worksheet and Returing Value of a 3rd column

    I have 2 different worksheets, I need to compare Column D of worksheet 1 to the range of column A of worksheet 2. If the value in Column D worksheet 1 will match the value in the range of column A worksheet 2 I need to get the value in Column O of worksheet 2.

    e.g.
    Compare value of worksheet 1 column D row 2 to worksheet 2 column A rows 2 - 1000. If worksheet 1 D2 appears anywhere in worksheet 2 A1 to A1000 I want to return the text/value in worksheet 2 column O.

    If worksheet 1 D2 = worksheet 2 A347 I want to return the text/value in worksheet 2 O347. The repeat this from D2 to D500

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

    Re: Comparing 2 columns from 2 different Worksheet and Returing Value of a 3rd column

    Try:

    =INDEX('Sheet2'!$O$1:$O$1000,MATCH(D2,'Sheet2'!$A$1:$A$1000,0))

    or

    =VLOOKUP(D2,'Sheet2'!$A$1:$0$1000,15,FALSE)

    where Sheet2 is the name of Worksheet 2.

    You can copy formula down the column to find D3's match, etc...

    P.S. Please also do not cross post without posting links
    Last edited by arlu1201; 08-14-2012 at 09:33 AM.
    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.

+ 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