+ Reply to Thread
Results 1 to 3 of 3

Match col A of sheet1 and sheet2, if same value then in fetch value of col F from sheet 2

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    mumbai
    MS-Off Ver
    Excel 2010
    Posts
    1

    Match col A of sheet1 and sheet2, if same value then in fetch value of col F from sheet 2

    Hi ,

    I have two sheets

    Sheet 1 has columns MSISDN - subdt - unsub dt - unsuborigin
    Sheet 2 has columns MSISDN - dt - type

    These are two different monthly reports. I want to match col A of sheet 1 and see if that MSISDN exists in col A of sheet 2. if that MSISDN is present in sheet 2 then fetch the TYPE.

    I tried Vlookup but it does give correct TYPE. is it mandatory to have unique / no dulplicates in both sheets to use vlookup?



    both sheet.jpg

    regards

  2. #2
    Registered User
    Join Date
    10-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Match col A of sheet1 and sheet2, if same value then in fetch value of col F from she

    You could try an Index Match function:
    =INDEX(*Column to return*,MATCH(*Value to lookup*,*Column to lookup against*,0)
    or
    =INDEX(SHEET2!$E:$E,MATCH(SHEET1!A2,SHEET1A:A,)

    The 0 at the end means it will look up exact values. This will find and return the first entry it finds

    If you want to look up entries which arent exactly the same (E.G B Fernandez / Ben Fernandez) try the Fuzzylookup add on

    Hope this helps!

  3. #3
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Match col A of sheet1 and sheet2, if same value then in fetch value of col F from she

    Whether you are using Vlookup or the INDEX-MATCH function, the reference value needs to be unique. These functions will stop and return the first instance it comes across.
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

+ 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