PC Review


Reply
Thread Tools Rate Thread

How do I limit characters in a cell?

 
 
=?Utf-8?B?Q2FzZXk=?=
Guest
Posts: n/a
 
      25th Sep 2006
I have a cell with this information: "1234_01_251225". I need to have a
formula that will only give me the first 4 characters "1234". Is there a way
to do this? I need to add the formula to the entire column of data, since I
have thousands of rows of data.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF2aWQgQmlsbGlnbWVpZXI=?=
Guest
Posts: n/a
 
      25th Sep 2006
=LEFT(A1,4)

--
Regards,
Dave


"Casey" wrote:

> I have a cell with this information: "1234_01_251225". I need to have a
> formula that will only give me the first 4 characters "1234". Is there a way
> to do this? I need to add the formula to the entire column of data, since I
> have thousands of rows of data.

 
Reply With Quote
 
=?Utf-8?B?RGF2ZSBG?=
Guest
Posts: n/a
 
      25th Sep 2006
=LEFT(A1,4) assuming your data is in A1.
--
Brevity is the soul of wit.


"Casey" wrote:

> I have a cell with this information: "1234_01_251225". I need to have a
> formula that will only give me the first 4 characters "1234". Is there a way
> to do this? I need to add the formula to the entire column of data, since I
> have thousands of rows of data.

 
Reply With Quote
 
Paul D. Simon
Guest
Posts: n/a
 
      27th Sep 2006
Data>Validation, Settings Tab.
In the Allow field, choose Text Length.
In the Data field, choose which option you want (but I would recommend
keeping it set to the default of "between").
With "between" as the Data option, enter a number in the Minimum field
(probably 0 in your case) and then the limit you want in the Maximum
field.
Copy that cell to as many other cells in the worksheet where you want
this limitation.

Now, users will not be able to enter more characters in the cell(s)
than the limit you set.

Hope this helps - let me know.

 
Reply With Quote
 
=?Utf-8?B?Tm9sZW5l?=
Guest
Posts: n/a
 
      4th Oct 2006
I need to do basically the same thing -- allow folks to enter data over the
limit, but truncate it to the limit upon exiting cell -- but when I try this
formula in the cell where the data is entered, I get a circular reference
error.

"Dave F" wrote:

> =LEFT(A1,4) assuming your data is in A1.
> --
> Brevity is the soul of wit.
>
>
> "Casey" wrote:
>
> > I have a cell with this information: "1234_01_251225". I need to have a
> > formula that will only give me the first 4 characters "1234". Is there a way
> > to do this? I need to add the formula to the entire column of data, since I
> > have thousands of rows of data.

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      4th Oct 2006
Have your formulas in adjacent cells in a helper column.

Column A is where you enter the data.

Column B is where you have the formula.


Gord Dibben MS Excel MVP


On Tue, 3 Oct 2006 16:01:02 -0700, Nolene <(E-Mail Removed)>
wrote:

>I need to do basically the same thing -- allow folks to enter data over the
>limit, but truncate it to the limit upon exiting cell -- but when I try this
>formula in the cell where the data is entered, I get a circular reference
>error.
>
>"Dave F" wrote:
>
>> =LEFT(A1,4) assuming your data is in A1.
>> --
>> Brevity is the soul of wit.
>>
>>
>> "Casey" wrote:
>>
>> > I have a cell with this information: "1234_01_251225". I need to have a
>> > formula that will only give me the first 4 characters "1234". Is there a way
>> > to do this? I need to add the formula to the entire column of data, since I
>> > have thousands of rows of data.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a limit of 140 characters to any cell Imperial Microsoft Excel Misc 1 2nd Oct 2009 12:38 AM
How to limit the characters in a cell Igneshwara reddy Microsoft Excel Worksheet Functions 1 16th Jun 2008 03:32 PM
Can I limit a cell to 2 characters? =?Utf-8?B?RnJhbmtj?= Microsoft Excel Misc 2 11th Aug 2005 01:03 AM
limit no of characters in cell rocket0612 Microsoft Excel Misc 3 1st Jun 2005 07:11 PM
Can I limit a cell to 72 characters? How? =?Utf-8?B?Q2hyaXM=?= Microsoft Excel Misc 2 28th Dec 2004 04:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:28 AM.