Emmily
Well-known Member
- Joined
- Oct 5, 2008
- Messages
- 676
Hi, i need help in creating a macro.
Assumptions: In sheet1 I have the following data
Sheet1
Image deleted. Please use only Sample data - Moderator
In Sheet2, i have the following data which stretches to Column O
Sheet2
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 157px"><COL style="WIDTH: 144px"><COL style="WIDTH: 125px"><COL style="WIDTH: 129px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="TEXT-ALIGN: right">0036577</TD><TD style="TEXT-ALIGN: right">0036577</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: right">0045614</TD><TD style="TEXT-ALIGN: right">0045614</TD><TD style="TEXT-ALIGN: right">0045614</TD><TD style="TEXT-ALIGN: right">4561</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: right">0060093</TD><TD style="TEXT-ALIGN: right">0060093</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: right">0062356</TD><TD>GB0000623560</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD style="TEXT-ALIGN: right">0090498</TD><TD>GB0000904986</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD style="TEXT-ALIGN: right">00100159</TD><TD style="TEXT-ALIGN: right">0100159</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD style="TEXT-ALIGN: right">00118271</TD><TD style="TEXT-ALIGN: right">118271</TD><TD style="TEXT-ALIGN: right">118271</TD><TD>GB0055007982</TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
I need to compare Col A in sheet 2 to col A in Sheet 1, if there is a match then export data from Sheet 2 to Sheet 1. In sheet 2 there will be duplicates i only require unique data
So in sheet1, the result will look something like this.
Sheet1
Ditto - Moderator
Assumptions: In sheet1 I have the following data
Sheet1
Image deleted. Please use only Sample data - Moderator
In Sheet2, i have the following data which stretches to Column O
Sheet2
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 157px"><COL style="WIDTH: 144px"><COL style="WIDTH: 125px"><COL style="WIDTH: 129px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="TEXT-ALIGN: right">0036577</TD><TD style="TEXT-ALIGN: right">0036577</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="TEXT-ALIGN: right">0045614</TD><TD style="TEXT-ALIGN: right">0045614</TD><TD style="TEXT-ALIGN: right">0045614</TD><TD style="TEXT-ALIGN: right">4561</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="TEXT-ALIGN: right">0060093</TD><TD style="TEXT-ALIGN: right">0060093</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">4</TD><TD style="TEXT-ALIGN: right">0062356</TD><TD>GB0000623560</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">5</TD><TD style="TEXT-ALIGN: right">0090498</TD><TD>GB0000904986</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">6</TD><TD style="TEXT-ALIGN: right">00100159</TD><TD style="TEXT-ALIGN: right">0100159</TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">7</TD><TD style="TEXT-ALIGN: right">00118271</TD><TD style="TEXT-ALIGN: right">118271</TD><TD style="TEXT-ALIGN: right">118271</TD><TD>GB0055007982</TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4
I need to compare Col A in sheet 2 to col A in Sheet 1, if there is a match then export data from Sheet 2 to Sheet 1. In sheet 2 there will be duplicates i only require unique data
So in sheet1, the result will look something like this.
Sheet1
Ditto - Moderator
Last edited by a moderator: