Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an Excel sheet which has a Text column Name Object Name. Now I have another script which using these columns further processing. Now before running the script with it, I want to trimmed out some characters from the object name column values.

Values in that column has carrying length of characters,but I want all of them to be 15 characters only, whichever values having the length more than 15 characters must be trimmed out. Is there any function in Excel 2010 by which I can do such activity within few minutes.

share|improve this question
add comment

migrated from stackoverflow.com Jan 14 '13 at 16:22

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

You can use the MID function in excel to select only the first 15 characters of your cell. MID allows you to select a substring. The syntax is =MID(data cell, starting character, length). In your case, if your text is in column A3, you would use =MID(A3,1,15)

share|improve this answer
    
Thanks for your help! Let me give it a try. +1 to you! –  RubyTheBang Jan 14 '13 at 8:58
    
How to do this for the entire column? –  RubyTheBang Jan 14 '13 at 9:03
    
copy and paste the formula on a complete column –  Romain Jan 14 '13 at 9:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.