+ Reply to Thread
Results 1 to 12 of 12

Formula to recognize text only in a cell

Hybrid View

  1. #1
    Jim May
    Guest

    Formula to recognize text only in a cell

    In cells A1:A3 I have:
    (as text)

    Cell Values Formula Needed
    0100 01029250 FALSE
    0100 01029304 FALSE
    0100 REHAB01 TRUE

    I need a formula in Cells B1:B3
    to Recognize is a cells has characters A-Z

    I can't quite figure out here, under pressure...

    Can someone assist?


  2. #2
    Duke Carey
    Guest

    RE: Formula to recognize text only in a cell

    Maybe

    =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))



    "Jim May" wrote:

    > In cells A1:A3 I have:
    > (as text)
    >
    > Cell Values Formula Needed
    > 0100 01029250 FALSE
    > 0100 01029304 FALSE
    > 0100 REHAB01 TRUE
    >
    > I need a formula in Cells B1:B3
    > to Recognize is a cells has characters A-Z
    >
    > I can't quite figure out here, under pressure...
    >
    > Can someone assist?
    >


  3. #3
    Jim May
    Guest

    RE: Formula to recognize text only in a cell

    Brilliant!!
    Tks,
    Jim

    "Duke Carey" wrote:

    > Maybe
    >
    > =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))
    >
    >
    >
    > "Jim May" wrote:
    >
    > > In cells A1:A3 I have:
    > > (as text)
    > >
    > > Cell Values Formula Needed
    > > 0100 01029250 FALSE
    > > 0100 01029304 FALSE
    > > 0100 REHAB01 TRUE
    > >
    > > I need a formula in Cells B1:B3
    > > to Recognize is a cells has characters A-Z
    > >
    > > I can't quite figure out here, under pressure...
    > >
    > > Can someone assist?
    > >


  4. #4
    David McRitchie
    Guest

    Re: Formula to recognize text only in a cell

    Hi Duke,
    It works but it doesn't make sense to me, can you break it down..

    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "Jim May" <JimMay@discussions.microsoft.com> wrote in message news:AB5636E5-D363-4E50-8437-0F080637BCC8@microsoft.com...
    > Brilliant!!
    > Tks,
    > Jim
    >
    > "Duke Carey" wrote:
    >
    > > Maybe
    > >
    > > =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))
    > >
    > >
    > >
    > > "Jim May" wrote:
    > >
    > > > In cells A1:A3 I have:
    > > > (as text)
    > > >
    > > > Cell Values Formula Needed
    > > > 0100 01029250 FALSE
    > > > 0100 01029304 FALSE
    > > > 0100 REHAB01 TRUE
    > > >
    > > > I need a formula in Cells B1:B3
    > > > to Recognize is a cells has characters A-Z
    > > >
    > > > I can't quite figure out here, under pressure...
    > > >
    > > > Can someone assist?
    > > >




  5. #5
    Ron Rosenfeld
    Guest

    Re: Formula to recognize text only in a cell

    On Tue, 7 Mar 2006 09:04:24 -0800, Duke Carey
    <DukeCarey@discussions.microsoft.com> wrote:

    >Maybe
    >
    >=NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))
    >
    >
    >
    >"Jim May" wrote:
    >
    >> In cells A1:A3 I have:
    >> (as text)
    >>
    >> Cell Values Formula Needed
    >> 0100 01029250 FALSE
    >> 0100 01029304 FALSE
    >> 0100 REHAB01 TRUE
    >>
    >> I need a formula in Cells B1:B3
    >> to Recognize is a cells has characters A-Z
    >>
    >> I can't quite figure out here, under pressure...
    >>
    >> Can someone assist?
    >>


    Although it may be what he wanted, it's not quite what he asked for.

    He asked for a function that would "Recognize is a cells has characters A-Z"

    Your function will give a TRUE result for many other non-numeric characters
    than the set A-Z.
    --ron

  6. #6
    David McRitchie
    Guest

    Re: Formula to recognize text only in a cell

    I guess I didn't test that i.e. 123#
    in fact I looked at the wrong column in my test., or I would have seen it
    was incorrect for an empty cell, just the same I'm
    still trying to figure out the formula anyway.


    =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))


    Ron Rosenfeld, wrote...
    > Although it may be what he wanted, it's not quite what he asked for.
    > He asked for a function that would "Recognize is a cells has characters A-Z"
    > Your function will give a TRUE result for many other non-numeric characters
    > than the set A-Z.




  7. #7
    Jim May
    Guest

    Re: Formula to recognize text only in a cell

    Hey Guys,,
    Yeah, I studied the
    =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))
    and decided that basically, the cell strigng was first reviewed for any
    **Spaces** (Which all my cells
    qualify for),, but further ALL spaces are replaced by
    "" (Nothing),, thereby - in the case of those cells with
    only numbers AND spaces gets you only numbers TIMES 1 - changes THIS
    Cell-Type to a NUMERIC;
    All other types DO NOT QUALIFY..

    Thanks,

    Jim May


    "David McRitchie" <dmcritchie_xlmvp@verizon.net> wrote in message
    news:eV3TdmjQGHA.5280@TK2MSFTNGP12.phx.gbl...
    >I guess I didn't test that i.e. 123#
    > in fact I looked at the wrong column in my test., or I would have seen it
    > was incorrect for an empty cell, just the same I'm
    > still trying to figure out the formula anyway.
    >
    >
    > =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))
    >
    >
    > Ron Rosenfeld, wrote...
    >> Although it may be what he wanted, it's not quite what he asked for.
    >> He asked for a function that would "Recognize is a cells has characters
    >> A-Z"
    >> Your function will give a TRUE result for many other non-numeric
    >> characters
    >> than the set A-Z.

    >
    >




  8. #8
    David McRitchie
    Guest

    Re: Formula to recognize text only in a cell

    and 1* to convert a string with digits to a number or an error.
    Somehow I was convinced it was doing more.

    "Jim May" <jmay@cox.net> wrote in message news:fxoPf.234343$oG.193208@dukeread02...
    > Hey Guys,,
    > Yeah, I studied the
    > =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))
    > and decided that basically, the cell strigng was first reviewed for any
    > **Spaces** (Which all my cells
    > qualify for),, but further ALL spaces are replaced by
    > "" (Nothing),, thereby - in the case of those cells with
    > only numbers AND spaces gets you only numbers TIMES 1 - changes THIS
    > Cell-Type to a NUMERIC;
    > All other types DO NOT QUALIFY..
    >
    > Thanks,
    >
    > Jim May
    >
    >
    > "David McRitchie" <dmcritchie_xlmvp@verizon.net> wrote in message
    > news:eV3TdmjQGHA.5280@TK2MSFTNGP12.phx.gbl...
    > >I guess I didn't test that i.e. 123#
    > > in fact I looked at the wrong column in my test., or I would have seen it
    > > was incorrect for an empty cell, just the same I'm
    > > still trying to figure out the formula anyway.
    > >
    > >
    > > =NOT(ISNUMBER(1*SUBSTITUTE(A1," ","")))
    > >
    > >
    > > Ron Rosenfeld, wrote...
    > >> Although it may be what he wanted, it's not quite what he asked for.
    > >> He asked for a function that would "Recognize is a cells has characters
    > >> A-Z"
    > >> Your function will give a TRUE result for many other non-numeric
    > >> characters
    > >> than the set A-Z.

    > >
    > >

    >
    >




  9. #9
    CLR
    Guest

    RE: Formula to recognize text only in a cell

    One way.........

    =IF(ISERR(MID(A1,6,1)*1),"true","false")

    Vaya con Dios,
    Chuck, CABGx3


    "Jim May" wrote:

    > In cells A1:A3 I have:
    > (as text)
    >
    > Cell Values Formula Needed
    > 0100 01029250 FALSE
    > 0100 01029304 FALSE
    > 0100 REHAB01 TRUE
    >
    > I need a formula in Cells B1:B3
    > to Recognize is a cells has characters A-Z
    >
    > I can't quite figure out here, under pressure...
    >
    > Can someone assist?
    >


  10. #10
    David McRitchie
    Guest

    Re: Formula to recognize text only in a cell

    Hi Jim, (to find if a cell has any alpha character within)
    Excel is rather lacking in having a TRANSLATE instruction to
    change characters to other characters, so I would create a
    User Defined Function (UDF).

  11. #11
    Jim May
    Guest

    Re: Formula to recognize text only in a cell

    Outstanding !!!
    Tks,
    Jim

    "David McRitchie" wrote:

    > Hi Jim, (to find if a cell has any alpha character within)
    > Excel is rather lacking in having a TRANSLATE instruction to
    > change characters to other characters, so I would create a
    > User Defined Function (UDF).
    > .
    > Function Has_alpha(cell As String) As Boolean
    > Dim x As String, i As Long
    > For i = 1 To Len(cell)
    > If UCase(Mid(cell, i, 1)) >= "A" And _
    > UCase(Mid(cell, i, 1)) <= "Z" Then
    > Has_alpha = True
    > Exit Function
    > End If
    > Next i
    > Has_alpha = False
    > End Function
    >
    > To install see
    > http://www.mvps.org/dmcritchie/excel/getstarted.htm
    >
    > to use
    > =personal.xls!Has_alpha(A1)
    > =Has_alpha(A1)
    >
    > --
    > ---
    > HTH,
    > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
    > >
    > > "Jim May" wrote:
    > >
    > > > In cells A1:A3 I have:
    > > > (as text)
    > > >
    > > > Cell Values Formula Needed

    >
    > > >
    > > > I need a formula in Cells B1:B3
    > > > to Recognize is a cells has characters A-Z
    > > >
    > > > I can't quite figure out here, under pressure...
    > > >
    > > > Can someone assist?
    > > >

    >
    >
    >


  12. #12
    Ron Rosenfeld
    Guest

    Re: Formula to recognize text only in a cell

    On Tue, 7 Mar 2006 08:52:54 -0800, Jim May <JimMay@discussions.microsoft.com>
    wrote:

    >In cells A1:A3 I have:
    >(as text)
    >
    > Cell Values Formula Needed
    >0100 01029250 FALSE
    >0100 01029304 FALSE
    > 0100 REHAB01 TRUE
    >
    >I need a formula in Cells B1:B3
    >to Recognize is a cells has characters A-Z
    >
    >I can't quite figure out here, under pressure...
    >
    >Can someone assist?


    1. Download and install Longre's free morefunc.xll add-in from
    http://xcell05.free.fr

    2. Use this formula:

    =REGEX.COMP(A1,"[A-Z]")


    --ron

+ 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