![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Sep 2005
Posts: 19
OS: XP
|
Need help with excel (removing grammar and max cell length)?
Hi,
I really need some help with something that I am doing in Excel. I suspect that Excel does not have the functionailty to do this, but if it does - it would be so cool. I have a column in which I need to ensure that any populated cells are free from any punctuation marks e.g. full-stops, commas brackets etc. Can this be removed with a function or process or do I have to remove them manually? Also, I need to ensure that no cell contains a string that is more than 50 characters in length. Can I do a formula to remove any characters after the 50 way point? Any help would be VERY much appriciated. Many thanks, Brendon. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Superhuman Computer
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2
|
For the first item, you can use the "Replace..." functionality of Excel. Select the column you want to remove these from, and click Edit -> Replace...
In here, put a comma in the first box, leave the second box blank, and hit Replace All. Repeat for the other punctuation you want removed. I know there's a formula you could put together to strip out the unwanted characters, but it's a little convoluted and I can't remember it off the top of my head. If I can find how I put it together, I'll post it for you. As for the second, to stop people entering data over 50 characters, you can set up the cells to do a bit of data validation. Select the cells you want this on, and click Data -> Validation... Select Allow: Text Length, Data: Less than or equal to, Maximum: 50. On the Error Alert tab, put in whatever message you want to be displayed if the input is too long. If you already have the data input and want it stripped down to 50 characters, create a new formula to the right of the existing data, and enter the following formula: Code:
=LEFT(A1,50) 'assuming the start of the data in in cell A1 Of course, you don't need to copy and paste the data, you could just reference the formula column instead of the raw data column.
__________________
"Sorry, the number you have dialled is imaginary. Please rotate dial by 90 degrees and try again." |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Sep 2005
Posts: 19
OS: XP
|
Hi Reekorl,
The advice that you gave me is great - thank you very much. The punctuation thing is good - nice and simple, but I have encountered a problem with the 50 charater thing. What I need to do is in one column ensure that no cells contain a string length of more than 50 characters. While I can do what you have suggested regarding adding a column to the left and then using the fomula, I then need to copy the data back into that column and delete the added column. In short, I don't want to add columns to my spreadsheet. Can I do the fomula thing and then paste the actual data back into the column to the left, rather than paste the foumula to the left. Or can you tell Excel to highlight which columns are over 50 characters and then you can edit the data down to 50 characters? Many thanks, Bren. What I need to do is |
|
|
|
![]() |
| Thread Tools | |
|
|