ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   extracting string from value in cell (https://www.excelbanter.com/excel-programming/281017-extracting-string-value-cell.html)

solo_razor[_18_]

extracting string from value in cell
 
hello,

I want to extract a text from text within a cell.
example:

cel a1 contains c:\windows\desktop\new\testing.xls
cel a2 contains this formula:
=MID(a1,FIND("*",SUBSTITUTE(a1,"\","*",LEN(a1)-LEN(SUBSTITUTE(a1,"\",""))))+1,LEN(a1))
Cel a2 has now as value : testing.xls

in cell a3 i want to get the c:\windows\desktop\new\ text


Can anybody help

regards,

Niek



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


Chrissy[_5_]

extracting string from value in cell
 
In A3 enter this

= LEFT(A1,LEN(A1)-LEN(A2))

Chrissy.


solo_razor wrote
hello,

I want to extract a text from text within a cell.
example:

cel a1 contains c:\windows\desktop\new\testing.xls
cel a2 contains this formula:
=MID(a1,FIND("*",SUBSTITUTE(a1,"\","*",LEN(a1)-LEN(SUBSTITUTE(a1,"\",""))))+1,LEN(a1))
Cel a2 has now as value : testing.xls

in cell a3 i want to get the c:\windows\desktop\new\ text


Can anybody help

regards,

Niek



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/





All times are GMT +1. The time now is 12:09 PM.

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