Closed Thread
Results 1 to 3 of 3

Need to compare the same contents in two columns, then copy the left columns accordingly.

  1. #1
    Registered User
    Join Date
    07-28-2021
    Location
    usa
    MS-Off Ver
    2013
    Posts
    7

    Need to compare the same contents in two columns, then copy the left columns accordingly.

    Dear Gurus,
    I encountered a problem.
    I have a big excel file contains a simplified table as below.

    A B C D E F G H I
    1 123568 12/3/2021 A23 5678 DR12 4557 C45 5678
    2 134567 12/3/2021 A24 5679 DR13 4558 C46 5679
    3 1436778 2/5/2020 A25 5680 DR14 4559 C47 5680
    4 123568 12/3/2021 A23 5678 DR12 4557 C45 5678
    5 1436778 2/5/2020 A25 5680 DR14 4559 C47 5680
    6 134567 5/4/2021 B24 5679 B13 4558 C46 5679
    7 123568 12/3/2021
    8 134567 2/5/2020
    9 123568 12/3/2021
    10 1436778 2/5/2020
    11 1436778 2/5/2020
    12 123568 12/3/2021
    13 134567 12/3/2021


    I need to compare the first column, to find the same ID, at the same time making sure the second comlumn has the same dates. then I need to fill in the empaty space with the same content.

    For example, Row 1,4,7,9,12 have the same ID(Colume B) and the same date(Colume C), only row 1 and 4 have the full information from column D to I, I need to copy the same content for Row 7,9,12.

    Many Thanks in advance!
    Any thoughts would be greatly appreciated!

    Best Regards,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Need to compare the same contents in two columns, then copy the left columns according

    Is a formula in D8:I14 acceptable? If so, then try the following in D8
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is an array formula so in pre-Office365 it needs to be committed via CTRL-SHIFT-ENTER.
    Copy across to I8, then copy D8:I8 down to row 14.

    Or, in your real data, are the incomplete rows interspersed with the complete rows? If so then I think this will need to be a VBA solution.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,807

    Re: Need to compare the same contents in two columns, then copy the left columns according

    Administrative Note:

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-for...cordingly.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] i need to find the highest value in two columns, then present the cell contents two left
    By paulr0700282 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-18-2016, 01:55 PM
  2. Compare 2 columns and copy new values from the 2nd columns to a 3rd column
    By djarcadian in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2013, 12:18 PM
  3. [SOLVED] Compare two columns (including a Left and Find solution too)
    By phrankndonna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2012, 12:08 PM
  4. [SOLVED] compare contents of two adjacent columns
    By Gary's Student in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 02:05 PM
  5. compare contents of two adjacent columns
    By Adam in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  6. [SOLVED] compare contents of two adjacent columns
    By Adam in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] compare contents of two adjacent columns
    By Adam in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

Tags for this Thread

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