Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 164
Default Extracting from one cell to another cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extracting from one cell to another cell

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 164
Default Extracting from one cell to another cell

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
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
need help extracting data from cell.... Chris Persheff Excel Worksheet Functions 5 October 21st 11 06:16 PM
Extracting Data From The Right of a Cell Brian Ashcraft Excel Worksheet Functions 1 March 31st 11 12:38 AM
Extracting text from a cell James Excel Worksheet Functions 3 December 10th 07 09:58 PM
Extracting from a cell Walter H Excel Discussion (Misc queries) 2 January 26th 07 04:13 PM
I need help extracting some data from a cell hshayh0rn Excel Worksheet Functions 5 December 11th 06 06:32 PM


All times are GMT +1. The time now is 03:26 AM.

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

About Us

"It's about Microsoft Excel"