Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Abi
 
Posts: n/a
Default Sorting, Merging, and Re-merging

A co-worker has a spreadsheet with five columns. One of the columns contains
a string of characters similar to the following:

ABC 12345 description of the project
BBC 30492 another project description
ZZY 01234 a third description of a project

She split that column into three columns so that she could sort on the
numbers. Now she wants to put the rows back together in the order she sorted
them in.

Is this possible? Is there a way to sort on those numbers without spliting
them into separate columns?

Thanks!
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Is this possible? Is there a way to sort on those numbers without
spliting
them into separate columns?


The easiest way is to use a helper column of formulas to extract the values
on which to base the sort. For example, if
ABC 12345
were in cell A1, then the formula:

=VALUE(MID(A1,FIND(" ",A1)+1,LEN(A1)))

will extract the final number. Copy that down, then select everything and
sort on that column.

HTH,
Bernie
MS Excel MVP


"Abi" wrote in message
...
A co-worker has a spreadsheet with five columns. One of the columns

contains
a string of characters similar to the following:

ABC 12345 description of the project
BBC 30492 another project description
ZZY 01234 a third description of a project

She split that column into three columns so that she could sort on the
numbers. Now she wants to put the rows back together in the order she

sorted
them in.

Is this possible? Is there a way to sort on those numbers without

spliting
them into separate columns?

Thanks!



  #3   Report Post  
RagDyer
 
Posts: n/a
Default

Just how did your co-worker actually split the column?

You can split a column using TTC (Text To Columns), where the original data
remains *untouched*, then sort on the split column(s), while including the
original column within the sort range, and then throw away the split data,
leaving the original as is *but* sorted.

Select the column, then
<Data <Text To Columns,
Click "Fixed Width", then <Next,
Click on where you wish to create your separations, where you can drag the
break lines to wherever, then <Next.
In this third window of the TTC wizard, there's a "Destination" box, with
the address defaulted to that of the original column.
Simply change that to any other column, and the original will remain as is,
while the "split" columns will start at the column you entered in this
destination box.

Then, simply select all the columns, including the original, and sort and
set your sort key to whatever column you wish.

After sorting, you can throw away the "split" data columns.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================





"Abi" wrote in message
...
A co-worker has a spreadsheet with five columns. One of the columns

contains
a string of characters similar to the following:

ABC 12345 description of the project
BBC 30492 another project description
ZZY 01234 a third description of a project

She split that column into three columns so that she could sort on the
numbers. Now she wants to put the rows back together in the order she

sorted
them in.

Is this possible? Is there a way to sort on those numbers without

spliting
them into separate columns?

Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging Two Cells and Keeping the Values Raymond Excel Discussion (Misc queries) 10 May 30th 05 08:05 PM
Merging data from Excel to Word frankfox44 Excel Worksheet Functions 3 April 13th 05 09:25 PM
WRAP a text line over several columns without merging cells Conrad S Excel Worksheet Functions 1 March 22nd 05 03:52 AM
WRAP a text line over several columns without merging cells Conrad Excel Worksheet Functions 0 March 21st 05 11:03 PM
sorting question Brian Excel Discussion (Misc queries) 4 November 28th 04 12:30 PM


All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"