Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
In using Excell 2013 ->
Here is my Data:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]
[/TR]
</tbody>[/TABLE]
I have three sets of data that appear in specific rows.
Where,
The first set of data is located in the rows range of 2-172.
The second set of data is located in the rows range of 173-372.
The third set of data is located in the rows range of 373-573.
What I want by VBA Code is to 'Delete the Duplicates' in using a 'Common Qualifier' found in Column C in keeping the ‘Numerical/Alphanumeric Values' for the deleted rows duplicates of which specifically takes the values for Columns G & I because it is from the 2nd’s set of data.
So then the Data Result after Macro execution; will result in the following table:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]
[/TR]
</tbody>[/TABLE]
Where you can see that the 2nd’s set of data for Columns G & I values were taken in the result.
It seems like such a simple concept, I'll really appreciate your input on this one.
Please Help!
R/
-Pin
In using Excell 2013 ->
Here is my Data:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]
[TABLE="class: MsoNormalTable, width: 508"]
<tbody>[TR]
[TD="bgcolor: transparent"]Representing Data From:<o
></o
>
[/TD]
[TD="bgcolor: transparent"]Column C<o
></o
>
[/TD]
[TD="bgcolor: transparent"]D<o
></o
>
[/TD]
[TD="bgcolor: transparent"]E<o
></o
>
[/TD]
[TD="bgcolor: transparent"]F<o
></o
>
[/TD]
[TD="bgcolor: transparent"]G<o
></o
>
[/TD]
[TD="bgcolor: transparent"]H<o
></o
>
[/TD]
[TD="bgcolor: transparent"]I<o
></o
>
[/TD]
[TD="bgcolor: transparent"]J<o
></o
>
[/TD]
[TD="bgcolor: transparent"]K<o
></o
>
[/TD]
[TD="bgcolor: transparent"]L<o
></o
>
[/TD]
[TD="bgcolor: transparent"]M<o
></o
>
[/TD]
[TD="bgcolor: transparent"]N<o
></o
>
[/TD]
[TD="bgcolor: transparent"]O<o
></o
>
[/TD]
[TD="bgcolor: transparent"]P<o
></o
>
[/TD]
[TD="bgcolor: transparent"]Q<o
></o
>
[/TD]
[TD="bgcolor: transparent"]R<o
></o
>
[/TD]
[TD="bgcolor: transparent"]S<o
></o
>
[/TD]
[TD="bgcolor: transparent"]T<o
></o
>
[/TD]
[TD="bgcolor: transparent"]U<o
></o
>
[/TD]
[TD="bgcolor: transparent"]V<o
></o
>
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rows.2-172<o
></o
>
[/TD]
[TD="bgcolor: transparent"]XY155<o
></o
>
[/TD]
[TD="bgcolor: transparent"]ABC<o
></o
>
[/TD]
[TD="bgcolor: transparent"]XY<o
></o
>
[/TD]
[TD="bgcolor: transparent"]155<o
></o
>
[/TD]
[TD="bgcolor: transparent"]1559<o
></o
>
[/TD]
[TD="bgcolor: transparent"]ABC<o
></o
>
[/TD]
[TD="bgcolor: transparent"]330<o
></o
>
[/TD]
[TD="bgcolor: transparent"]1<o
></o
>
[/TD]
[TD="bgcolor: transparent"]2<o
></o
>
[/TD]
[TD="bgcolor: transparent"]3<o
></o
>
[/TD]
[TD="bgcolor: transparent"]4<o
></o
>
[/TD]
[TD="bgcolor: transparent"]5<o
></o
>
[/TD]
[TD="bgcolor: transparent"]6<o
></o
>
[/TD]
[TD="bgcolor: transparent"]7<o
></o
>
[/TD]
[TD="bgcolor: transparent"]8<o
></o
>
[/TD]
[TD="bgcolor: transparent"]9<o
></o
>
[/TD]
[TD="bgcolor: transparent"]10<o
></o
>
[/TD]
[TD="bgcolor: transparent"]11<o
></o
>
[/TD]
[TD="bgcolor: transparent"]12<o
></o
>
[/TD]
[TD="bgcolor: transparent"]13<o
></o
>
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rows.173-372<o
></o
>
[/TD]
[TD="bgcolor: transparent"]XY155<o
></o
>
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]XY<o
></o
>
[/TD]
[TD="bgcolor: transparent"]155<o
></o
>
[/TD]
[TD="bgcolor: transparent"]1645<o
></o
>
[/TD]
[TD="bgcolor: transparent"]ABC<o
></o
>
[/TD]
[TD="bgcolor: transparent"]250<o
></o
>
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rows.373-573<o
></o
>
[/TD]
[TD="bgcolor: transparent"]XY155<o
></o
>
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]XY<o
></o
>
[/TD]
[TD="bgcolor: transparent"]155<o
></o
>
[/TD]
[TD="bgcolor: transparent"]1559<o
></o
>
[/TD]
[TD="bgcolor: transparent"]ABC<o
></o
>
[/TD]
[TD="bgcolor: transparent"]330<o
></o
>
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]<tbody>[TR]
[TD="bgcolor: transparent"]Representing Data From:<o


