ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   count digits within cell (https://www.excelbanter.com/excel-discussion-misc-queries/23621-count-digits-within-cell.html)

apostate2

count digits within cell
 
I want to create a forumula in B1 that will sum up how many letters I have
entered into A1. There will never be more than five digits in A1. I frankly
don't know where to begin.

example: A1 = MTW
--
Thanks for being here

Gary's Student

Try:
=len(a1)

"apostate2" wrote:

I want to create a forumula in B1 that will sum up how many letters I have
entered into A1. There will never be more than five digits in A1. I frankly
don't know where to begin.

example: A1 = MTW
--
Thanks for being here


apostate2

Thanks!

"Gary's Student" wrote:

Try:
=len(a1)

"apostate2" wrote:

I want to create a forumula in B1 that will sum up how many letters I have
entered into A1. There will never be more than five digits in A1. I frankly
don't know where to begin.

example: A1 = MTW
--
Thanks for being here



Hi
You may also try LEN(TRIM(A1)) which will count the characters without any
trailing spaces that may have been inadvertantly left in the cell.

--
Andy.


"Gary's Student" wrote in message
...
Try:
=len(a1)

"apostate2" wrote:

I want to create a forumula in B1 that will sum up how many letters I
have
entered into A1. There will never be more than five digits in A1. I
frankly
don't know where to begin.

example: A1 = MTW
--
Thanks for being here




Dave Peterson

=trim() also cleans up leading/trailing and multiple internal spaces, too.



"Andy B" wrote:

Hi
You may also try LEN(TRIM(A1)) which will count the characters without any
trailing spaces that may have been inadvertantly left in the cell.

--
Andy.

"Gary's Student" wrote in message
...
Try:
=len(a1)

"apostate2" wrote:

I want to create a forumula in B1 that will sum up how many letters I
have
entered into A1. There will never be more than five digits in A1. I
frankly
don't know where to begin.

example: A1 = MTW
--
Thanks for being here


--

Dave Peterson


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com