compare multiple worksheets for duplicates

Status
Not open for further replies.

ellac

New Member
Joined
Oct 4, 2004
Messages
37
Hi everyone, I am trying to post this message again.

I need to compare multiple worksheets and find duplicates. When the duplicates are found they need to automatically be copied to a new worksheet in the same workbook.

That worksheet will then be password protected.

Can anyone help me, I need to finish this today.

Thanks so much for all the input.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi ellac,

At first I am sorry but I do not know how to make it in excel but it is possible to do it in Access and it is easy so if it will be usefull to you to do this in access call back and I'll explain it to you

Regards!
 
Upvote 0
Thanks very much, but I really need it to be in Excel.

Can anyone help?

Thanks All!!!
 
Upvote 0
I'm not sure I've understood what you need.

1)
You have 2 Source Workbook, say A and B.
You have to compare each Worksheet of A with Worksheets of B.
If you find duplicates you have to copy them in a different Workbook, say C, which will be password protected.

2)
You have single source workbook, say A, with multiple worksheets to be compared. If duplicates are found out then copy this to destination Workbook, say B, which will be password protected.

Three questions
a) Is either 1) or 2) correct
b) What to do with duplicates after copy? (i.e. delete, etc..)
c) Two worksheets are duplicated whether have the same value cell by cell?
 
Upvote 0
Number 2 is almost correct. It would be one source workbook with multiple sheets, but the duplicates would be copied to a new worksheet in the existing source workbook.

I did not understand your C) question.

Thanks
 
Upvote 0
I think that it is possible with a query in excel but give us an example of your sheets

I saw your note "I need to finish this today" it is really very easy to do it in access and to export it in excel after that so your file will be in excel

but if you finaly preffer excel send an example sheet
 
Upvote 0
It is hard to send an example beccause it is confidential info.

But lets look at it this way. Sheet 1, sheet 2 and sheet 3 has info in column A B and C. Some of the info. in these columns has been duplicated. If I run a macro, it should pull out the cells or rows that have been duplicated and copy them into sheet4.

I hope this makes more sense.

Thanks
 
Upvote 0
Try this:

copy formula in sheet 4 in range A1:C(end of your table)
=IF(IF(ISERROR(VLOOKUP(Sheet1!A2;Sheet2!A:A;1;FALSE));"";(VLOOKUP(Sheet1!A2;Sheet2!A:A;1;FALSE)))="";IF(ISERROR(VLOOKUP(Sheet1!A2;Sheet3!A:A;1;FALSE));"";(VLOOKUP(Sheet1!A2;Sheet3!A:A;1;FALSE)));(IF(ISERROR(VLOOKUP(Sheet1!A2;Sheet2!A:A;1;FALSE));"";(VLOOKUP(Sheet1!A2;Sheet2!A:A;1;FALSE)))))

it shows the duplicates from sheet 1 in sheets 2 and 3

now you can protect the sheet

is the formula works exactly as you need?
 
Upvote 0
It did not work at all.

Also, I don't know if it will do what I need?

Can we try again.

Thanks so much for all your time and effort.
 
Upvote 0
what happends?

1.the formula does not work at all
2. the result is far away from expected one

please describe me the problem

btw when is the end of your worktime? in meaning how much time do we have?
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,614
Messages
6,120,519
Members
448,968
Latest member
Ajax40

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top