Help me use =Right or more suitable text formula

kate s

New Member
Joined
Jan 7, 2019
Messages
8
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I appreciate the help with this, which will help me learn. I know I can do this with Query from Table, but I'd like to learn it by formula. I figured out how to extract the numbers within the ( parens ) using left and find. Now, I'd like to work out how to remove only the company names via a formula. I've tried right and mid but my logic is not working.

Thank you so much for any help.

Book1
BCD
3CompaniesCo #Co Name
4(124) Quest Diagnostics(124)stics
5(559) Armor Blood Draw(559)o
6(59) Excess White Cell Co(59)
7My logic does not work
Sheet1
Cell Formulas
RangeFormula
D4D4=RIGHT(B4,FIND(")",B4,2)*1)
D5D5=MID(B5,FIND(")",B5,1)*2,1)
C4:C6C4=LEFT(B4,FIND(")",B4)*1)
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Here are some options, there are others.
By the way your "*1" in column C doesn't do anything and shouldbe left out.

Book1
BCDE
3UCo #Co NameComment
4(124) Quest Diagnostics(124)Quest DiagnosticsRight
5(559) Armor Blood Draw(559)Armor Blood DrawRight and leveraging off Co#
6(59) Excess White Cell Co(59)Excess White Cell CoReplace and leveraging off Co#
Sheet1
Cell Formulas
RangeFormula
C4:C6C4=LEFT(B4,FIND(")",B4)*1)
D4D4=RIGHT(B4,LEN(B4)-FIND(")",B4)-1)
D5D5=RIGHT(B5,LEN(B5)-LEN(C5)-1)
D6D6=REPLACE(B6,1,LEN(C6)+1,"")
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you happen to have the latest 'TEXT' functions, there are even easier ways. :)

22 09 15.xlsm
BCD
3CompaniesCo #Co Name
4(124) Quest Diagnostics(124)Quest Diagnostics
5(559) Armor Blood Draw(559)Armor Blood Draw
6(59) Excess White Cell Co(59)Excess White Cell Co
Split Text
Cell Formulas
RangeFormula
C4:C6C4=TEXTBEFORE(B4," ")
D4:D6D4=TEXTAFTER(B4," ")
 
Upvote 0
Solution
Upvote 0
Thank you, everyone. All were GREAT solutions. I appreciate you all shedding insight on the many ways to accomplish this task.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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