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:

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Column 1[/TD]
[TD]Column 2[/TD]
[/TR]
[TR]
[TD]A AAA[/TD]
[TD]A AAA BBB-BB[/TD]
[/TR]
[TR]
[TD]AAA AA[/TD]
[TD]AAA AA BBB BB B[/TD]
[/TR]
[TR]
[TD]AAA[/TD]
[TD]AAA BB-B-BBBB[/TD]
[/TR]
[TR]
[TD]AA AAA AAA[/TD]
[TD]AA AAA AAA BB B[/TD]
[/TR]
</tbody>[/TABLE]









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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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