Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - Counting Characters in Cell


Group,
How can I count the number of characters that appear in a cell?
The characters are in text. The only characters appearing are 0-9, A,
B, C, D, E, F and $. I need to know how many characters appear in a
cell give a Row, Column. Actually it doesn't matter what characters
reside in the cell, the number of characters is the important thing I'm
looking for.

Tony


--
ajocius
------------------------------------------------------------------------
ajocius's Profile: http://www.excelforum.com/member.php...o&userid=17695
View this thread: http://www.excelforum.com/showthread...hreadid=395220

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default VBA - Counting Characters in Cell

For example:

Len(Range("A1"))

--

Vasant



"ajocius" wrote in
message ...

Group,
How can I count the number of characters that appear in a cell?
The characters are in text. The only characters appearing are 0-9, A,
B, C, D, E, F and $. I need to know how many characters appear in a
cell give a Row, Column. Actually it doesn't matter what characters
reside in the cell, the number of characters is the important thing I'm
looking for.

Tony


--
ajocius
------------------------------------------------------------------------
ajocius's Profile:
http://www.excelforum.com/member.php...o&userid=17695
View this thread: http://www.excelforum.com/showthread...hreadid=395220



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default VBA - Counting Characters in Cell

len(cells(1,1).text)
or len(cells(1,1).value)

Hope this helps
Rowan

"ajocius" wrote:


Group,
How can I count the number of characters that appear in a cell?
The characters are in text. The only characters appearing are 0-9, A,
B, C, D, E, F and $. I need to know how many characters appear in a
cell give a Row, Column. Actually it doesn't matter what characters
reside in the cell, the number of characters is the important thing I'm
looking for.

Tony


--
ajocius
------------------------------------------------------------------------
ajocius's Profile: http://www.excelforum.com/member.php...o&userid=17695
View this thread: http://www.excelforum.com/showthread...hreadid=395220


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA - Counting Characters in Cell


Thanx for the replies, they work perfectly.

Ton

--
ajociu
-----------------------------------------------------------------------
ajocius's Profile: http://www.excelforum.com/member.php...fo&userid=1769
View this thread: http://www.excelforum.com/showthread.php?threadid=39522

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting characters in a cell Laura Henderson Excel Discussion (Misc queries) 5 September 16th 08 06:41 PM
counting characters in a cell Ram Excel Discussion (Misc queries) 3 July 29th 06 05:04 PM
Counting Cell Characters Phil Hageman[_4_] Excel Programming 9 June 6th 05 12:59 PM
Counting Characters in a cell Jordan Excel Programming 1 March 5th 05 06:11 PM
Counting Characters in a Cell carl Excel Worksheet Functions 2 February 4th 05 04:00 PM


All times are GMT +1. The time now is 02:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"