Part Number Sorting..... Help :)

renojimmyjam

New Member
Joined
Oct 3, 2012
Messages
5
I have tried everything I can think of to accomplish this sort. At this time I have spent more time trying to figure out the sorting of my document than it would have taken to re type it.

Here is my problem:

I have part numbers that are either solid numbers or alphanumeric. When Excel sorts the numbers it sorts the raw numbers and then starts to sort the alpha numeric numbers from left to right.

EG:
192
750
752
775
998
1001
1004
1005
1007
1001A
1001ABM
1001E
1001EB
1009A
100AM
1010N
1011D1
1011D41

<tbody>
</tbody>
Notice that the 100AM is sorted after the 1009A and should be sorted before the 192 at the top.

Thanks for any help I could get on this one. :)
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
hi and welcome to the forum

assume data in column A
if you made a helper column ("B") containing =VALUE(A1)
that would give numeric part, and that sort both columns on col B
 
Upvote 0
Assuming your data start in A2:Axxx

B2: =IF(ISNUMBER(A2),A2,LOOKUP(1E+99,--LEFT(A2,ROW($1:$99))))

C2: =SUBSTITUTE(A2,B2,"")

Select B2:C2 and copy down as far as needed


Select A2:Cxxx and sort column B, then column C. Delete both columns B & C after you finished sorting.
 
Last edited:
Upvote 0
Hey your awesome!! Teethless, But I still have one other problem that I found. :(

Half of my part numbers start with a letter also. Your method worked perfect for the numbers with aft letters but it gives an error with the pre letters. Is there a solution to this problem? Thanks Again!! :)

16391639
16401640
1761B1761B
A1000DA#N/A#N/A
A1001BH#N/A#N/A
A1001C2#N/A#N/A
A1001DH#N/A#N/A
A1001EH#N/A#N/A
A1011-5N#N/A#N/A
A1011D1#N/A#N/A

<colgroup><col style="width:48pt" width="64"> <col style="width:48pt" width="64"> <col style="width:48pt" width="64"> </colgroup><tbody>
</tbody>
 
Upvote 0
Also to complicate the problem some of the part numbers contain TWO letters if the front.

X1055JK
X999
XL7

<colgroup><col style="width:48pt" width="64"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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