Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2018, 07:04 AM
phillip steel phillip steel is offline Sorting with complex piece-marks Windows 10 Sorting with complex piece-marks Office 2016
Novice
Sorting with complex piece-marks
 
Join Date: Jan 2018
Posts: 1
phillip steel is on a distinguished road
Default Sorting with complex piece-marks

I have a list of piece-marks that gets sorted wrong:
321A1
321A10
321A11
321A2
321A3


321A4
321A5
321A6
321A7
321A8
321A9
Notice that the 321A10 and 321A11 are not sorted after the 321A9. Is there a macro or setting that can be used to fix this sort. Excel does not seem to consider the last two numbers as a single whole number but sorts according to sequential alphanumeric values, instead. I cannot change the data, either. This would involve thousands of individual edits and it is not feasible. Do you have a macro that would consider the 321A and the ending number/s separately. Perhaps it could sort according to the first section, being an alphanumeric and then the ending number can be treated as a single whole number so that 321A10 would sort after 321A9.
Thank you.
Reply With Quote
  #2  
Old 01-19-2018, 09:27 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Sorting with complex piece-marks Windows 7 64bit Sorting with complex piece-marks Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi and welcome
Try the following:
say your data is in col A
In B1 enter =RIGHT(A1,LEN(A1)-4)+0 and double click the handle in the right lower corner to extend the formula
Then select data from col A and B and sort by Col B ( you can hide this column if needed)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting with complex piece-marks How do I fix this unknown problem? Right-angle marks in corners - crop marks Quillo1234 Word 2 07-20-2016 02:24 AM
Sorting with complex piece-marks how turn off this row marks? jseh Word 2 04-02-2015 10:47 AM
Sorting with complex piece-marks Single data piece from header? Nisio07 Mail Merge 22 09-24-2014 01:21 AM
Sorting with complex piece-marks What do these marks mean? Jenjen80 Word 1 07-22-2010 07:08 AM
Formatting Marks Drew Outlook 0 12-08-2009 12:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft