#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Trimming Data

I have a lenghty list of data all within one column (ie; rows 1 - 2000).
All of the data consists of a branch name followed by some figures in
brackets, ie:

Southampton (12345-654)

Is there a way that I can 'trim' the data to remove everything within the
brackets, including the brackets themselves?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Trimming Data

Terry,

The following formula will remove the bracket part of a name in A2. It
allows for an optional space before the left parenthesis.

=IF(ISNUMBER(FIND(" (",A2)),LEFT(A2,FIND("
(",A2)-1),LEFT(A2,FIND("(",A2)-1))

If it is guaranteed that there will always be a space before the
parenthesis then you can use the simpler formula:

=LEFT(A2,FIND(" (",A2)-1)

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Trimming Data

One way:

Select your data, choose Data/Text to Columns. Select Delimited and
click Next.

If your branch names are all one word, check the space checkbox. If not,
enter "(" (no quotes) in the Other input box. Click Finish. Delete the
unneeded columns.

If you chose "(", your branch names will have a trailing space. To
remove them (if you care to) you can enter

B1: =TRIM(A1)

copy down as far as necessary, then copy column B, select column A and
choose Edit/Paste Special/Values.






In article ,
"Terry Bennett" wrote:

I have a lenghty list of data all within one column (ie; rows 1 - 2000).
All of the data consists of a branch name followed by some figures in
brackets, ie:

Southampton (12345-654)

Is there a way that I can 'trim' the data to remove everything within the
brackets, including the brackets themselves?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Trimming Data


select the range your data resides in then
press Ctrl+H
in Find What: press a space then write this (*)
in Replace with: leave it blank
press Replace All
you are done.
hope this will serve your purpose.

Terry Bennett Wrote:
I have a lenghty list of data all within one column (ie; rows 1 -
2000).
All of the data consists of a branch name followed by some figures in
brackets, ie:

Southampton (12345-654)

Is there a way that I can 'trim' the data to remove everything within
the
brackets, including the brackets themselves?



--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=562032

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Trimming Data

Many thanks guys - all of these work great!

"starguy" wrote in
message ...

select the range your data resides in then
press Ctrl+H
in Find What: press a space then write this (*)
in Replace with: leave it blank
press Replace All
you are done.
hope this will serve your purpose.

Terry Bennett Wrote:
I have a lenghty list of data all within one column (ie; rows 1 -
2000).
All of the data consists of a branch name followed by some figures in
brackets, ie:

Southampton (12345-654)

Is there a way that I can 'trim' the data to remove everything within
the
brackets, including the brackets themselves?



--
starguy
------------------------------------------------------------------------
starguy's Profile:
http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=562032



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
Pull data from another sheet based on certain criteria steve_sr2 Excel Discussion (Misc queries) 1 February 23rd 06 10:08 AM
Importing Data Jillian Excel Worksheet Functions 9 December 23rd 05 12:45 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Saving data in a worksheet within a workbook Homeuser Excel Discussion (Misc queries) 2 August 21st 05 10:49 PM
Line Graph Data Recognition Nat Charts and Charting in Excel 2 April 30th 05 02:07 PM


All times are GMT +1. The time now is 01:31 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"