ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Len & Trim Function (https://www.excelbanter.com/excel-worksheet-functions/206273-len-trim-function.html)

Daren

Len & Trim Function
 
I am trying to use the Len function to count the number of characters and
numbers in an adjacent cell. When I use this formula, I get an error:
=if(len)(trimA2))=0,0,Len(Trim(A2)))

What might be the problem?

Thanks.

Frederik[_3_]

Len & Trim Function
 
=if(len(trimA2)=0,0,Len(Trim(A2)))

--
met vriendelijke groetjes


"Daren" schreef in bericht
...
I am trying to use the Len function to count the number of characters and
numbers in an adjacent cell. When I use this formula, I get an error:
=if(len)(trimA2))=0,0,Len(Trim(A2)))

What might be the problem?

Thanks.




Mike H

Len & Trim Function
 
Maybe

=MAX(0,LEN(TRIM(A2)))

Mike

"Daren" wrote:

I am trying to use the Len function to count the number of characters and
numbers in an adjacent cell. When I use this formula, I get an error:
=if(len)(trimA2))=0,0,Len(Trim(A2)))

What might be the problem?

Thanks.


Dave Peterson

Len & Trim Function
 
or just:
=len(trim(a2))



Daren wrote:

I am trying to use the Len function to count the number of characters and
numbers in an adjacent cell. When I use this formula, I get an error:
=if(len)(trimA2))=0,0,Len(Trim(A2)))

What might be the problem?

Thanks.


--

Dave Peterson

Daren

Len & Trim Function
 
Thanks it worked. Does that also count spaces between text and numbers?

"Mike H" wrote:

Maybe

=MAX(0,LEN(TRIM(A2)))

Mike

"Daren" wrote:

I am trying to use the Len function to count the number of characters and
numbers in an adjacent cell. When I use this formula, I get an error:
=if(len)(trimA2))=0,0,Len(Trim(A2)))

What might be the problem?

Thanks.


Daren

Len & Trim Function
 
Thanks you.



"Frederik" wrote:

=if(len(trimA2)=0,0,Len(Trim(A2)))

--
met vriendelijke groetjes


"Daren" schreef in bericht
...
I am trying to use the Len function to count the number of characters and
numbers in an adjacent cell. When I use this formula, I get an error:
=if(len)(trimA2))=0,0,Len(Trim(A2)))

What might be the problem?

Thanks.





Mike H

Len & Trim Function
 
Yes it does

"Daren" wrote:

Thanks it worked. Does that also count spaces between text and numbers?

"Mike H" wrote:

Maybe

=MAX(0,LEN(TRIM(A2)))

Mike

"Daren" wrote:

I am trying to use the Len function to count the number of characters and
numbers in an adjacent cell. When I use this formula, I get an error:
=if(len)(trimA2))=0,0,Len(Trim(A2)))

What might be the problem?

Thanks.



All times are GMT +1. The time now is 04:26 AM.

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