Hi All,
This is not a question but a trick I learned recently.
I have to deal with such excel files which are converted from pdf or are downloaded from internet. Most of the times there will be line breaks within the cell(Alt + Enter or Chr(10)). When I was very new to excel,to clean my data, I would get into each cell and hit F2 and remove those 'unseen' characters manually. Later I got to know about function called 'Clean' which helped me a lot. But to use Clean function I had to use helper column(s). Then came a time when I learned simple VBA (for next loop and worksheetfucntion(clean). I thought this is the best approach to do this task. But I was wrong.
These days I do the same work with the help of find and replace.
This is how I do it.
1. Select the Range
2. Hit Ctrl + H to invoke Find & Replace Dialog Box.
3. Type Ctrl + J in Find what: Box
4. Type space (or leave blank depending on your requirement) in Replace with: box
5. Alt + A
You are done...
Purpose of this thread is to share my knowledge, please don't laugh at me if it was known to you already!!
With Regards
Rudra
This is not a question but a trick I learned recently.
I have to deal with such excel files which are converted from pdf or are downloaded from internet. Most of the times there will be line breaks within the cell(Alt + Enter or Chr(10)). When I was very new to excel,to clean my data, I would get into each cell and hit F2 and remove those 'unseen' characters manually. Later I got to know about function called 'Clean' which helped me a lot. But to use Clean function I had to use helper column(s). Then came a time when I learned simple VBA (for next loop and worksheetfucntion(clean). I thought this is the best approach to do this task. But I was wrong.
These days I do the same work with the help of find and replace.
This is how I do it.
1. Select the Range
2. Hit Ctrl + H to invoke Find & Replace Dialog Box.
3. Type Ctrl + J in Find what: Box
4. Type space (or leave blank depending on your requirement) in Replace with: box
5. Alt + A
You are done...
Purpose of this thread is to share my knowledge, please don't laugh at me if it was known to you already!!
With Regards
Rudra