Highest Number Letter In A Range

Waterloo

New Member
Joined
Aug 4, 2011
Messages
2
Hi Guys

I have a large single column of related number ranges suffixed with letters ranging from A-Z. The letters represent part numbers. There may be one number in a range (e.g. 0100202037A) or multiple numbers in a range (e.g. 0100200000A, 0100200000B, etc.) All numbers in a number range are suffixed by a letter.

I would like to copy the highest part number for each number range in Column A and place this number in Column B, as per the example below:

Column A Column B

0100200000A
0100200000B
0100200000C
0100200000D
0100200000E
0100200000F
0100200000G 0100200000G
0100201007A
0100201007B 0100201007B
0100201510A 0100201510A
0100202011A
0100202011B 0100202011B
0100202029A
0100202029B
0100202029C 0100202029C
0100202037A 0100202037A

Any help would be most appreciated :nya:

Martin
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
This assumes your data in column A is sorted as in your example.

<br /><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style=";">0100200000A </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style=";">0100200000B </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style=";">0100200000C </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style=";">0100200000D </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style=";">0100200000E </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style=";">0100200000F </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style=";">0100200000G</td><td style=";">0100200000G</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style=";">0100201007A </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style=";">0100201007B</td><td style=";">0100201007B</td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style=";">0100201510A</td><td style=";">0100201510A</td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style=";">0100202011A </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style=";">0100202011B</td><td style=";">0100202011B</td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style=";">0100202029A </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">14</td><td style=";">0100202029B </td><td style=";"></td></tr><tr ><td style="color: #161120;text-align: center;">15</td><td style=";">0100202029C</td><td style=";">0100202029C</td></tr><tr ><td style="color: #161120;text-align: center;">16</td><td style=";">0100202037A</td><td style=";">0100202037A</td></tr></tbody></table><br /><br /><table cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">B1</th><td style="text-align:left">=IF(<font color="Blue">LEFT(<font color="Red">A1,10</font>)<>LEFT(<font color="Red">A2,10</font>), A1, ""</font>)</td></tr></tbody></table></td></tr></table>
Copy the formula in B1 down column B
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,712
Members
452,939
Latest member
WCrawford

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