Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Can data be sorted by the length in a field

Swithching to a new computer system at work and the current description field
has 35 characters and the new description field only has 30. I am trying to
sort the original description field that I dumped into excel by the length of
the field. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Can data be sorted by the length in a field

"NanAnn58" wrote:
I am trying to sort the original description field that I dumped into
excel by the length of the field. Is this possible?


Depends on your constraints. I would create a parallel column or row of
helper cells, fill it with =LEN(A1) etc, then sort the pair of columns or
rows by the helper cells.

Alternatively, you could write a macro.


----- original message -----

"NanAnn58" wrote in message
...
Swithching to a new computer system at work and the current description
field
has 35 characters and the new description field only has 30. I am trying
to
sort the original description field that I dumped into excel by the length
of
the field. Is this possible?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Can data be sorted by the length in a field

Use a helper column. Say the text data is in column A. In B1 entrer:
=LEN(A1) and copy down. Then sort cols A & B by B.
--
Gary''s Student - gsnu200906


"NanAnn58" wrote:

Swithching to a new computer system at work and the current description field
has 35 characters and the new description field only has 30. I am trying to
sort the original description field that I dumped into excel by the length of
the field. Is this possible?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Can data be sorted by the length in a field

Add a helper column, with the formula =LEN(A2) and copied down.
Select your full ranmge of data, including all the rows & columns you want
including, and sort by the new helper column.
--
David Biddulph

"NanAnn58" wrote in message
...
Swithching to a new computer system at work and the current description
field
has 35 characters and the new description field only has 30. I am trying
to
sort the original description field that I dumped into excel by the length
of
the field. Is this possible?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Can data be sorted by the length in a field

Thanks, worked perfectly.

"Gary''s Student" wrote:

Use a helper column. Say the text data is in column A. In B1 entrer:
=LEN(A1) and copy down. Then sort cols A & B by B.
--
Gary''s Student - gsnu200906


"NanAnn58" wrote:

Swithching to a new computer system at work and the current description field
has 35 characters and the new description field only has 30. I am trying to
sort the original description field that I dumped into excel by the length of
the field. Is this possible?

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
//sk - Max length of a numeric field. sansk_23 Excel Worksheet Functions 4 September 25th 09 06:12 AM
Pivot Table Field Values not sorted pepperds Excel Discussion (Misc queries) 1 February 16th 07 08:16 PM
Pad field length MarkM Excel Discussion (Misc queries) 2 April 4th 06 04:58 PM
Field length of VBA totals in Excel 2003 JoanE Excel Discussion (Misc queries) 2 August 17th 05 09:49 AM
How do I fix a field length? Karina Excel Discussion (Misc queries) 4 February 1st 05 04:39 PM


All times are GMT +1. The time now is 06:44 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"