+ Reply to Thread
Results 1 to 6 of 6

Merging Data for match cases-Vlookup

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    San Francisco, USA
    MS-Off Ver
    Excel 365
    Posts
    34

    Merging Data for match cases-Vlookup

    Hello,

    I was trying to match and merge/get the data using vlookup but it is not working for me. I know, there is something minor thing that I am missing.

    I have attached a sample file for reference.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,167

    Re: Merging Data for match cases-Vlookup

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-13-2014
    Location
    San Francisco, USA
    MS-Off Ver
    Excel 365
    Posts
    34

    Re: Merging Data for match cases-Vlookup

    Thank you, @TMS.

    It returns the values if present, which is excellent, but it returns 0 instead of "Empty" for [if_not_found].

    Thank you

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,896

    Re: Merging Data for match cases-Vlookup

    Clear all expected data in column B
    B2
    =LET(A,A2:A1000,
    B,XLOOKUP(A,Source!$K:$K,Source!$E:$E,""),
    IF(B="","",B))
    Attached Files Attached Files

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,167

    Re: Merging Data for match cases-Vlookup

    but it returns 0 instead of "Empty" for [if_not_found]
    I suspect you will find that the record is there but the associated matched cell is blank. In that case you will get a zero returned. windknife has provided the solution for this scenario (and extended the range so it is one formula).

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,167

    Re: Merging Data for match cases-Vlookup

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Merging Data for match cases only
    By Bishnu Adhikari in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-04-2022, 05:36 AM
  2. [SOLVED] Count the number of cases that match the criteria
    By billj in forum Excel General
    Replies: 9
    Last Post: 11-23-2016, 09:43 AM
  3. Add cases opened and closed for each month and specifics about the cases.
    By ChrisLaRoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2014, 08:19 PM
  4. [SOLVED] Merging Data Using VLookup !!! Please help
    By ghaffar3 in forum Excel General
    Replies: 7
    Last Post: 12-26-2012, 02:20 AM
  5. Merging data from two sheets where match is found
    By vertigo44 in forum Excel General
    Replies: 2
    Last Post: 04-27-2011, 01:56 PM
  6. Merging data using Vlookup
    By HRHelp in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-30-2006, 04:18 AM
  7. Merging 2 columns into 1 and converting to other cases?
    By GottaRun in forum Excel General
    Replies: 4
    Last Post: 04-20-2006, 03:00 AM

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