+ Reply to Thread
Results 1 to 7 of 7

Find if nth char = specific character..

  1. #1
    nastech
    Guest

    Find if nth char = specific character..

    hi, trying to find way to see if 5th character equals the letter A.
    know / tried: len( or right( but item tested may have more than 5
    characters. Thanks.

  2. #2
    Bob Phillips
    Guest

    Re: Find if nth char = specific character..

    =IF(MID(A1,5,1)="A","yes","no")

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "nastech" <[email protected]> wrote in message
    news:[email protected]...
    > hi, trying to find way to see if 5th character equals the letter A.
    > know / tried: len( or right( but item tested may have more than 5
    > characters. Thanks.




  3. #3
    Andy Pope
    Guest

    Re: Find if nth char = specific character..

    Hi,

    Try the MID function.

    =MID(A1,5,1)="A"

    Cheers
    Andy

    nastech wrote:
    > hi, trying to find way to see if 5th character equals the letter A.
    > know / tried: len( or right( but item tested may have more than 5
    > characters. Thanks.


    --

    Andy Pope, Microsoft MVP - Excel
    http://www.andypope.info

  4. #4
    Ron Coderre
    Guest

    RE: Find if nth char = specific character..

    Try working with this:

    If the text to test is in Cell A1:
    B1:=IF(MID(A1,5,1)="A","Yes","No")

    Does that point you in the right direction?

    ***********
    Regards,
    Ron


    "nastech" wrote:

    > hi, trying to find way to see if 5th character equals the letter A.
    > know / tried: len( or right( but item tested may have more than 5
    > characters. Thanks.


  5. #5
    nastech
    Guest

    Re: Find if nth char = specific character..

    that's great, thanks..

    "Bob Phillips" wrote:

    > =IF(MID(A1,5,1)="A","yes","no")
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "nastech" <[email protected]> wrote in message
    > news:[email protected]...
    > > hi, trying to find way to see if 5th character equals the letter A.
    > > know / tried: len( or right( but item tested may have more than 5
    > > characters. Thanks.

    >
    >
    >


  6. #6
    nastech
    Guest

    RE: Find if nth char = specific character..

    that's great, thanks..

    "Ron Coderre" wrote:

    > Try working with this:
    >
    > If the text to test is in Cell A1:
    > B1:=IF(MID(A1,5,1)="A","Yes","No")
    >
    > Does that point you in the right direction?
    >
    > ***********
    > Regards,
    > Ron
    >
    >
    > "nastech" wrote:
    >
    > > hi, trying to find way to see if 5th character equals the letter A.
    > > know / tried: len( or right( but item tested may have more than 5
    > > characters. Thanks.


  7. #7
    nastech
    Guest

    Re: Find if nth char = specific character..

    that's great, thanks..

    "Andy Pope" wrote:

    > Hi,
    >
    > Try the MID function.
    >
    > =MID(A1,5,1)="A"
    >
    > Cheers
    > Andy
    >
    > nastech wrote:
    > > hi, trying to find way to see if 5th character equals the letter A.
    > > know / tried: len( or right( but item tested may have more than 5
    > > characters. Thanks.

    >
    > --
    >
    > Andy Pope, Microsoft MVP - Excel
    > http://www.andypope.info
    >


+ 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