#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default problem sorting data

I have a column that is text but is a long string and I would like to sort
using a piece of the data. each time I try I get an error.
Example: HEJ,FEJ,123456,987654,111122,223333,444555,
How could I sort this column by 223333?
--
clcnewtoaccess
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default problem sorting data

You could try using a helper column with a formula like this
=MID(A2,30,6)
and then sort by that. (this assumes your data is all similar in
format/start length)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"clcnewtoaccess" wrote:

I have a column that is text but is a long string and I would like to sort
using a piece of the data. each time I try I get an error.
Example: HEJ,FEJ,123456,987654,111122,223333,444555,
How could I sort this column by 223333?
--
clcnewtoaccess

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default problem sorting data

it does not show up in the same location every time, some times there are
more and some times there are less.
--
clcnewtoaccess


"Luke M" wrote:

You could try using a helper column with a formula like this
=MID(A2,30,6)
and then sort by that. (this assumes your data is all similar in
format/start length)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"clcnewtoaccess" wrote:

I have a column that is text but is a long string and I would like to sort
using a piece of the data. each time I try I get an error.
Example: HEJ,FEJ,123456,987654,111122,223333,444555,
How could I sort this column by 223333?
--
clcnewtoaccess

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default problem sorting data

Hi,

Select the column of data (say column A) and choose the Data, Text to
Columns command. You data looks like it is comma delimited, if so choose
Delimited, Next, Comma, Next, and select each column you don't need and
select the Skip (do not import) option, set the destination cell to column B
and click Finish. Sort on this new column.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"clcnewtoaccess" wrote:

it does not show up in the same location every time, some times there are
more and some times there are less.
--
clcnewtoaccess


"Luke M" wrote:

You could try using a helper column with a formula like this
=MID(A2,30,6)
and then sort by that. (this assumes your data is all similar in
format/start length)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"clcnewtoaccess" wrote:

I have a column that is text but is a long string and I would like to sort
using a piece of the data. each time I try I get an error.
Example: HEJ,FEJ,123456,987654,111122,223333,444555,
How could I sort this column by 223333?
--
clcnewtoaccess

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default problem sorting data

I would just break it all into separate cells using datatext to
columnsde-limited by space.

Select all columns and sort on whichever column you want.


Gord Dibben MS Excel MVP

On Mon, 9 Feb 2009 10:11:01 -0800, clcnewtoaccess
wrote:

I have a column that is text but is a long string and I would like to sort
using a piece of the data. each time I try I get an error.
Example: HEJ,FEJ,123456,987654,111122,223333,444555,
How could I sort this column by 223333?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default problem sorting data

that works great but I ran into another problem. I found that there is data
entered multiple times on the same row. Do you know a way to get rid of the
multiples?
--
clcnewtoaccess


"Gord Dibben" wrote:

I would just break it all into separate cells using datatext to
columnsde-limited by space.

Select all columns and sort on whichever column you want.


Gord Dibben MS Excel MVP

On Mon, 9 Feb 2009 10:11:01 -0800, clcnewtoaccess
wrote:

I have a column that is text but is a long string and I would like to sort
using a piece of the data. each time I try I get an error.
Example: HEJ,FEJ,123456,987654,111122,223333,444555,
How could I sort this column by 223333?



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
Data sorting problem Gracewood Excel Discussion (Misc queries) 2 May 31st 08 01:42 AM
Problem with Range and Sorting Data Elise148 Excel Discussion (Misc queries) 0 July 5th 07 03:40 PM
Problem with Sorting Data reggiebu Excel Discussion (Misc queries) 2 June 9th 05 09:37 PM
data sorting problem Pong Excel Worksheet Functions 0 February 18th 05 05:45 PM
data sorting problem Pong Excel Worksheet Functions 0 February 18th 05 05:39 PM


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

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

About Us

"It's about Microsoft Excel"