Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way to pick out the leading numbers is to use this kind of array formula:
=--LEFT(A4,MIN(MATCH(TRUE, ISERROR(-MID(A4&"x",ROW(INDIRECT("1:"&LEN(A4)+1)),1)),0))-1) This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it correctly, excel will wrap curly brackets {} around your formula. (don't type them yourself.) If you need to extract the remaining stuff, you can use this formula: =MID(A1,LEN(B1)+1,255) I put the data in A1. That array formula in B1. and that final formula in C1. Then sort all the columns by B and C. maacmaac wrote: Alan, The formula did not quite work; I should have used real numbers. The actual numbers are as follows (I have an actual list of about 500 that need to be sorted) 45624X456 692000111 69200R345 23563Y403 893000222 89300G234 Thanks -- maacmaac ------------------------------------------------------------------------ maacmaac's Profile: http://www.excelforum.com/member.php...fo&userid=2959 View this thread: http://www.excelforum.com/showthread...hreadid=506446 -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Select rows and sort based on type | Excel Discussion (Misc queries) | |||
Is there a simple way to do a randomizing sort? | Excel Discussion (Misc queries) | |||
sorting more than 3 keys | Excel Discussion (Misc queries) | |||
"-" ignored in sort | Excel Discussion (Misc queries) | |||
HELP! How do you--> Lock a set of rows but also link worksheets to | Excel Discussion (Misc queries) |