jluangrath88
New Member
- Joined
- Apr 22, 2018
- Messages
- 23
Hi Experts!
Here's my current situation. And I would very much appreciate the help
I have 4 different worksheets. Let's call them: Sheet1, Sheet2, Sheet3, and Sheet4. The first 3 contains data that is delivered daily. Sheet4 is meant to dump the raw and compiled data between the first three. These first three sheets have rows that will contain some sort of duplicate value amongst them. I'm trying to extract values and its rows that do not have duplicates amongst the other sheets into one sheet (Sheet4).
For example (unique values underlined):
Sheet1 Contains:
[TABLE="width: 128"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD="align: center"]101010
[/TD]
[TD="align: center"] XXXX
[/TD]
[/TR]
[TR]
[TD="align: center"] 202020
[/TD]
[TD="align: center"] AAAA
[/TD]
[/TR]
[TR]
[TD="align: center"]212121
[/TD]
[TD="align: center"] BBBB
[/TD]
[/TR]
[TR]
[TD="align: center"]414141[/TD]
[TD="align: center"]ABAB
[/TD]
[/TR]
[TR]
[TD="align: center"]616161[/TD]
[TD="align: center"]XOXO
[/TD]
[/TR]
[TR]
[TD="align: center"]606060
[/TD]
[TD="align: center"]JAJA
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2 Contains:
[TABLE="width: 128"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]101010[/TD]
[TD]XXXX[/TD]
[/TR]
[TR]
[TD]414141[/TD]
[TD]ABAB[/TD]
[/TR]
[TR]
[TD]616161[/TD]
[TD]XOXO
[/TD]
[/TR]
[TR]
[TD]80808
[/TD]
[TD]LOLO[/TD]
[/TR]
[TR]
[TD]909090[/TD]
[TD]RERE
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet3:
[TABLE="width: 128"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]909090[/TD]
[TD]CICI[/TD]
[/TR]
[TR]
[TD]101010[/TD]
[TD]XXXX[/TD]
[/TR]
[TR]
[TD]212121[/TD]
[TD]BBBB[/TD]
[/TR]
[TR]
[TD]676767
[/TD]
[TD]GGGG
[/TD]
[/TR]
</tbody>[/TABLE]
The unique values between those three sheets would then be:
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]202020[/TD]
[TD="class: xl65, width: 64"]AAAA[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]606060[/TD]
[TD="class: xl65, width: 64"]JAJA
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]80808[/TD]
[TD="class: xl65, width: 64"]LOLO[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]676767[/TD]
[TD="class: xl65, width: 64"]GGGG
[/TD]
[/TR]
</tbody>[/TABLE]
The unique values between those three sheets need to be extracted to Sheet4.
I have the VBA code to remove duplicates from one sheet to the next. But I've been having to run the code twice as to make sure I cover all three sheets. However the multiple macros is making my workbook slow. So I'm wondering if there's a faster way I can do this with one code for all sheets. And then have those unique values compiled/copied/pasted into one specific worksheet.
Here's my current situation. And I would very much appreciate the help
I have 4 different worksheets. Let's call them: Sheet1, Sheet2, Sheet3, and Sheet4. The first 3 contains data that is delivered daily. Sheet4 is meant to dump the raw and compiled data between the first three. These first three sheets have rows that will contain some sort of duplicate value amongst them. I'm trying to extract values and its rows that do not have duplicates amongst the other sheets into one sheet (Sheet4).
For example (unique values underlined):
Sheet1 Contains:
[TABLE="width: 128"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD="align: center"]101010
[/TD]
[TD="align: center"] XXXX
[/TD]
[/TR]
[TR]
[TD="align: center"] 202020
[/TD]
[TD="align: center"] AAAA
[/TD]
[/TR]
[TR]
[TD="align: center"]212121
[/TD]
[TD="align: center"] BBBB
[/TD]
[/TR]
[TR]
[TD="align: center"]414141[/TD]
[TD="align: center"]ABAB
[/TD]
[/TR]
[TR]
[TD="align: center"]616161[/TD]
[TD="align: center"]XOXO
[/TD]
[/TR]
[TR]
[TD="align: center"]606060
[/TD]
[TD="align: center"]JAJA
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2 Contains:
[TABLE="width: 128"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]101010[/TD]
[TD]XXXX[/TD]
[/TR]
[TR]
[TD]414141[/TD]
[TD]ABAB[/TD]
[/TR]
[TR]
[TD]616161[/TD]
[TD]XOXO
[/TD]
[/TR]
[TR]
[TD]80808
[/TD]
[TD]LOLO[/TD]
[/TR]
[TR]
[TD]909090[/TD]
[TD]RERE
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet3:
[TABLE="width: 128"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD]909090[/TD]
[TD]CICI[/TD]
[/TR]
[TR]
[TD]101010[/TD]
[TD]XXXX[/TD]
[/TR]
[TR]
[TD]212121[/TD]
[TD]BBBB[/TD]
[/TR]
[TR]
[TD]676767
[/TD]
[TD]GGGG
[/TD]
[/TR]
</tbody>[/TABLE]
The unique values between those three sheets would then be:
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]202020[/TD]
[TD="class: xl65, width: 64"]AAAA[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]606060[/TD]
[TD="class: xl65, width: 64"]JAJA
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]80808[/TD]
[TD="class: xl65, width: 64"]LOLO[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 128"]
<colgroup><col span="2" width="64"></colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]676767[/TD]
[TD="class: xl65, width: 64"]GGGG
[/TD]
[/TR]
</tbody>[/TABLE]
The unique values between those three sheets need to be extracted to Sheet4.
I have the VBA code to remove duplicates from one sheet to the next. But I've been having to run the code twice as to make sure I cover all three sheets. However the multiple macros is making my workbook slow. So I'm wondering if there's a faster way I can do this with one code for all sheets. And then have those unique values compiled/copied/pasted into one specific worksheet.