Cleaning not delimited data columns

ekurdziel

New Member
Joined
Aug 15, 2016
Messages
5
Hi everyone, I've inherited some data that isn't arranged in a helpful way and can use the group's help. I have data in a column that I need to separate, but the data does not follow a pattern that is easy to correct via delimited text to columns or LEFT/RIGHT.

The value within the cell is made of what should be separated into 2 columns. I do have one (1) of the values already in a separate column, but need to isolate the other portion to use it effectively.

For example, my data is formatted where:

Column 1Column 2
A AAAA AAA BBB-BB
AAA AAAAA AA BBB BB B
AAAAAA BB-B-BBBB
AA AAA AAAAA AAA AAA BB B

<tbody>
</tbody>









What I need to do is separate the B values into their own column. I've been trying to determine a function that can determine if Column 2 includes the value from Column 1, it would search/replace the value in Column 1 with no text.

Any thoughts on how to accomplish this? Thanks in advance for your help!

Eric
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try

=SUBSTITUTE(B2,A2,"")

You may need to add TRIM if you don't want the leading space

=TRIM(SUBSTITUTE(B2,A2,""))
 
Last edited:
Upvote 0
Hi Jonmo1, that did the trick. I still have some work to do on cleaning this data, but I believe that put me down the right path. I'll make sure to reply back to this if I get stuck again.

Thanks for the quick response and help!

Eric
 
Upvote 0

Forum statistics

Threads
1,215,564
Messages
6,125,581
Members
449,237
Latest member
Chase S

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