ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I trim "4|+|23.68^" into "23.68" in excel 2000? (https://www.excelbanter.com/excel-worksheet-functions/19719-how-can-i-trim-%224%7C-%7C23-68%5E%22-into-%2223-68%22-excel-2000-a.html)

smb2000user100

How can I trim "4|+|23.68^" into "23.68" in excel 2000?
 

I can not find a solution for it. Please help me. Thank you!
--
George

N Harkawat

If the number that you want to extract always begins after second instance
of "|" and ends just before "^" then use the following: -
=--(MID(A1,FIND("xx",SUBSTITUTE(A1,"|","xx",2))+1,FIN D("^",A1)-(FIND("xx",SUBSTITUTE(A1,"|","xx",2))+1)))

If the number that you want to extract always begins after second instance
of "|" and ends just before "^" then use the following: -

"smb2000user100" wrote in message
...

I can not find a solution for it. Please help me. Thank you!
--
George




smb2000user100

Thank you very much! The formula solved my problem.

Best regards,

George

"N Harkawat" wrote:

If the number that you want to extract always begins after second instance
of "|" and ends just before "^" then use the following: -
=--(MID(A1,FIND("xx",SUBSTITUTE(A1,"|","xx",2))+1,FIN D("^",A1)-(FIND("xx",SUBSTITUTE(A1,"|","xx",2))+1)))

If the number that you want to extract always begins after second instance
of "|" and ends just before "^" then use the following: -

"smb2000user100" wrote in message
...

I can not find a solution for it. Please help me. Thank you!
--
George





Harlan Grove

"N Harkawat" wrote...
If the number that you want to extract always begins after second instance
of "|" and ends just before "^" then use the following: -

....

If these assumptions hold, better to use Edit Replace to eliminate the ^s,
then use Data Text to Columns, Delimited, specify | as the delimiter, and
skip the first two fields.



smb2000user100

Thank you! It is a good solution.

Best regards,

George

"Harlan Grove" wrote:

"N Harkawat" wrote...
If the number that you want to extract always begins after second instance
of "|" and ends just before "^" then use the following: -

....

If these assumptions hold, better to use Edit Replace to eliminate the ^s,
then use Data Text to Columns, Delimited, specify | as the delimiter, and
skip the first two fields.





All times are GMT +1. The time now is 09:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com