ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find and copy data between () (https://www.excelbanter.com/excel-discussion-misc-queries/245992-find-copy-data-between.html)

ty

Find and copy data between ()
 
Im trying to create a column that has only the data found in another column
that is between ().

EX: cell G2: C6653FN (HP 15) INK, 2/PK, BLACK

Output wanted: HP 15

what formula would find this?
--
Thanks, Ty

Jacob Skaria

Find and copy data between ()
 
Try
=TRIM(LEFT(SUBSTITUTE(MID(G2,FIND("(",G2)+1,255)," )",REPT(" ",255)),255))

If this post helps click Yes
---------------
Jacob Skaria


"Ty" wrote:

Im trying to create a column that has only the data found in another column
that is between ().

EX: cell G2: C6653FN (HP 15) INK, 2/PK, BLACK

Output wanted: HP 15

what formula would find this?
--
Thanks, Ty


CM

Find and copy data between ()
 
try:

=MID(G2,FIND("(",G2)+1,FIND(")",G2)-FIND("(",G2)-1)
--
hope to help,
cm


"Ty" wrote:

Im trying to create a column that has only the data found in another column
that is between ().

EX: cell G2: C6653FN (HP 15) INK, 2/PK, BLACK

Output wanted: HP 15

what formula would find this?
--
Thanks, Ty


T. Valko

Find and copy data between ()
 
Try this:

=MID(G2,FIND("(",G2)+1,FIND(")",G2)-1-FIND("(",G2))

--
Biff
Microsoft Excel MVP


"Ty" wrote in message
...
Im trying to create a column that has only the data found in another
column
that is between ().

EX: cell G2: C6653FN (HP 15) INK, 2/PK, BLACK

Output wanted: HP 15

what formula would find this?
--
Thanks, Ty




ty

Find and copy data between ()
 
This worked, Thanks
--
Thanks, Ty


"cm" wrote:

try:

=MID(G2,FIND("(",G2)+1,FIND(")",G2)-FIND("(",G2)-1)
--
hope to help,
cm


"Ty" wrote:

Im trying to create a column that has only the data found in another column
that is between ().

EX: cell G2: C6653FN (HP 15) INK, 2/PK, BLACK

Output wanted: HP 15

what formula would find this?
--
Thanks, Ty



All times are GMT +1. The time now is 09:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com