Hi!
I have table that contains cells with multiple rows. Is there a formula to split the cell into multiple cells so that each row is in different cell?
There is no common symbol in the end of each row to use good old 'text to columns'.
Hi!
I have table that contains cells with multiple rows. Is there a formula to split the cell into multiple cells so that each row is in different cell?
There is no common symbol in the end of each row to use good old 'text to columns'.
You can do it in two steps.
1. In Find & Replace:
Find: ALT+010
Replace : |
2. Now use text to columns with the pipe symbol (|) as your delimiter.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Hi there
Have you tried LEFT, RIGHT and MID? If you search on youtube there are plenty of help examples of the functions on there.
Hope it helps
Learner, making mistakes, asking daft questions.
i hope I managed to add file. It changed to | but text to columns does not work
@Ed - those formulas wont work this time. data too different
That's because of the {}, which Excel reads differently.
Do you need to keep the parenthesis?
Didn't refresh
Pardon?
Try the attached.
I have given the example using the text I think you had before you did Find/Replace?
If your data is in a table it will autofill the appropriate formula down the column.
Hope it helps
Is it something like this you are looking for?
Enter formula in A2 and drag formula down
Formula:Please Login or Register to view this content.
For your region you may need to replace all instances of comma with semi:colon ;
v A 1 {A}
|{B}
|{C}
|{F}
|2 {A}
3 {B}
4 {C}
5 {F}
6
Last edited by AlKey; 08-08-2018 at 11:23 AM.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
OK - thanks for the clarification. Mystery solved!
@Robert26 - it would appear you have at least one solution to your problem. Please let us know how you get on
does each 'Row' of data have the same number of characters in? ie {A} being three?
IF so then, try the formula I posted
If you go back to suggestion by AliGW... did that idea work? Perhaps change the "|" with another delimiter option such as comma or whatever?
Is there any formula somehow similar to =SUBSTITUTE to replace those mystical ALT+010 symbols?
So that when I get original data in column A, Excel automatically replaces them with "|"?
Yes that worked. "|" was fine. {} problem appeared after that.
Seriously, Find / Replace will do it!
I found this by doing a google search...
In the "Find what:" box you can enter the line-break code, which is character number 10.
To do this, press and hold the Alt key, and then enter the numbers 010 from the numeric part of the keyboard.
On my computer in the box there is then a small dot blinking when the cursor is still in the entry box.
To enter the numbers you need to use the numbers from the Num-lock part of the keyboard (with the numbers above the letters on your keyboard it doesn't work). If you have data imported from another source, sometimes the line breaks are also represented by character 13 instead of 10.
In the "Replace with:" dialog you can enter a space to have the line-breaks replaced with spaces. You can also leave that blank to have the line-breaks removed.
Can you post a small sample of the data you are referring to?
I know it works. THat is not the problem. My question is can it be automated. So that say data in column A have multiple rows, but in column B they aare replaced with |.
No, unfortunately data are confidential.
Ok, I appreciate the data is confidential. I guess what I was trying to understand was what the text looked like in the cells?
If the find replace works, but I take it the data can change from time to time?... then record a macro whereby you go through the steps you need to perform. Then you can create a button and assign the macro. Everytime you hit the button it will carry out the same function, but remember it will overwrite your existing, delimited data
I can send original data example tomorrow. I am using different PC at the moment.
Data change. They are basically text exported from MS Outlook.
Unfortunately I understand next to nothing from Macroses
Good - thank you.
We shall all wait for your sample workbook - there's no point in any further speculation until it's here.
See attachment.
ALT+010 works, but I am looking for formula so that it automatically substitutes this 'space' with '|' or whatever else.
You need CHAR(10):
=SUBSTITUTE(A1,CHAR(10),"|")
Thank you for help That what I was looking for.
You're welcome!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks