Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have several hundred numbers in my Excel file that need to be converted as
noted in the subject. The sorting is awkward in that 1001-11 sorts before 1001-2 and is obviously out of order- at least for my purposes. -- SgtBob |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
These aren't numbers to Excel, they're text. So you do something like this:
=if(len(a1)=6,left(a1,5)&"0"&right(a1,1),a1) Regards, Fred "Bob" wrote in message ... I have several hundred numbers in my Excel file that need to be converted as noted in the subject. The sorting is awkward in that 1001-11 sorts before 1001-2 and is obviously out of order- at least for my purposes. -- SgtBob |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=LEFT(A1,FIND("-",A1)-1) & "-" & TEXT(MID(A1,FIND("-",A1)+1,10),"00")
If this post helps click Yes --------------- Jacob Skaria "Bob" wrote: I have several hundred numbers in my Excel file that need to be converted as noted in the subject. The sorting is awkward in that 1001-11 sorts before 1001-2 and is obviously out of order- at least for my purposes. -- SgtBob |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here's another formula to try out...
=IF(MID(A1,LEN(A1)-1,1)="-",SUBSTITUTE(A1,"-","-0"),A1) -- Rick (MVP - Excel) "Bob" wrote in message ... I have several hundred numbers in my Excel file that need to be converted as noted in the subject. The sorting is awkward in that 1001-11 sorts before 1001-2 and is obviously out of order- at least for my purposes. -- SgtBob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HOW DO I SORT NUMBERS WITH TEXT EX 1000 1001 1000A | Excel Discussion (Misc queries) | |||
From 1001 to 1001-1 | Excel Worksheet Functions | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
convert decimal number to time : convert 1,59 (minutes, dec) to m | Excel Discussion (Misc queries) | |||
Event 1001 & 1004 | Excel Discussion (Misc queries) |