Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default 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.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default 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
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default 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.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default 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.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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.

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
TRIM FUNCTION...how to? Shayra Excel Worksheet Functions 3 March 10th 08 06:39 PM
TRIM function Chimelle Excel Worksheet Functions 5 March 6th 08 09:45 PM
trim function [email protected] Excel Worksheet Functions 3 December 30th 05 03:00 AM
Trim Function Matt M HMS Excel Worksheet Functions 5 November 21st 05 10:46 PM
Need help with TRIM function Phil Excel Worksheet Functions 9 October 21st 05 08:02 PM


All times are GMT +1. The time now is 01:37 AM.

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

About Us

"It's about Microsoft Excel"