Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Etracting Text from a cell
This is one option: ColB: =LEFT(A5,SEARCH(",",A5)-1) ColC: =RIGHT(A5,LEN(A5)-SEARCH(",",A5)) This is the result: ColA............ColB..........ColC.... Doe,John.....Doe..........John [Blank]........#VALUE!...#VALUE! To you want to avoid #VALUE! use this instead: ColB: =IF(ISERROR(LEFT(A5,SEARCH(",",A5)-1)),"",LEFT(A5,SEARCH(",",A5)-1)) ColC: =IF(ISERROR(RIGHT(A5,LEN(A5)-SEARCH(",",A5))),"",RIGHT(A5,LEN(A5)-SEARCH(",",A5))) Ola Sandström -- olasa ------------------------------------------------------------------------ olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760 View this thread: http://www.excelforum.com/showthread...hreadid=355962 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to auto-fill text based on text in another cell | Excel Discussion (Misc queries) | |||
Moving text from one cell to another. | Excel Worksheet Functions | |||
Formatting a cell as "text" in the number catagory. | Excel Worksheet Functions | |||
Forcing text onto new line in cell | New Users to Excel | |||
want if cell containts text, then increase count by one | Excel Worksheet Functions |