Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Gary,
Not sure if you want a worksheet formula or a VBA formula because the post is in a programming forum and examples are worksheet so here is both:- Worksheet formula assuming cell A1 has the value:- =LEFT(A1,FIND(CHAR(10),A1)-1) VBA formula assuming cell A1 has the value:- Dim strTest as String strTest = Left(Range("A1"), InStr(1, Range("A1"), Chr(10)) - 1) Regards, OssieMac |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need to find a function. | Excel Worksheet Functions | |||
Find function | Excel Programming | |||
Help with the FIND function | Excel Worksheet Functions | |||
Help with find function please! | Excel Programming | |||
backwards find function to find character in a string of text | Excel Programming |