Country_Calc
New Member
- Joined
- Feb 14, 2017
- Messages
- 48
- Office Version
- 365
I need to extract the number to the left of the "/"
Data Example - B4: Innsbruck, University Hospital, (ads, peds), CIC 271, G. Gastl, D. Nachbaur (79 (82) 41/38)
Desired result = 41
The number could be 1 to 3 characters, but any method of getting closer would help.
I found an example on the board that gives me the number to the right of the "/" which works perfectly, but I can't figure out how to apply it to the left. This might not work because the number to the right always ends with a ")".
=TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("/",SUBSTITUTE(B4,")","|",3))+1,
LEN(B4)),")",REPT(" ",LEN(B4))),LEN(B4)))
Data Example - B4: Innsbruck, University Hospital, (ads, peds), CIC 271, G. Gastl, D. Nachbaur (79 (82) 41/38)
Desired result = 41
The number could be 1 to 3 characters, but any method of getting closer would help.
I found an example on the board that gives me the number to the right of the "/" which works perfectly, but I can't figure out how to apply it to the left. This might not work because the number to the right always ends with a ")".
=TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("/",SUBSTITUTE(B4,")","|",3))+1,
LEN(B4)),")",REPT(" ",LEN(B4))),LEN(B4)))
Last edited: