+ Reply to Thread
Results 1 to 6 of 6

Matching Data from two Columns

  1. #1
    Registered User
    Join Date
    09-20-2017
    Location
    beverly hills, CA
    MS-Off Ver
    Office 2013
    Posts
    3

    Unhappy Matching Data from two Columns

    Hello,

    I have two sheets. One sheet has three Columns of data (A, B, C), the other sheet has two Columns of data (A,B) and the third column (C) is empty. I need to match (Columns, A & B) from Sheet 1 to Sheet 2 and whatever matches, put that data from Sheet 2 "C" column into Sheet's 1 "C" Column.

    Here is my code so far, It matches the "A" column and puts the data into the "C" column:

    =IFERROR(INDEX(Sheet2!C:C,MATCH(A1,Sheet2!A:A,0)),"")

    I have been trying to edit the code to add the additional code to match the "B" column. Can anyone tell me what I need to do? Thank you in advance for any help::

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Matching Data from two Columns

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    09-20-2017
    Location
    beverly hills, CA
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Matching Data from two Columns

    Here is attachment.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Matching Data from two Columns

    So much easier when you can see...

    Sheet1, c1, copied down:
    =IFERROR(INDEX(Sheet2!$C$1:$C$8,MATCH(1,INDEX((Sheet2!$A$1:$A$8=Sheet1!A1)*(Sheet2!$B$1:$B$8=Sheet1!B1),0),0)),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-20-2017
    Location
    beverly hills, CA
    MS-Off Ver
    Office 2013
    Posts
    3

    Re: Matching Data from two Columns

    WOW! Thank you so much!!!!!!!!!!!!!! You are awesome!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Matching Data from two Columns

    You're welcome... and thanks for the Rep. Appreciated!!

+ 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. Matching Two Columns' Data
    By siralexduke in forum Excel General
    Replies: 3
    Last Post: 03-12-2015, 04:09 AM
  2. [SOLVED] Align 3 columns with 2 columns of matching data
    By loritee in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2013, 10:36 AM
  3. Replies: 2
    Last Post: 04-18-2013, 05:56 PM
  4. Align 3 columns with 2 columns of matching data
    By bearnbillie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2012, 08:33 AM
  5. Help matching data in two columns
    By Slongy in forum Excel General
    Replies: 5
    Last Post: 05-22-2009, 06:04 AM
  6. Matching data in 2 columns on the same row
    By Poss in forum Excel General
    Replies: 0
    Last Post: 02-20-2008, 07:43 AM
  7. Matching Data in Columns
    By ebraun01 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-13-2006, 10:40 PM

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