Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=len(A1)
"dstiefe" wrote in message ... 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how do you do it in VBA?
"PCLIVE" wrote: =len(A1) "dstiefe" wrote in message ... 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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
basically the same way
Sub test() Dim numChars As Long numChars = Len(Worksheets("Sheet1").Range("A1")) MsgBox numChars End Sub -- Gary "dstiefe" wrote in message ... how do you do it in VBA? "PCLIVE" wrote: =len(A1) "dstiefe" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting characters within a cell | Excel Worksheet Functions | |||
Counting characters in a cell | Excel Discussion (Misc queries) | |||
counting characters in a cell | Excel Discussion (Misc queries) | |||
Counting Characters in a cell | Excel Programming | |||
Counting Characters in a Cell | Excel Worksheet Functions |