Remember Me?

#1
December 18th 04, 01:15 AM
 confused on the tundra Posts: n/a
Sorting when some numbers have a text suffix

I have about 1350 5 and 6 digit numbers starting in column B2 that I would
like to be sorted. About 200 of the numbers have "A" at the end along with a
coulpe that have "B", "C", "D", and "E" . All the numbers with a letter are
six digits long if that helps i.e. 123456A. Now when I sort the numbers sort
fine but all the numbers with a letter attached are at the bottom of the
list, presumably as text. How can get the numbers and text"numbers" to sort
together?

#2
December 18th 04, 02:24 AM
 CLR Posts: n/a

One way would be to break off the letters using data Text-to-columns
Fixed, and put them in the next column, then sort using your regular column
as the first sort-key and this new column as your second
sort-key............then you could Concatenate them back together if you
wish......

Vaya con Dios,
Chuck, CABGx3

"confused on the tundra"
wrote in message ...
I have about 1350 5 and 6 digit numbers starting in column B2 that I would
like to be sorted. About 200 of the numbers have "A" at the end along with

a
coulpe that have "B", "C", "D", and "E" . All the numbers with a letter

are
six digits long if that helps i.e. 123456A. Now when I sort the numbers

sort
fine but all the numbers with a letter attached are at the bottom of the
list, presumably as text. How can get the numbers and text"numbers" to

sort
together?

#3
December 18th 04, 02:32 AM
 Domenic Posts: n/a

Try the following...

C2, copied down:

=IF(D2="",B2,--SUBSTITUTE(B2,D2,""))

D2, copied down:

=IF(ISNUMBER(--B2),"",RIGHT(B2))

Then select Columns B, C and D, and sort by Column C and D...

Data Sort Sort by "Column C" Then by "Column D"

Hope this helps!

In article ,
"CLR" wrote:

One way would be to break off the letters using data Text-to-columns
Fixed, and put them in the next column, then sort using your regular column
as the first sort-key and this new column as your second
sort-key............then you could Concatenate them back together if you
wish......

Vaya con Dios,
Chuck, CABGx3

"confused on the tundra"
wrote in message ...
I have about 1350 5 and 6 digit numbers starting in column B2 that I would
like to be sorted. About 200 of the numbers have "A" at the end along with

a
coulpe that have "B", "C", "D", and "E" . All the numbers with a letter

are
six digits long if that helps i.e. 123456A. Now when I sort the numbers

sort
fine but all the numbers with a letter attached are at the bottom of the
list, presumably as text. How can get the numbers and text"numbers" to

sort
together?

#4
December 18th 04, 08:18 AM
 Arvi Laanemets Posts: n/a

Hi

Create an helper column with formula in it (an example for row a2 below):
="" & B2
and sort your data on this helper column.

Arvi Laanemets

"confused on the tundra"
wrote in message ...
I have about 1350 5 and 6 digit numbers starting in column B2 that I would
like to be sorted. About 200 of the numbers have "A" at the end along with

a
coulpe that have "B", "C", "D", and "E" . All the numbers with a letter

are
six digits long if that helps i.e. 123456A. Now when I sort the numbers

sort
fine but all the numbers with a letter attached are at the bottom of the
list, presumably as text. How can get the numbers and text"numbers" to

sort
together?

#5
December 18th 04, 10:07 PM
 confused on the tundra Posts: n/a

"Domenic" wrote:

Try the following...

C2, copied down:

=IF(D2="",B2,--SUBSTITUTE(B2,D2,""))

This populated column C with values from B until it got to the numbers with
the letter suffix and put #value with the little triangle in the upperleft
corner.

D2, copied down:

=IF(ISNUMBER(--B2),"",RIGHT(B2))

When I do this no numbers show up in the any of the cells but the formula is
in the Fx box on the tool bar for all the cells.

Then select Columns B, C and D, and sort by Column C and D...

Data Sort Sort by "Column C" Then by "Column D"

When I sort it stays the same as before with the number with suffixes on the
bottom.

What am I doing wrong?

One way would be to break off the letters using data Text-to-columns
Fixed, and put them in the next column, then sort using your regular column
as the first sort-key and this new column as your second
sort-key............then you could Concatenate them back together if you
wish......

BINGO! that did the trick. Thanks
Vaya con Dios,
Chuck, CABGx3

#6
December 18th 04, 10:19 PM
 confused on the tundra Posts: n/a

That got it! Thanks. I just have to remenber to keep the two pre concatenate
columns there so I can resort after changes and sort by other columns.

"CLR" wrote:

One way would be to break off the letters using data Text-to-columns
Fixed, and put them in the next column, then sort using your regular column
as the first sort-key and this new column as your second
sort-key............then you could Concatenate them back together if you
wish......

Vaya con Dios,
Chuck, CABGx3

"confused on the tundra"
wrote in message ...
I have about 1350 5 and 6 digit numbers starting in column B2 that I would
like to be sorted. About 200 of the numbers have "A" at the end along with

a
coulpe that have "B", "C", "D", and "E" . All the numbers with a letter

are
six digits long if that helps i.e. 123456A. Now when I sort the numbers

sort
fine but all the numbers with a letter attached are at the bottom of the
list, presumably as text. How can get the numbers and text"numbers" to

sort
together?

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 Posting Rules Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On

 Similar Threads Thread Thread Starter Forum Replies Last Post Confused on the tundra Excel Discussion (Misc queries) 5 December 17th 04 07:33 PM Ralph Excel Discussion (Misc queries) 2 December 10th 04 07:05 PM darebo Excel Discussion (Misc queries) 2 December 6th 04 05:01 PM burkeville Excel Discussion (Misc queries) 5 December 3rd 04 01:59 AM Scott Excel Discussion (Misc queries) 3 November 26th 04 09:17 PM

All times are GMT +1. The time now is 09:09 PM.