+ Reply to Thread
Results 1 to 5 of 5

"istext" behaviour/recognition

  1. #1
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    "istext" behaviour/recognition

    mew,

    was workin' on a text recognition question with someone here:
    http://www.excelforum.com/excel-new-...ml#post2071064

    and another user posted this:
    Please Login or Register  to view this content.
    Now out of curiosity, checked it out. and it recognizes text alright... but only up to the letter "i".... zomg?

    Anyone have a minute to fill me in on this magical function?
    Attached Files Attached Files
    Last edited by mewingkitty; 04-05-2009 at 02:47 PM.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: "istext" behaviour/recognition

    Hi Mew,

    That formula isn't really finding text. It's simply finding the closest value to the lookup value that is not larger than the lookup value, per Excel Help:
    The LOOKUP function array form syntax has these arguments:

    lookup_value Required. A value that LOOKUP searches for in an array. The lookup_value argument can be a number, text, a logical value, or a name or reference that refers to a value.

    If LOOKUP can't find the value of lookup_value, it uses the largest value in the array that is less than or equal to lookup_value.

    If the value of lookup_value is smaller than the smallest value in the first row or column (depending on the array dimensions), LOOKUP returns the #N/A error value.
    This is why it finds a cell with any letter starting with a through i. Note, though, that it would result in an error if a cell contained "istrain" because that is "larger" than "istext"

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: "istext" behaviour/recognition

    Using your posted workbook....
    This formula returns the last text entry in the range:

    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: "istext" behaviour/recognition

    Bob has a good tutorial on finding last values: http://www.xldynamic.com/source/xld.LastValue.html

    You may also find this thread of interest: http://www.mrexcel.com/forum/showthread.php?t=361640

    Aladin Akyurek also demos graphically how the Binary Search algorithm is employed: http://www.mrexcel.com/forum/showthread.php?t=310278

  5. #5
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: "istext" behaviour/recognition

    Cool
    Thanks y'all.

+ 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