need help with a formula to remove everything to the right of " (" in a cell

djs6025

New Member
Joined
Feb 6, 2012
Messages
40
Office Version
  1. 2016
Platform
  1. Windows
Hi Everybody,
Can you help with a formula to removed everything to the right of " (" in column A and put the results in cell B as shown below? Thanks so much for your help!

Thanks,
Dan


ABCD
1154-150 (154-150 Digi Pro...154-150
2154-154 (154-154 Digi Pro...154-154
3154-158 (154-158 Digi Pro...154-158
4

<tbody>
</tbody>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
try PowerQuery aka Get&Transform

rawraw
154-150 (154-150 Digi Pro...154-150
154-154 (154-154 Digi Pro...154-154
154-158 (154-158 Digi Pro...154-158

Code:
[SIZE=1]// Table1
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Extract = Table.TransformColumns(Source, {{"raw", each Text.BeforeDelimiter(_, " ("), type text}})
in
    Extract[/SIZE]
 
Upvote 0
It's a simple formula using LEFT and FIND as:

Code:
=LEFT(A1,FIND(" (",A1)-1)

If you have Excel 365, you can also put 154-150 in B1 and then use Flash Fill from the DATA ribbon.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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