Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to know if it is possible to extract information from one cell into
another cell in the same row. I have for example in A1: Jones (Smith) I would like to remove (Smith) from A1: and insert it into B1: as Smith. there may or may not be a () selection in column A. Any help or suggestions as always, are greatly appreciated. -- Regards Michael Koerner |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this :
Function removePar(pstrName as String) as String Dim strResult as String strResult = Replace(pstrName, "(", " ") strResult = Trim(Replace(strResult, ")", " ")) removePar = strResult End Functio -- Message posted from http://www.ExcelForum.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not being very knowledgeable in this area, I am assuming that what you suggested
removes the () I would also like to have what was between the () moved to another column, same row. -- Regards Michael Koerner "tolgag " wrote in message ... Try this : Function removePar(pstrName as String) as String Dim strResult as String strResult = Replace(pstrName, "(", " ") strResult = Trim(Replace(strResult, ")", " ")) removePar = strResult End Function --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need help extracting data from cell.... | Excel Worksheet Functions | |||
Extracting Data From The Right of a Cell | Excel Worksheet Functions | |||
Extracting text from a cell | Excel Worksheet Functions | |||
Extracting from a cell | Excel Discussion (Misc queries) | |||
I need help extracting some data from a cell | Excel Worksheet Functions |