Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default Extra string before a specific character

I have a column of data, like CA-, THAMES-, AWR-. etc. I want to pull all
data before the "-". It could be 2 characters to 6. Any ideas? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Extra string before a specific character

Try this:

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

assuming your test is in A1, then copy down as required.

Hope this helps.

Pete

On Feb 11, 1:39*pm, Sandra wrote:
I have a column of data, like CA-, THAMES-, AWR-. etc. *I want to pull all
data before the "-". *It could be 2 characters to 6. *Any ideas? *Thanks.


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
Counting specific character in text string Bob Excel Worksheet Functions 3 January 18th 07 08:44 PM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
check if the text string start with a specific character September21 New Users to Excel 5 September 22nd 05 03:07 PM
Changing a specific character type in text string olasa Excel Discussion (Misc queries) 0 March 20th 05 11:35 PM
Extra Character in cell Daniell Excel Worksheet Functions 1 November 12th 04 10:34 PM


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