Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Extract data from bracket

Dear all,

I have 3 coulumns of data

A B C
May (17) May 17
Peter (25) Peter 25
Jason (5) Jason 5

By formula, how to extract column B and C from column A?

Thank you

Kent



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Extract data from bracket

Try these...

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

C1:
=--SUBSTITUTE(MID(A1,FIND("(",A1)+1,10),")","")

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear all,

I have 3 coulumns of data

A B C
May (17) May 17
Peter (25) Peter 25
Jason (5) Jason 5

By formula, how to extract column B and C from column A?

Thank you

Kent





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Extract data from bracket

Dear Valko,

B1 works but C1 only returns an #VALUE!


Kent




"T. Valko" .gbl...
Try these...

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

C1:
=--SUBSTITUTE(MID(A1,FIND("(",A1)+1,10),")","")

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear all,

I have 3 coulumns of data

A B C
May (17) May 17
Peter (25) Peter 25
Jason (5) Jason 5

By formula, how to extract column B and C from column A?

Thank you

Kent







  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Extract data from bracket

Works OK for me on your posted sample data.

Are there any non-numbers within the ( )?

May (x)
Peter (10A)

There may also be unseen whitespace characters like HTML char 160 at the end
of the string.

May (17)<char 160

Try one of these in C1:

=--SUBSTITUTE(LEFT(A1,FIND(")",A1)-1),B1&" (","")
=SUBSTITUTE(LEFT(A1,FIND(")",A1)-1),B1&" (","")

If there are non-numbers within the ( ) then the 1st one will still return
an error.

The 2nd one will return whatever's inside the ( ) as TEXT (even if it's a
number).

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear Valko,

B1 works but C1 only returns an #VALUE!


Kent




"T. Valko"
.gbl...
Try these...

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

C1:
=--SUBSTITUTE(MID(A1,FIND("(",A1)+1,10),")","")

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear all,

I have 3 coulumns of data

A B C
May (17) May 17
Peter (25) Peter 25
Jason (5) Jason 5

By formula, how to extract column B and C from column A?

Thank you

Kent









  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Extract data from bracket

Dear Valko,

You're right.
Pure alpha-numeric works with your formula but my stuffs inside bracket are
Chinese.
Thanks very much for your assistance.

Kent




"T. Valko" bl...
Works OK for me on your posted sample data.

Are there any non-numbers within the ( )?

May (x)
Peter (10A)

There may also be unseen whitespace characters like HTML char 160 at the
end of the string.

May (17)<char 160

Try one of these in C1:

=--SUBSTITUTE(LEFT(A1,FIND(")",A1)-1),B1&" (","")
=SUBSTITUTE(LEFT(A1,FIND(")",A1)-1),B1&" (","")

If there are non-numbers within the ( ) then the 1st one will still return
an error.

The 2nd one will return whatever's inside the ( ) as TEXT (even if it's a
number).

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear Valko,

B1 works but C1 only returns an #VALUE!


Kent




"T. Valko" .gbl...
Try these...

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

C1:
=--SUBSTITUTE(MID(A1,FIND("(",A1)+1,10),")","")

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear all,

I have 3 coulumns of data

A B C
May (17) May 17
Peter (25) Peter 25
Jason (5) Jason 5

By formula, how to extract column B and C from column A?

Thank you

Kent













  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Extract data from bracket

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear Valko,

You're right.
Pure alpha-numeric works with your formula but my stuffs inside bracket
are Chinese.
Thanks very much for your assistance.

Kent




"T. Valko"
bl...
Works OK for me on your posted sample data.

Are there any non-numbers within the ( )?

May (x)
Peter (10A)

There may also be unseen whitespace characters like HTML char 160 at the
end of the string.

May (17)<char 160

Try one of these in C1:

=--SUBSTITUTE(LEFT(A1,FIND(")",A1)-1),B1&" (","")
=SUBSTITUTE(LEFT(A1,FIND(")",A1)-1),B1&" (","")

If there are non-numbers within the ( ) then the 1st one will still
return an error.

The 2nd one will return whatever's inside the ( ) as TEXT (even if it's a
number).

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear Valko,

B1 works but C1 only returns an #VALUE!


Kent




"T. Valko"
.gbl...
Try these...

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

C1:
=--SUBSTITUTE(MID(A1,FIND("(",A1)+1,10),")","")

--
Biff
Microsoft Excel MVP


"Kent" wrote in message
...
Dear all,

I have 3 coulumns of data

A B C
May (17) May 17
Peter (25) Peter 25
Jason (5) Jason 5

By formula, how to extract column B and C from column A?

Thank you

Kent













  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Try this

Try this to get data from brackets. It works any data inside the brackets:

=LEFT((RIGHT(A1;(LEN(A1))-(FIND("(";A1))));F2-1)





T. Valko wrote:

You're welcome. Thanks for the feedback!--BiffMicrosoft Excel MVP
26-okt.-09

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
Pragmatic ADO.NET
http://www.eggheadcafe.com/tutorials...ic-adonet.aspx
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Correction

Sorry. The full script is:
=LEFT((RIGHT(A1;(LEN(A1))-(FIND("(";A1))));(LEN((RIGHT(A1;(LEN(A1))-(FIND("(";A1))))))-1)



George Slartibartfast wrote:

Try this
14-nov.-09

Try this to get data from brackets. It works any data inside the brackets:

=LEFT((RIGHT(A1;(LEN(A1))-(FIND("(";A1))));F2-1)

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
Access Modifiers
http://www.eggheadcafe.com/tutorials...modifiers.aspx
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
Bracket {..} in formulas milet New Users to Excel 3 October 1st 09 05:01 PM
basketball bracket tonyalt3 Excel Worksheet Functions 5 March 16th 09 10:01 PM
Need Help with Bracket system steve_ojapan Excel Discussion (Misc queries) 0 February 1st 08 10:38 PM
How do I bracket a column of numbers? Dididdle Excel Discussion (Misc queries) 0 April 23rd 07 10:44 PM
World Cup bracket help upper90 Excel Discussion (Misc queries) 4 June 2nd 06 09:47 PM


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