+ Reply to Thread
Results 1 to 4 of 4

Merging 2 sheets based on a condition

  1. #1
    Registered User
    Join Date
    05-03-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    4

    Merging 2 sheets based on a condition

    Hi,
    I have an excel file with 2 sheets.
    The first sheet has multiple instances of variables(N1, N2 ) etc in the first column.
    The second sheet has these variables N1,N2 etc only once in the first column.
    I need to create a merged sheet of all the rows where the variables match in both sheets.
    Is this possible? Any help appreciated!
    I have attached a sample.
    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Merging 2 sheets based on a condition

    bhavv,

    Attached is a modified version of your provided workbook.
    In Sheet1 cell C2 and copied over and down is this formula:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Merging 2 sheets based on a condition

    An alternate formula that could be used in Sheet1 cell C2 and copied over and down is:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-03-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Merging 2 sheets based on a condition

    Hello tiger
    Roars like a charm. Many Thanks!

+ 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