Excel formula

hello,

having an issue... have two different spreadsheets.  I need to compare the two spreadsheets to filter only same columns.  In other words, which rows are the same in both spreadsheets.  is there a simple formula that could be used or a free program that would do that?

Thanks!
odddballAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Glenn RayExcel VBA DeveloperCommented:
1) Are these two sheets in the same workbook or in different workbooks?
2) Do you only want to see/highlight data where the entire row is identical in both workbooks?
3) Where do you want to see the common data?  In another workbook or highlighting one or both rows in its source sheet?

As always, an example is very helpful here.

Regards,
-Glenn
0
odddballAuthor Commented:
Hi, thank you for your reply.  they are in the same workbook.  Highlighting would be great.  If possible in another workbook would be ideal!!
0
Glenn RayExcel VBA DeveloperCommented:
Here's a sort-of quick-and-dirty solution; anything more elaborate will probably require VBA.

This example has two source sheets - Sheet1 and Sheet2 - and the data ranges from columns A through H.

1) Create a new sheet with the same header/column layout as your source sheets.  For example, I'm naming it "Common"
2) Insert the following formula in cell A2 and copy across and down as many rows as in Sheet1.
=IFERROR(VLOOKUP(Sheet1!A2,Sheet2!A:$H,1,FALSE),"")
You will see all the common values in both sheets, regardless of record location.

3) Add a new column to the right, label the top cell "Duplicate" and add this formula in row 2 and copy down:
=IF(SUMPRODUCT(--((A2:H2)=""))=0,"Yes","No")
This will show "Yes" or "No" if the row has full matches and is therefore a duplicate in both Sheet1 and Sheet2

4) Turn on data filtering and filter on the "Yes" values to simplify the sheet.

I've attached an example file that demonstrates this.  Let me know if you think this method will suffice or if you need an automated (VBA) solution.

Regards,
-Glenn
EE-DuplicateRowsAcrossSheets.xlsx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Glenn RayExcel VBA DeveloperCommented:
Hi,

Have you had a chance to review my solution provided above?  If so and you still have questions, please let me know.  Otherwise, can you please properly close this question by clicking the "Accept this solution" link above my post above?

With Thanks,
Glenn
0
odddballAuthor Commented:
thank you.
0
odddballAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.