VBA request; comparing cells in a row to another workbook, copy/paste entire rows if matching

I’m hoping there’s a VBA solution in Excel for this, but honestly, I’ve only just started searching and learning about VBA yesterday.

I’ve got two workbooks, each with one sheet; one has columns A-P (we’ll call it ‘Core’ or wbkcore), and one has columns A-J (we’ll call it ‘Partial’ or wbkpartial). There are various data types in the two workbooks; dates, names, numeric values, dollar amounts, statuses, comments, etc. and there will always be more rows in wbkcore.

There currently exists a long, manual process of copy/pasting a bunch of things into multiple different sheets within the same workbook, conditional formatting to color code the unique cells, sorting by cell color, and then filtering to only include the unique cells.
My task is to find a way to more efficiently identify the rows in wbkcore that are missing from wbkpartial based on whether the values in one column’s cell from each workbook match (we’ll title that column ‘C_Number’). ‘C_Number’ is a 10 digit numeric, but may be formatted as text in wbkpartial by default, and as a number in wbkcore. Ideally, I’d like for those rows to be copy/pasted into a new workbook or worksheet (we’ll call it ‘Missing’ or wbkmissing), but I’ve got to dedupe and filter to only retain the unique entries.

As an example, my most recent wbkcore has 4,020 rows, and wbkpartial has 3,853. In wbkcore, the C_Number values are in column E, and in wbkpartial they’re in column F. By default, the data in both workbooks doesn’t appear to be in any specific order, so it’s possible E400 in wbkcore matches F3000 in wbkpartial.

If wbkcore.E = wbkpartial.F then I’d like to copy/paste the entire row from wbkcore (columns A-P) into a new workbook (wbkmissing). I’m hoping this can loop repeatedly until all of the entries from column E in wbkcore have been searched for in wbkpartial, so in the example above, it would repeat the check for a match from E1 all the way down thru E4020.
The C_Number values are a 10 digit numeric, but may be formatted as text in wbkpartial by default, and as a number in wbkcore.

TLDR: Two workbooks with data. Ask to omit rows where C_Number cell value from wbkcore is also found in a C_Number cell from wbkpartial. Copy/paste into a new workbook (wbkmissing) the entire row of data from wbkcore for all instances where C_Number only exists in wbkcore and not wbkpartial.

I’ve tried searching thru a bunch of other VBA-related asks and replies, but my use case is pretty specific and hard to search for specifically. There were some VBA modules that I found that identified a match, but beyond highlighting the row, I couldn’t figure out how to implement a copy/paste function, new workbook creation, loop feature, etc.

New contributor

jpWRX is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật