|
-
May 19th, 2003, 11:00 AM
#1
Thread Starter
Fanatic Member
[Resolved] Sorting ...
Hi,
How can I get the data in an Excel column sorted as:
Fruit 1
Fruit 2
Fruit 3
Fruit 11
Fruit 21
Fruit 31
Instead of:
Fruit 1
Fruit 11
Fruit 2
Fruit 21
Fruit 3
Fruit 31
The second version is what Excel produces by default when the Sort button is clicked on the Toolbar.
Thanks,
OneSource
Last edited by OneSource; May 26th, 2003 at 07:16 AM.
-
May 19th, 2003, 10:35 PM
#2
You need to put "Fruit" in one column and the numbers in
another. Format Fruit as a text column and the number as a
Numeric column.
Currently the column is formatted as text so Excel sees even the
numbers as text. The way you describe the first sorting is correct
for "Text" formatted column.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
May 20th, 2003, 06:47 AM
#3
Thread Starter
Fanatic Member
RobDog888 ...
Thanks for your response.
Separating the values into 2 columns isn't an option because I don't have control over the input. I was able to get the sort to work using VBA code. I had hoped that there would have been an easier solution provided by Excel because I'm pretty sure that many people would want their data sorted this way.
Thanks again,
OneSource
-
May 26th, 2003, 06:30 AM
#4
Why don'T you use two hidden columns, in which you can put the text and the number seperatly, then sort, and see nothing of those hidden lines. You might even delete them afterwards, if you don'T like to have the columns named a, d,e,f......!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
May 26th, 2003, 07:28 AM
#5
Thread Starter
Fanatic Member
Opus ...
Thanks for your reply, but ...
Originally posted by OneSource
...Separating the values into 2 columns isn't an option because I don't have control over the input.
The good news is that
Originally posted by OneSource
I was able to get the sort to work using VBA code.
Thanks again, OneSource
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|