PDA

View Full Version : [SOLVED:] Extract part of a line and paste in another cell



kmlartigue
08-10-2017, 01:06 PM
Is there a code to extrat the part just inside the () and place it in another cell?

For example, TESTER ACCOUNT TR (444444444) , extract just 444444444 and place it in another cell?

mdmackillop
08-10-2017, 01:47 PM
=MID(A1,FIND("(",A1)+1,FIND(")",A1)-FIND("(",A1)-1)*1

kmlartigue
08-11-2017, 07:42 AM
See the attached Test.xlsx file. I keep getting an error when I run that code. Again, I am trying to extract the number inside the ( ) in B3 and place that number in A3.

kmlartigue
08-11-2017, 07:43 AM
Nevermind on error issues - the code works! Thank you!