Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2013, 07:21 AM
slovenc0417 slovenc0417 is offline Sorting Alphanumeric & Numeric values Windows XP Sorting Alphanumeric & Numeric values Office XP
Novice
Sorting Alphanumeric & Numeric values
 
Join Date: Oct 2009
Posts: 1
slovenc0417 is on a distinguished road
Default Sorting Alphanumeric & Numeric values

At one time I thought I was able to do this by simply formatting the values correctly, but I am having no luck.

Is it possible to sort the following data numerically in a column...

100, 200, 300, 100A, 200A, & 300A



... with the following result.

100
100A
200
200A
300
300A


At present, when I sort this data it sorts as such...

100
200
300
100A
200A
300A

I am aware that there are ways to sort this by using formulas and "helper columns", but for my purpose that would just be ridiculously cumbersome.

Any help would be greatly appreciated!
Reply With Quote
  #2  
Old 06-07-2013, 10:50 AM
BobBridges's Avatar
BobBridges BobBridges is offline Sorting Alphanumeric & Numeric values Windows 7 64bit Sorting Alphanumeric & Numeric values Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I know Excel asks me, when it sees text values that have only numeric characters, whether I should "sort anything that looks like a number, as a number". But that's not what we're talking about here; "100A" wouldn't look like a number to Excel. Off-hand I don't think you can get around the functions and helper columns.

If it's a repetitive task, you can write a program to sort it correctly and transparently—that is, to add the helping columns, do the sort and then delete the helping columns. That's even more work, but it's one-time work and after that you can do the task without having to set it up carefully. But other than that, I don't see a way.
Reply With Quote
  #3  
Old 06-07-2013, 07:58 PM
Catalin.B Catalin.B is offline Sorting Alphanumeric & Numeric values Windows Vista Sorting Alphanumeric & Numeric values Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, România
Posts: 386
Catalin.B is on a distinguished road
Default

Hi, there is something you can try:
In another column, place this formula: ="000"&A1 and copy down as needed (assuming your data starts from A1, change as needed)
After that, copy and paste as values the results of the formula; now you can sort this data, make sure you choose the option " sort numbers and numbers stored as text SEPARATELY".
If you want to return to the previous format of your data, remove the first 3 zero's with: =MID(C1;4;LEN(C1)-3), then copy paste as values...
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting Alphanumeric & Numeric values Creating styles in Word - alphanumeric lists jmichellephd Word 8 03-25-2013 12:14 AM
Sorting Alphanumeric & Numeric values Handle Text / Numeric values in SSRS while Export To Excel achuki Excel 5 02-07-2012 02:14 PM
Sorting Alphanumeric & Numeric values Convert numeric value into words KIM SOLIS Excel 5 09-12-2011 10:53 PM
Sorting Alphanumeric & Numeric values [How To] Generate Alpha Numeric Values in Excel 2010 stnicholas81 Excel 1 07-25-2011 01:31 AM
Sorting Alphanumeric & Numeric values Extract Numbers from Alphanumeric String OTPM Excel 6 05-13-2011 12:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:38 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