Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2007

Tip: Looking for answers? Try searching our database.

Creative Sorting with Letters and Numbers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Solon - 12 Dec 2007 14:12 GMT
Greetings,

We use Excel 2003 and sometimes have a need to sort data that includes
figure references with the section and figure indicators in one column
(Section B, Figure 1 would be "B-1" in that cell).

When we sort, however, we find that figure B-10 will come before B-2. We
understand that Excel is sorting in such a way that it's not 'ten', it's
'one-zero' which comes before two.

We've tried using different cell formatting (General, Number, even Custom)
to no avail, though some of the formats in "Custom" appeared intriguing.

Is there a way to format the cells and/or change sort properties so that a
"B-10" is seen as 'more' than "B-2" so that "B-2" shows up before "B-10"??

Thanks,

Solon
Dave Peterson - 12 Dec 2007 14:40 GMT
I'd use B-02 instead of B-2.

Or split the data into two helper columns--one for the letter and one for the
number and use those helper columns to sort the data.

> Greetings,
>
[quoted text clipped - 15 lines]
>
> Solon

Signature

Dave Peterson

Solon - 12 Dec 2007 14:56 GMT
Dave,
Thanks, actually it's head-slap time for me.

We take two columns Section and Figure, combine them with a handy little
macro, then sort. So I looked at your suggestion, slapped my head, and
re-wrote the macro to do a quick sort THEN combine the columns.

Sometimes the most obvious solution is also the one you just can't see!

Thanks,

Solon

> I'd use B-02 instead of B-2.
>
[quoted text clipped - 24 lines]
>>
>> Solon
Dave Peterson - 12 Dec 2007 15:00 GMT
I hate when that happens! <vbg>

> Dave,
> Thanks, actually it's head-slap time for me.
[quoted text clipped - 41 lines]
> >
> > Dave Peterson

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.