[/TD]
[TD="bgcolor: transparent"]Column C<o


[/TD]
[TD="bgcolor: transparent"]D<o


[/TD]
[TD="bgcolor: transparent"]E<o


[/TD]
[TD="bgcolor: transparent"]F<o


[/TD]
[TD="bgcolor: transparent"]G<o


[/TD]
[TD="bgcolor: transparent"]H<o


[/TD]
[TD="bgcolor: transparent"]I<o


[/TD]
[TD="bgcolor: transparent"]J<o


[/TD]
[TD="bgcolor: transparent"]K<o


[/TD]
[TD="bgcolor: transparent"]L<o


[/TD]
[TD="bgcolor: transparent"]M<o


[/TD]
[TD="bgcolor: transparent"]N<o


[/TD]
[TD="bgcolor: transparent"]O<o


[/TD]
[TD="bgcolor: transparent"]P<o


[/TD]
[TD="bgcolor: transparent"]Q<o


[/TD]
[TD="bgcolor: transparent"]R<o


[/TD]
[TD="bgcolor: transparent"]S<o


[/TD]
[TD="bgcolor: transparent"]T<o


[/TD]
[TD="bgcolor: transparent"]U<o


[/TD]
[TD="bgcolor: transparent"]V<o


[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rows.2-172<o


[/TD]
[TD="bgcolor: transparent"]XY155<o


[/TD]
[TD="bgcolor: transparent"]ABC<o


[/TD]
[TD="bgcolor: transparent"]XY<o


[/TD]
[TD="bgcolor: transparent"]155<o


[/TD]
[TD="bgcolor: transparent"]1559<o


[/TD]
[TD="bgcolor: transparent"]ABC<o


[/TD]
[TD="bgcolor: transparent"]330<o


[/TD]
[TD="bgcolor: transparent"]1<o


[/TD]
[TD="bgcolor: transparent"]2<o


[/TD]
[TD="bgcolor: transparent"]3<o


[/TD]
[TD="bgcolor: transparent"]4<o


[/TD]
[TD="bgcolor: transparent"]5<o


[/TD]
[TD="bgcolor: transparent"]6<o


[/TD]
[TD="bgcolor: transparent"]7<o


[/TD]
[TD="bgcolor: transparent"]8<o


[/TD]
[TD="bgcolor: transparent"]9<o


[/TD]
[TD="bgcolor: transparent"]10<o


[/TD]
[TD="bgcolor: transparent"]11<o


[/TD]
[TD="bgcolor: transparent"]12<o


[/TD]
[TD="bgcolor: transparent"]13<o


[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rows.173-372<o


[/TD]
[TD="bgcolor: transparent"]XY155<o


[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]XY<o


[/TD]
[TD="bgcolor: transparent"]155<o


[/TD]
[TD="bgcolor: transparent"]1645<o


[/TD]
[TD="bgcolor: transparent"]ABC<o


[/TD]
[TD="bgcolor: transparent"]250<o


[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Rows.373-573<o


[/TD]
[TD="bgcolor: transparent"]XY155<o


[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]XY<o


[/TD]
[TD="bgcolor: transparent"]155<o


[/TD]
[TD="bgcolor: transparent"]1559<o


[/TD]
[TD="bgcolor: transparent"]ABC<o


[/TD]
[TD="bgcolor: transparent"]330<o


[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
[/TR]
</tbody>[/TABLE]
I have three sets of data that appear in specific rows.
Where,
The first set of data is located in the rows range of 2-172.
The second set of data is located in the rows range of 173-372.
The third set of data is located in the rows range of 373-573.
What I want by VBA Code is to 'Delete the Duplicates' in using a 'Common Qualifier' found in Column C in keeping the ‘Numerical/Alphanumeric Values' for the deleted rows duplicates of which specifically takes the values for Columns G & I because it is from the 2nd’s set of data.
So then the Data Result after Macro execution; will result in the following table:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]
[TABLE="class: MsoNormalTable, width: 508"]
<tbody>[TR]
[TD="bgcolor: transparent"]Representing:<o
></o
>
[/TD]
[TD="bgcolor: transparent"]Column C<o
></o
>
[/TD]
[TD="bgcolor: transparent"]D<o
></o
>
[/TD]
[TD="bgcolor: transparent"]E<o
></o
>
[/TD]
[TD="bgcolor: transparent"]F<o
></o
>
[/TD]
[TD="bgcolor: transparent"]G<o
></o
>
[/TD]
[TD="bgcolor: transparent"]H<o
></o
>
[/TD]
[TD="bgcolor: transparent"]I<o
></o
>
[/TD]
[TD="bgcolor: transparent"]J<o
></o
>
[/TD]
[TD="bgcolor: transparent"]K<o
></o
>
[/TD]
[TD="bgcolor: transparent"]L<o
></o
>
[/TD]
[TD="bgcolor: transparent"]M<o
></o
>
[/TD]
[TD="bgcolor: transparent"]N<o
></o
>
[/TD]
[TD="bgcolor: transparent"]O<o
></o
>
[/TD]
[TD="bgcolor: transparent"]P<o
></o
>
[/TD]
[TD="bgcolor: transparent"]Q<o
></o
>
[/TD]
[TD="bgcolor: transparent"]R<o
></o
>
[/TD]
[TD="bgcolor: transparent"]S<o
></o
>
[/TD]
[TD="bgcolor: transparent"]T<o
></o
>
[/TD]
[TD="bgcolor: transparent"]U<o
></o
>
[/TD]
[TD="bgcolor: transparent"]V<o
></o
>
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Result of Code: now populated in Rows.2-172<o
></o
>
[/TD]
[TD="bgcolor: transparent"]XY155<o
></o
>
[/TD]
[TD="bgcolor: transparent"]ABC<o
></o
>
[/TD]
[TD="bgcolor: transparent"]XY<o
></o
>
[/TD]
[TD="bgcolor: transparent"]159<o
></o
>
[/TD]
[TD="bgcolor: transparent"]1645<o
></o
>
[/TD]
[TD="bgcolor: transparent"]ABC<o
></o
>
[/TD]
[TD="bgcolor: transparent"]250<o
></o
>
[/TD]
[TD="bgcolor: transparent"]1<o
></o
>
[/TD]
[TD="bgcolor: transparent"]2<o
></o
>
[/TD]
[TD="bgcolor: transparent"]3<o
></o
>
[/TD]
[TD="bgcolor: transparent"]4<o
></o
>
[/TD]
[TD="bgcolor: transparent"]5<o
></o
>
[/TD]
[TD="bgcolor: transparent"]6<o
></o
>
[/TD]
[TD="bgcolor: transparent"]7<o
></o
>
[/TD]
[TD="bgcolor: transparent"]8<o
></o
>
[/TD]
[TD="bgcolor: transparent"]9<o
></o
>
[/TD]
[TD="bgcolor: transparent"]10<o
></o
>
[/TD]
[TD="bgcolor: transparent"]11<o
></o
>
[/TD]
[TD="bgcolor: transparent"]12<o
></o
>
[/TD]
[TD="bgcolor: transparent"]13<o
></o
>
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]<tbody>[TR]
[TD="bgcolor: transparent"]Representing:<o


[/TD]
[TD="bgcolor: transparent"]Column C<o


[/TD]
[TD="bgcolor: transparent"]D<o


[/TD]
[TD="bgcolor: transparent"]E<o


[/TD]
[TD="bgcolor: transparent"]F<o


[/TD]
[TD="bgcolor: transparent"]G<o


[/TD]
[TD="bgcolor: transparent"]H<o


[/TD]
[TD="bgcolor: transparent"]I<o


[/TD]
[TD="bgcolor: transparent"]J<o


[/TD]
[TD="bgcolor: transparent"]K<o


[/TD]
[TD="bgcolor: transparent"]L<o


[/TD]
[TD="bgcolor: transparent"]M<o


[/TD]
[TD="bgcolor: transparent"]N<o


[/TD]
[TD="bgcolor: transparent"]O<o


[/TD]
[TD="bgcolor: transparent"]P<o


[/TD]
[TD="bgcolor: transparent"]Q<o


[/TD]
[TD="bgcolor: transparent"]R<o


[/TD]
[TD="bgcolor: transparent"]S<o


[/TD]
[TD="bgcolor: transparent"]T<o


[/TD]
[TD="bgcolor: transparent"]U<o


[/TD]
[TD="bgcolor: transparent"]V<o


[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Result of Code: now populated in Rows.2-172<o


[/TD]
[TD="bgcolor: transparent"]XY155<o


[/TD]
[TD="bgcolor: transparent"]ABC<o


[/TD]
[TD="bgcolor: transparent"]XY<o


[/TD]
[TD="bgcolor: transparent"]159<o


[/TD]
[TD="bgcolor: transparent"]1645<o


[/TD]
[TD="bgcolor: transparent"]ABC<o


[/TD]
[TD="bgcolor: transparent"]250<o


[/TD]
[TD="bgcolor: transparent"]1<o


[/TD]
[TD="bgcolor: transparent"]2<o


[/TD]
[TD="bgcolor: transparent"]3<o


[/TD]
[TD="bgcolor: transparent"]4<o


[/TD]
[TD="bgcolor: transparent"]5<o


[/TD]
[TD="bgcolor: transparent"]6<o


[/TD]
[TD="bgcolor: transparent"]7<o


[/TD]
[TD="bgcolor: transparent"]8<o


[/TD]
[TD="bgcolor: transparent"]9<o


[/TD]
[TD="bgcolor: transparent"]10<o


[/TD]
[TD="bgcolor: transparent"]11<o


[/TD]
[TD="bgcolor: transparent"]12<o


[/TD]
[TD="bgcolor: transparent"]13<o


[/TD]
[/TR]
</tbody>[/TABLE]
[/TR]
</tbody>[/TABLE]
Where you can see that the 2nd’s set of data for Columns G & I values were taken in the result.
It seems like such a simple concept, I'll really appreciate your input on this one.
Please Help!
R/
-Pin