Move data from one column to another based on the first character

ifrydr

New Member
Joined
Aug 11, 2006
Messages
24
Hello -

I am posting this again because I really need it to work, and someone else pinged me and asked if I ever figured it out.

I have data that is exported that I need to manipulate. It is a "Where Used" report for Bills of Materials etc. The problem is that when it is exported it puts the "part number" as well as the "top level assembly number" in column A. The part number is listed first and then the assemby(s) will be listed in the next row(s) denoted by a space in front of the Assy number. I want to move the indented data i.e. assy number to column B.

Is there a way easy/automated way to do this?

Column A looks like:

TEK6000015
-indent/space here-TEK8000034
-indent/space here-TEK8000209

Ideally I would like column A to have "TEK6000015" and column B to have "TEK8000034 and TEK8000209" which are the indented values.

Make sense?

p.s. The entire sheet has ~29k lines

Thanks!!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
So does the "indented" data have multiple spaces??? How is it exactly? You might be able to do a text-to-columns on it and mark the "treat consecutive delimiters as one"
 
Upvote 0
It has one space by default when I run the report. But to make it look a bit better visually I do a find and replace the space with ~15 spaces... If that makes sense.

Holy Moly, that was easy!! It worked great, Thank you!!
 
Last edited:
Upvote 0
so instead of doing the replace with 15 spaces, do the text-to-columns with space as the delimiter
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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