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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 05-18-2006, 09:12 AM   #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.
BWA@CSFB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 05-18-2006, 09:49 AM   #2 (permalink)
Superhuman Computer
 
ReeKorl's Avatar
 
Join Date: Mar 2005
Location: 6th Circle, The City of Dis, Hell
Posts: 1,610
OS: WinXP Pro SP2

My System

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
and autofill this down to the bottom of the data. Copy and "Paste Special..." the data into the existing cells and select Values. Make sure you do this before turning on the validation, or you may wipe that out with the paste.

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."
ReeKorl is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-19-2006, 04:04 AM   #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
BWA@CSFB is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-19-2006, 07:30 AM   #4 (permalink)
Registered User
 
Join Date: Apr 2006
Location: Columbia, MD
Posts: 81
OS: XP


Send a message via Yahoo to Anne Troy
Bren: Can you follow this?

http://www.ozgrid.com/forum/showthread.php?t=47902
Anne Troy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 11:55 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85