I HAVE AN EXCEL FILE WHERE ALL OF THE DATA IS IN 1 ROW - HOW DO I CHANGE IT

I HAVE AN EXCEL FILE WHERE ALL OF THE INFO IS IN 1 ROW HOW DO i PUT IT INTO MULTIPLE ROWS?
DOLLARDOLLARAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SimonCommented:
Please post a sample workbook.
0
DOLLARDOLLARAuthor Commented:
I don't see how to put a file in?
0
DOLLARDOLLARAuthor Commented:
0
OWASP: Avoiding Hacker Tricks

Learn to build secure applications from the mindset of the hacker and avoid being exploited.

DOLLARDOLLARAuthor Commented:
I downloaded the file
0
Danny ChildIT ManagerCommented:
OK, so your problem is that cell B2 (merged into C2) contains a really long text string, split by Alt+Enter line breaks, and that you want to make it into proper multiple rows...
0
Danny ChildIT ManagerCommented:
OK, this is close, but I don't have a lot of time to make it pretty...

On another cell, say K16, put in this formula:
=SUBSTITUTE(B16,CHAR(10),";")
This basically searches B16 for the hidden ASCII character 10, and replaces it with a semi-colon;

Then, copy this cell, and Paste Special.. Values one cell to the right - L16

Then, use Text to Columns on here, on the Delimited option, and use ; as the delimiter.

It produces multiple cells, one per line of the original (with the exception of the first 2 lines, which don't seem to have this separator.

You could then use Paste Special.. Transpose, to turn this horizontal row into a vertical column.
ee-RemoveAltEnters.xlsx
0
Danny ChildIT ManagerCommented:
Hmmm, not quite perfect, a few other cells didn't split.  Only other option would be to use a macro to force the split whenever it sees 4 numbers together.  Anyway, gotta go...
0
SimonCommented:
Here's another approach...
1. Set the constant myOffset to the number of columns to the right to create the multi-line table. Make sure this is to the right of your used range on the sheet.
2. select each cell in the table and run this macro on each of them in turn to create single line entries.
Sub SplitCellToRows()
Const myOffset = 12 'row offset to write the multiple line results to.
Debug.Print ActiveCell.Value
x = Split(ActiveCell.Value, Chr(13))
For y = 0 To UBound(x)
Debug.Print x(y)
ActiveCell.Offset(y, myOffset).Value = x(y)
Next
End SubÃ

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DOLLARDOLLARAuthor Commented:
I received another file from my supplier...thanks for the suggestions
0
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.