+ Reply to Thread
Results 1 to 4 of 4

search/find a substring that does not contain specific alphabet in a specific position

  1. #1
    Registered User
    Join Date
    09-06-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    2

    search/find a substring that does not contain specific alphabet in a specific position

    How do I search/find a substring that does not contain specific alphabet in a specific position. Is this possible

    example: Find cells that
    a)do not contain "t" in 4th position and
    b)contains "r" in 5th position

    excel query.jpg

    Thanks

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: search/find a substring that does not contain specific alphabet in a specific positio

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-06-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    2

    Re: search/find a substring that does not contain specific alphabet in a specific positio

    Ok. But if i have to exclude a few more alphabets in the same position will this do
    IF(MID(A1,4,1)<>"t","k","d", "h",A1,"")

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: search/find a substring that does not contain specific alphabet in a specific positio

    Hi Samoth and welcome to the forum,

    For both tests above try:
    Please Login or Register  to view this content.
    see the attached for some examples.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: search/find a substring that does not contain specific alphabet in a specific positio

    Please Login or Register  to view this content.
    Array Formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

+ 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. VBA - Search xls spreadsheet for specific data and move cell value up one position
    By qnmahan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2013, 05:55 PM
  2. [SOLVED] Find the position of a substring in a string
    By nemo66ro in forum Excel General
    Replies: 6
    Last Post: 10-22-2012, 01:21 AM
  3. Replies: 4
    Last Post: 07-14-2012, 07:26 AM
  4. Replies: 7
    Last Post: 02-02-2009, 02:40 PM
  5. [SOLVED] How do I find a specific characters position in a string variable
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2006, 10:30 AM

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