Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
olasa
 
Posts: n/a
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto-fill text based on text in another cell Jason Excel Discussion (Misc queries) 3 February 16th 05 08:40 PM
Moving text from one cell to another. estaban botas Excel Worksheet Functions 1 December 15th 04 02:04 PM
Formatting a cell as "text" in the number catagory. Ed Excel Worksheet Functions 3 December 7th 04 07:12 PM
Forcing text onto new line in cell Doug Poll New Users to Excel 2 December 3rd 04 12:09 PM
want if cell containts text, then increase count by one lsundae Excel Worksheet Functions 4 November 18th 04 02:11 PM


All times are GMT +1. The time now is 06:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"