+ Reply to Thread
Results 1 to 3 of 3

Need LEN(TRIM()) equivalent one excel function

  1. #1
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    35

    Need LEN(TRIM()) equivalent one excel function

    Hi,
    I’m getting a problem in Excel with some inbuilt function.
    I’ve some data which is coming from SAP using BEx Analyzer and these data are using in some formula. But some times these data are coming either NULL or BLANK (I don’t know clearly about it). So when I’m trying to do some arithmetic operation then it getting error (#VALUE). To solve these I’ve used IF(LEN(TRIM(BEx(…))=0,0,BEx(…)). But I want to update these way and want to use just one function, i.e. trying to replace LEN(TRIM()) with a single function. So I’ve tried to use ISBLANK() function. But it’s now work as exact as LEN(TRIM()) function.

    Please help me by providing only one function of MS Excel in spite of LEN(TRIM()).

    Thanks in advance,
    Suman



  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Perhaps just:

    =IF(TRIM(BEx(…)="",0,BEx(…))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    35
    Hi,
    Thanks for your reply.
    But so far I know Trim()="" , here "" works by creating a empty string . Which takes more time in execution. Also I've seen in an article that in VB (may also applicable in VBA) Len(Trim())=0 works more faster than Trim()="" (see that link: http://www.aivosto.com/vbtips/stringopt.html) . However there may has a solution that is comparing with NullString like some thing for excel. But I'm not sure. Have you any idea about these?

    Thanks again,
    Suman
    Last edited by suman.biswas; 12-05-2008 at 05:22 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1