Extracting Data After Recurring Character in A Parentheses

AlLinden

New Member
Joined
Apr 6, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hello! This is my first time posting so please let me know if there is any additional information that you need from me! I'm using Professional Plus 2019. I work at a numismatic store and I want to be able to sort by the year and the grade of the coin... unfortunately, the grade words in alphabetical order don't order them correctly and it's been a thorn in our side for a long long time so it would be a big help to be able to order them by their more specific number grade instead.

This is the type of information that I am working with (main chart). I'm hoping to extract just the numbers from inside of the parentheses, not the letters. I want to specify that since some entries in the B column have parentheses with only letters. Some don't have parentheses at all (please see second chart below). I tried to FIND "(" and then FIND "-" but it kept extracting from "50-cents" rather than the one from inside the parentheses. Any help is greatly appreciated!

If there is no formula that could work here, are there other settings to only allow numbers in that column? Could I split that column in turn at the "-"? I'm not sure what other solutions I could think of. Perhaps you brilliant minds could help out this small business? :)

(Main chart)

Decimal That Needs Photos RIP.xlsx
ABCDEF
1CodeTitleYearGradePkDn
250-00241871 Canada 50-cents VG-F (VG-10) $1871VG-10
350-00431872H Canada 50-cents Very Good (VG-8) $1872VG-8
450-00941898 Canada 50-cents G-VG (G-6) $1898G-6
550-01061900 Canada 50-cents About Good (AG-3)1900#VALUE!
Sheet1
Cell Formulas
RangeFormula
C2:C5C2=LEFT(B2, 4)
D2:D4D2=MID(B2,FIND("(",B2)+1,FIND(")",B2)-FIND("(",B2)-1)
D5D5=MID(B5,FIND("(",B5)+1,FIND("-",B5)-FIND("(",B5)+2)


(Second chart)

Decimal That Needs Photos RIP.xlsx
ABCD
16750-12912014 Canada 50-cents Brilliant Uncirculated (MS-63)2014MS-63
16850-12952014 Canada 50-cents Proof (non-silver)2014non-silver
16950-12962014 Canada 50-cents Silver Proof2014#VALUE!
Sheet1
Cell Formulas
RangeFormula
C167:C169C167=LEFT(B167, 4)
D167:D169D167=MID(B167,FIND("(",B167)+1,FIND(")",B167)-FIND("(",B167)-1)
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi & welcome to MrExcel.
With those data samples can you post what you actually want.
 
Upvote 0
Hi & welcome to MrExcel.
With those data samples can you post what you actually want.

Something like this if possible. I know that it's kind of a confusing request so thank you for taking an interest!

Decimal That Needs Photos RIP.xlsx
ABCD
1CodeTitleYearGrade
250-00241871 Canada 50-cents VG-F (VG-10) $187110
350-00431872H Canada 50-cents Very Good (VG-8) $18728
450-00941898 Canada 50-cents G-VG (G-6) $18986
550-01061900 Canada 50-cents About Good (AG-3)19003
650-01091900 Canada 50-cents F-VF (F-15) $190015
750-01101900 Canada 50-cents Good (G-4)19004
850-01141900 Canada 50-cents Very Good (VG-8) $19008
Sheet1
Cell Formulas
RangeFormula
C2:C8C2=LEFT(B2, 4)
 
Upvote 0
Ok, how about
+Fluff 1.xlsm
ABCDEF
1CodeTitleYearGradePkDn
250-00241871 Canada 50-cents VG-F (VG-10) $187110
350-00431872H Canada 50-cents Very Good (VG-8) $18728
450-00941898 Canada 50-cents G-VG (G-6) $18986
550-01061900 Canada 50-cents About Good (AG-3)19003
650-12912014 Canada 50-cents Brilliant Uncirculated (MS-63) 63
750-12952014 Canada 50-cents Proof (non-silver)  
850-12962014 Canada 50-cents Silver Proof  
950-00241871 Canada 50-cents VG-F (VG-10) $10
1050-00431872H Canada 50-cents Very Good (VG-8) $8
1150-00941898 Canada 50-cents G-VG (G-6) $6
1250-01061900 Canada 50-cents About Good (AG-3)3
1350-01091900 Canada 50-cents F-VF (F-15) $15
1450-01101900 Canada 50-cents Good (G-4)4
1550-01141900 Canada 50-cents Very Good (VG-8) $8
Lists
Cell Formulas
RangeFormula
C2:C5C2=LEFT(B2, 4)
C6:C8C6=LEFT(B166, 4)
D2:D15D2=IFERROR(LEFT(SUBSTITUTE(REPLACE(B2,1,FIND("-",B2&"-",FIND("(",B2&"(")),""),")",REPT(" ",30)),30)+0,"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,356
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top