#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default extracting substring

Hi,

Please find the follwoing data
abcd efg [R51K]
abc efg[R52E]
abcd efghij [R31K]

From this i need the data without [Rxxx].

please suggest how to do this
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default extracting substring

Try

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

OR

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

--
Jacob


"Rajesh" wrote:

Hi,

Please find the follwoing data
abcd efg [R51K]
abc efg[R52E]
abcd efghij [R31K]

From this i need the data without [Rxxx].

please suggest how to do this
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default extracting substring

Another way using REPLACE()

=REPLACE(A1,FIND("[",A1),99,)

--
Jacob


"Rajesh" wrote:

Hi,

Please find the follwoing data
abcd efg [R51K]
abc efg[R52E]
abcd efghij [R31K]

From this i need the data without [Rxxx].

please suggest how to do this
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default extracting substring

Thank you so much Jacob. it works...

"Jacob Skaria" wrote:

Try

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

OR

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

--
Jacob


"Rajesh" wrote:

Hi,

Please find the follwoing data
abcd efg [R51K]
abc efg[R52E]
abcd efghij [R31K]

From this i need the data without [Rxxx].

please suggest how to do this
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
substring Satyanaidu Excel Discussion (Misc queries) 2 September 11th 09 09:33 AM
Extracting a SubString Brian Excel Discussion (Misc queries) 4 June 28th 07 07:30 PM
Finding a Substring? Jakobshavn Isbrae Excel Worksheet Functions 4 February 22nd 07 03:26 PM
Substring Ldyflyr Excel Discussion (Misc queries) 0 February 15th 07 03:16 PM
Substring Petya Excel Discussion (Misc queries) 0 February 15th 07 02:53 PM


All times are GMT +1. The time now is 09:47 PM.

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"