+ Reply to Thread
Results 1 to 2 of 2

Getting a formula to calcualte only of the lenth of the string in a cell is more than 3

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    Derby, England
    MS-Off Ver
    Excel 2010
    Posts
    257

    Getting a formula to calcualte only of the lenth of the string in a cell is more than 3

    Hi all, I'm looking at improving this formula
    =IF(NOT(ISBLANK($A28)),IFERROR(VLOOKUP($A28,InstallTemp!$C:$J,2,FALSE),0),"")
    Where in A28 is a number or text string. But sometimes in this cell is "0" so I want to ignore that

    I origianlly had
    =IF(ISTEXT($A28),IFERROR(VLOOKUP($A28,InstallTemp!$C:$J,2,FALSE),0),"")
    but when A28 is a 4 digit number it displays blank.

    So i was thinking of something along the lines of =IF(LEN($A28)<3,IFERROR(VLOOKUP($A28,InstallTemp!$C:$J,6,FALSE),0),"") but i cant get that to work.

    Any Ideas,
    Thanks in advance.

    John

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Getting a formula to calcualte only of the lenth of the string in a cell is more than

    Try

    =IF(AND(NOT(ISBLANK($A28)),$A28<>0),IFERROR(VLOOKUP($A28,InstallTemp!$C:$J,2,FALSE),0),"")
    Elegant Simplicity............. Not Always

+ 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