+ Reply to Thread
Results 1 to 3 of 3

Pull Single Character

  1. #1
    Registered User
    Join Date
    08-30-2011
    Location
    Lakewood, CO
    MS-Off Ver
    Excel 2003
    Posts
    1

    Pull Single Character

    Hi All,

    I am trying to pull a single character from a cell. However, I am doing this manually right now and would like automate this. Is there a formula that will let me call out a single character at the end. I have given an example below.

    Smith, Jane G - I want this to equal 1
    Smith, Jane - I want this to equal 0

    As you can see, I am trying to put in a formula that will allow me to see all the cells that have middle initial. For all the ones that don't, the value will be 0. Please let me know if anyone can help.

    Thanks,

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Pull Single Character

    Try:

    =ISNUMBER(FIND(" ",RIGHT(A1,LEN(A1)-FIND(", ",A1)-1)))*1

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,521

    Re: Pull Single Character

    If the cell is A1,

    =MID(A1,LEN(A1)-2,1)=" "

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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