PC Review


Reply
Thread Tools Rate Thread

counting characters in a cell

 
 
=?Utf-8?B?ZHN0aWVmZQ==?=
Guest
Posts: n/a
 
      1st May 2007
how do i count the number of characters in a cell

so if cell A1 has the day = to "05"....how do i know that there are 2
characters in the cell?

thank you
 
Reply With Quote
 
 
 
 
PCLIVE
Guest
Posts: n/a
 
      1st May 2007
=len(A1)

"dstiefe" <(E-Mail Removed)> wrote in message
news:1A160E95-4643-485C-A48D-(E-Mail Removed)...
> how do i count the number of characters in a cell
>
> so if cell A1 has the day = to "05"....how do i know that there are 2
> characters in the cell?
>
> thank you



 
Reply With Quote
 
=?Utf-8?B?ZHN0aWVmZQ==?=
Guest
Posts: n/a
 
      1st May 2007
how do you do it in VBA?

"PCLIVE" wrote:

> =len(A1)
>
> "dstiefe" <(E-Mail Removed)> wrote in message
> news:1A160E95-4643-485C-A48D-(E-Mail Removed)...
> > how do i count the number of characters in a cell
> >
> > so if cell A1 has the day = to "05"....how do i know that there are 2
> > characters in the cell?
> >
> > thank you

>
>
>

 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      1st May 2007
basically the same way

Sub test()
Dim numChars As Long
numChars = Len(Worksheets("Sheet1").Range("A1"))
MsgBox numChars
End Sub


--


Gary


"dstiefe" <(E-Mail Removed)> wrote in message
news:FEAA52DC-D370-43E6-87D5-(E-Mail Removed)...
> how do you do it in VBA?
>
> "PCLIVE" wrote:
>
>> =len(A1)
>>
>> "dstiefe" <(E-Mail Removed)> wrote in message
>> news:1A160E95-4643-485C-A48D-(E-Mail Removed)...
>> > how do i count the number of characters in a cell
>> >
>> > so if cell A1 has the day = to "05"....how do i know that there are 2
>> > characters in the cell?
>> >
>> > thank you

>>
>>
>>



 
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
Counting characters within a cell Alco Engineer Microsoft Excel Worksheet Functions 5 4th Nov 2008 06:08 PM
Counting Characters in a cell =?Utf-8?B?Sm9yZGFu?= Microsoft Excel Programming 1 5th Mar 2005 06:11 PM
Re: Counting characters within a cell Govind Microsoft Excel Worksheet Functions 1 22nd Sep 2004 04:07 PM
Counting characters within a cell =?Utf-8?B?QmlsbGluZyBHb2RkZXNz?= Microsoft Excel Worksheet Functions 0 22nd Sep 2004 03:29 PM
counting characters in a cell Chuck Davis Microsoft Excel Worksheet Functions 2 14th Feb 2004 02:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 PM.