+ Reply to Thread
Results 1 to 10 of 10

How to use Istext and Left together

  1. #1
    Registered User
    Join Date
    03-31-2015
    Location
    los angeles, ca
    MS-Off Ver
    8
    Posts
    21

    How to use Istext and Left together

    I need to determine if the first three characters are text (use: Istext() and Left() ) In cell A4

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to use Istext and Left together

    Try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: How to use Istext and Left together

    You may try something like this....

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    03-31-2015
    Location
    los angeles, ca
    MS-Off Ver
    8
    Posts
    21

    Re: How to use Istext and Left together

    it is saying "true" though on the cells that don't have the first 3 characters as letters. They are numbers. Microsoft Excel.jpg

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to use Istext and Left together

    I responded quickly before fully considering your question. I simply provided a formula based on the functions you identified without thinking about what you were actually trying to do. The ISTEXT function is poorly documented by Microsoft but seems to be intended to refer to a cell, even though you can put anything in there. In your case, you are referring to the result of the LEFT function. If that result is 123, it is a string, and ISTEXT will still interpret that as text.

    I believe sktneer's formula is better, and this one should give the same result:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BTW your image attachment did not seem to work. Also, it's almost always better to just attach the Excel file.

  6. #6
    Registered User
    Join Date
    03-31-2015
    Location
    los angeles, ca
    MS-Off Ver
    8
    Posts
    21

    Re: How to use Istext and Left together

    Yes I've been reading stuff all over to understand it and not getting anywhere. That formula works, but what if we are only to use left and istext? There is no way to make those work?

  7. #7
    Registered User
    Join Date
    03-31-2015
    Location
    los angeles, ca
    MS-Off Ver
    8
    Posts
    21

    Re: How to use Istext and Left together

    Here is my sheet
    Attached Files Attached Files

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to use Istext and Left together

    Quote Originally Posted by mschneider331 View Post
    ...what if we are only to use left and istext? There is no way to make those work?
    No.

    LEFT returns a string. A string will always be interpreted by ISTEXT as text, even if it looks like a number. ISTEXT("123") returns TRUE. ISTEXT(LEFT(A4,3)) will always return TRUE.

    You can force conversion of the result of LEFT to a number. If it's a number, then ISTEXT will return FALSE. But if it's not a number then the conversion produces a VALUE error, and ISTEXT will also return FALSE.

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to use Istext and Left together

    Quote Originally Posted by 6StringJazzer View Post
    ...and this one should give the same result:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is a bit risky. If A4 contains, e.g. the text string "1E2", or "1/12", the above will return FALSE.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  10. #10
    Registered User
    Join Date
    10-17-2021
    Location
    HK
    MS-Off Ver
    2019
    Posts
    1

    Re: How to use Istext and Left together

    we should use value and is number to solve the problem.....

    =isnumber(value(left(a4,3)))

    hope this still help......

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If istext do something if not do something else
    By dontstress3 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-07-2015, 11:06 AM
  2. Sumproduct with istext
    By Azam Ali in forum Excel General
    Replies: 3
    Last Post: 10-21-2011, 07:22 AM
  3. Vlookup w/ istext?
    By gfunkb7 in forum Excel General
    Replies: 11
    Last Post: 04-28-2011, 03:38 PM
  4. Replies: 6
    Last Post: 07-01-2010, 04:13 AM
  5. [SOLVED] ISTEXT
    By Micayla Bergen in forum Excel General
    Replies: 1
    Last Post: 05-18-2005, 10:06 PM

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