LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Sorted Fixed Length String

Hi Everyone,

I have a String of Numerical Digits Created Using Concatenate.
The Strings could be from 6 Characters in Length to 11 Characters in
Length.
The Most Characters in a String with a Digit GREATER than 1 can ONLY be
6, the Remainder of the Digits will be 0.
The Least Characters in a String with a Digit GREATER than 1 can ONLY be
1, the Remainder of the Digits will be 0.

Is there a Formula that will Produce a String of ONLY 6 Characters Long
Please.
Is it also Possible to Sort the String with the Highest Digit on the
Left to the Lowest Digit on the Right Please.

For Example :-
11111100000 would Become 111111
111120000 would Become 211110
11103000 would Become 311100
11220000 would Become 221100
00510000000 would Become 510000
123000 would Become 321000

Thanks in Advance.
All the Best.
Paul




*** Sent via Developersdex http://www.developersdex.com ***
 
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
Fixed length string of text MWysack Excel Discussion (Misc queries) 7 March 21st 13 12:05 AM
Can data be sorted by the length in a field NanAnn58 Excel Worksheet Functions 4 October 6th 09 02:08 AM
Creating sequential text string of fixed length dhstein Excel Discussion (Misc queries) 7 December 10th 08 03:52 AM
creating numbers to a fixed length string... ds Excel Worksheet Functions 4 July 5th 07 01:06 AM
fixed string length,even other record is copied viv Excel Discussion (Misc queries) 0 May 30th 05 08:28 PM


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