filter duplicate entries select highest value

PunchyBear

New Member
Joined
Sep 15, 2011
Messages
1
I am fairly new to VBA so please forgive any obvious errors. I have 3 columns of data. In some cases all are duplicated in others some are duplicated in others none.First sort is by column A, ID numbers;if this is not duplicated then copy contents of column a,b,c to new spreadsheet. If column A is duplicated then select lowest value in column B&C and copy Column A,B & C to the same spreadsheet as previous. Values in column B & C are Alpha. example of column B contents zzzzzz(BBB-) and column C BBB-. It is only the contents inside the brakets that are important(on the whole)so for the below extract of s/s data i have noted in column D a few examples of what data i would like macro to produce.

below list shows order AAA is Highest
AAA
AA+
AA
AA-
A+
A
A-
BBB+
BBB
BBB-
BB+
BB
BB-
B+
B
B-
CCC+
CCC
CCC-
CC
C
D

IDMinABS
ACC06
ACC06Grade (BBB-)BBB-
ACC06Grade (BBB-)BBB-A,B & C of either row 3 or 4 as values are the same
AISE1
AISE1
AISE1High Yield (BB-)BB-
AISE1Grade (BBB-)BBB
AISE1Grade (BBB-)BBBA, B & C of row 7, BB- is lower than BBB
CSPP2
CSPP2High Yield No Min RatingDA, B & C of row 11
DANSKA, B & C of row 12 (No dupe)
DYSE2
DYSE2Grade (BBB-)BBB-
DYSE2Grade (BBB-)BBB-
DYSE2Grade (BBB-)BBB-A, B & C of either row 14,15 or 16
FIBPSll Yield (BB-)Not Permitted
FIBPSll Yield (BB-)Not PermittedA, B & C of either row 17 or 18
SER03High Yield No Min RatingDA, B & C of row 19

<colgroup><col style="width: 32pt; mso-width-source: userset; mso-width-alt: 1572;" width="43"> <col style="width: 47pt; mso-width-source: userset; mso-width-alt: 2267;" width="62"> <col style="width: 45pt; mso-width-source: userset; mso-width-alt: 2194;" width="60"> <col style="width: 48pt;" span="5" width="64"> <tbody>
</tbody>
 

Excel Facts

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

Forum statistics

Threads
1,207,255
Messages
6,077,307
Members
446,278
Latest member
hoangquan2310

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