+ Reply to Thread
Results 1 to 4 of 4

Copying cells from one sheet to another based on duplicate conditions

  1. #1
    Registered User
    Join Date
    06-08-2017
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    2

    Copying cells from one sheet to another based on duplicate conditions

    Good Afternoon,

    I'm trying to find a formula that would help me copy info from one cell to another cell in a different sheet based on some duplicate information between those sheets.

    Here is an example of what I'm trying to do:

    Sheet 1
    Column A | Column B
    1. Baseball | Mike
    2. Tennis | John
    3. Bowling | Tim
    4. Baseball | Ben
    5. Running | Scott

    Sheet 2
    Column A | Column B | Column C
    1. Football | Mike | Red
    2. Baseball | Ben | Blue
    3. Soccer | Nick | White
    4. Baseball | Mike | Orange
    5. Football | Justin | Yellow


    I would like the formula to look through both sheets to find exact duplicates of both Columns A + B and then copy Column C's info from where the duplicate is located in Sheet 2 to Column C in Sheet 1. So in the case of the above information Sheet 1/Row 1 would match with Sheet 2/Row 4 and Sheet 1/Row 4 would match with Sheet 2/Row 2.

    The output on Sheet 1 would then look like this:

    Sheet 1
    Column A | Column B | Column C

    1. Baseball | Mike | Orange
    2. Football | John
    3. Soccer | Tim
    4. Baseball | Ben | Blue
    5. Football | Scott

    Any help would be appreciated, sorry for the poor formatting.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Copying cells from one sheet to another based on duplicate conditions

    In C2 copied down on Sheet1...

    =IFERROR(INDEX(Sheet2!$C$2:$C$6,MATCH(A2&B2,Sheet2!$A$2:$A$6&Sheet2!$B$2:$B$6,0)),"")

    IMPORTANT
    • This is an array formula
    • Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    • If entered correctly, the formula will be enclosed in {brackets}
    • Do not enter the {brackets} manually
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-08-2017
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    2

    Re: Copying cells from one sheet to another based on duplicate conditions

    Hey Jeff,

    Thanks for the quick response, it seems to work perfectly. I really appreciate the help!

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Copying cells from one sheet to another based on duplicate conditions

    You are very welcome. Happy to help.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Copying cells from one sheet to another then filling down based on previous column
    By mahowarth in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-07-2013, 08:18 AM
  2. [Solved] Copying Cells from one sheet to another based on specific criteria
    By james.heston in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-30-2013, 09:51 AM
  3. Need help copying cells to another sheet based on the date
    By MP3265 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 01:46 AM
  4. Replies: 2
    Last Post: 07-25-2012, 08:11 AM
  5. Replies: 0
    Last Post: 07-03-2012, 09:55 AM
  6. Replies: 1
    Last Post: 01-14-2010, 03:31 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