+ Reply to Thread
Results 1 to 5 of 5

Check if 3rd character in string is "i"

  1. #1
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132

    Question Check if 3rd character in string is "i"

    Hi there,

    This seems simple enough in theory... but alas I have not yet been able to work out a solution.

    I have a string in cell A1 "oetyu"

    What formula could I use to check if the THIRD character is equal to "i" ? If it is, I want to return TRUE and if not I want to return FALSE (which will be the case in this example).

    Thanks in advance
    Michelle

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Check if 3rd character in string is "i"

    Try this:

    =MID(A1,3,1)="i"
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Check if 3rd character in string is "i"

    FYI, if you want the formula to be case sensitive (where "i" is seen as different from "I"), you can use this:

    =EXACT(MID(A1,3,1),"i")

  4. #4
    Forum Contributor michellepace's Avatar
    Join Date
    10-28-2015
    Location
    South Africa
    MS-Off Ver
    2013
    Posts
    132
    Quote Originally Posted by AliGW View Post
    Try this:

    =MID(A1,3,1)="i"
    Thanks-you =)

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Check if 3rd character in string is "i"

    You’re welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. check if character is not a "-"
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2015, 06:20 PM
  2. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  3. Replies: 1
    Last Post: 08-10-2014, 01:22 PM
  4. [SOLVED] how to replace the "Alt-Enter" character in a cell with sway "@"
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-04-2014, 05:55 AM
  5. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  6. [SOLVED] Cell does NOT contain "". Or: Cell contains string of characters longer than 1 character.
    By CatSqueezer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-23-2014, 09:34 AM
  7. [SOLVED] create links to check boxes marked "good" fair"and "bad"
    By pjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2006, 09:25 PM

Tags for this Thread

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