Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a string, such as "msl=30mk/kg". I want to reorganize it to "30
(msl)". but the troubles are that the digits of number (30) is not stable, this time 30, that time 40.89, maybe next time whatever it want to be. Besides, the unit "mk/kg" is not stable, either. till now, I have wrotten the following function. but the troubles listed upon can't be solved yet. who can help me? =MID(A1,FIND("=",A1,1)+1,2) & " (" & MID(A1,1,FIND("=",A1,1)-1) & ")" |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"01234 56789")),SUMPRODUCT(LEN(A1)-LEN(SUBSTITUTE(A1,{0,1,2,3,4,5,6,7,8,9},""))))&LEF T(A1,FIND("=",A1)-1)
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "ViestaWu" wrote in message ... I have a string, such as "msl=30mk/kg". I want to reorganize it to "30 (msl)". but the troubles are that the digits of number (30) is not stable, this time 30, that time 40.89, maybe next time whatever it want to be. Besides, the unit "mk/kg" is not stable, either. till now, I have wrotten the following function. but the troubles listed upon can't be solved yet. who can help me? =MID(A1,FIND("=",A1,1)+1,2) & " (" & MID(A1,1,FIND("=",A1,1)-1) & ")" |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reorganize Data | Excel Discussion (Misc queries) | |||
Reorganize Excel Options | Setting up and Configuration of Excel | |||
Splitting a text string into string and number | Excel Discussion (Misc queries) | |||
to search for a string and affect data if it finds the string? | Excel Worksheet Functions | |||
Reorganize list | Excel Discussion (Misc queries) |