Finding Unique records in a range

navb

New Member
Joined
Mar 5, 2011
Messages
31
I have a dataset like this:

<table border="0" cellpadding="0" cellspacing="0" width="342"><col style="width: 65pt;" width="86"> <col style="width: 48pt;" span="4" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt; width: 65pt;" height="17" width="86">Factory</td> <td class="xl351" style="width: 48pt;" width="64"> SKU1</td> <td class="xl351" style="width: 48pt;" width="64"> SKU2</td> <td class="xl351" style="width: 48pt;" width="64"> SKU3</td> <td class="xl351" style="width: 48pt;" width="64"> SKU4</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt;" height="17">CL019010010
</td> <td class="xl351"> D16722A</td> <td class="xl351">
</td> <td class="xl351">
</td> <td class="xl351"> D16722A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt;" height="17">CL019010010
</td> <td class="xl351"> D19337</td> <td class="xl351"> D19406
</td> <td class="xl351"> D19806</td> <td class="xl351"> D19904</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt;" height="17">CL019010010
</td> <td class="xl351"> D16722A</td> <td class="xl351">
</td> <td class="xl351"> D16722A</td> <td class="xl351">
</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt;" height="17">CL019010010
</td> <td class="xl351"> D16722A</td> <td class="xl351">
</td> <td class="xl351">
</td> <td class="xl351">
</td> </tr> </tbody></table>
Factory ,SKU1,SKU2,SKU3,SKu4 are column headers

I want all unique SKU records for a factory. So my final output will be like this:
<table border="0" cellpadding="0" cellspacing="0" width="150"><col style="width: 65pt;" width="86"> <col style="width: 48pt;" width="64"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt; width: 65pt;" height="17" width="86">Factory</td> <td class="xl352" style="width: 48pt;" width="64"> SKUs</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt;" height="17">CL019010010</td> <td class="xl351"> D16722A</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl352" style="height: 12.75pt;" height="17">
</td> <td class="xl351"> D19337</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl352" style="height: 12.75pt;" height="17">
</td> <td class="xl351"> D19406</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt;" height="17">
</td> <td class="xl351"> D19806</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl351" style="height: 12.75pt;" height="17">
</td> <td class="xl351"> D19904</td> </tr> </tbody></table>

There are around 200 factories. SO I wonder I have to use macros ?
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,857
Messages
5,834,005
Members
430,251
Latest member
fscrn_ffg

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
Top