Hi,
I have some values in Column A I want to change all the values to 25 charectors in length:
eg: Aravindhan_Jyaramantest_test_test should be changed to Aravindhan_Jyaramantest_
Thanks in advance for your help.
Arvind
Hi,
I have some values in Column A I want to change all the values to 25 charectors in length:
eg: Aravindhan_Jyaramantest_test_test should be changed to Aravindhan_Jyaramantest_
Thanks in advance for your help.
Arvind
=Left(A1,25) will cut the string in A1 to 25 chars...
You can apply formula and copy down
Then copy the new column and paste speciall >> values over the original.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
If data is in cell A1, then in another cell, type:
and that should get you from Aravindhan_Jyaramantest_test_test to Aravindhan_Jyaramantest_t![]()
Please Login or Register to view this content.
Hi,
Thanks for your reply, I knew this formula, and I cannot insert any more columns to type the formula. so I need this in a macro to convert the values in column A itselt.
Thanks once again.
Arvind
Hi Arvind,
Try the following:
This will determine how many rows you have containing data, then truncate chars down to 25. Let me know if you have any further questions. If solved, please mark this thread as solved, thanks!![]()
Please Login or Register to view this content.
Rather than looping use Evaluate
![]()
Please Login or Register to view this content.
Last edited by DonkeyOte; 06-30-2009 at 04:06 AM. Reason: typos!
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Hi Guyes
Both the code worked for me and thanks for your help:
In the mean time I recorded a macro by selecting the column A, text to column> fixed width> pointed at 30 and the selected the next portion and marked as Do not import & finallty stoped the macro.
Its working for me
Thanks once again guyes.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks