Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

migrated from Jan 14 '13 at 16:22

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .