+ Reply to Thread
Results 1 to 3 of 3

Find position of designated character in Cell

  1. #1
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Find position of designated character in Cell

    A1="&&&a%A689H&" , Based on A1,
    B1 – get position of the first lower case letter, in example, to be 4
    B2 – get position of the first Upper case letter, in example, to be 6
    B3 – get position of the first “number” , in example, to be 7
    B4 – get the total QTY of upper case letter,in example, to be 2

    thanks,
    Last edited by CAABYYC; 03-21-2016 at 05:10 PM.

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Find position of designated character in Cell

    These work for me:

    B1 =FIND(MID(A1,MIN(FIND(CHAR(ROW(INDIRECT("97:122"))),A1&"abcdefghijklmnopqrstuvwxyz")),1),$A$1)
    B2 =FIND(MID(A1,MIN(FIND(CHAR(ROW(INDIRECT("65:90"))),A1&"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1),$A$1)
    B3 =MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))
    B4 =SUMPRODUCT(LEN(A1)-LEN(SUBSTITUTE(A1,CHAR(ROW(INDIRECT("65:90"))),"")))

  3. #3
    Registered User
    Join Date
    02-24-2016
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    92

    Re: Find position of designated character in Cell

    Hi,

    I created a series of User Defined Functions:

    Please Login or Register  to view this content.
    If this helps please click on Add Reputation below,
    WouterM
    The Netherlands

+ 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. [SOLVED] FIND function finds the position of a character wrong.
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2016, 09:49 AM
  2. [SOLVED] find the character position in a string of the last occurrence of a nominated character
    By jmac1947 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2014, 11:52 PM
  3. Find Position of a Character in a Cell
    By daviieejay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-30-2013, 11:08 PM
  4. Replies: 4
    Last Post: 07-14-2012, 07:26 AM
  5. Find last repeated character position from a text string
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2011, 02:14 PM
  6. Replies: 2
    Last Post: 02-22-2007, 12:42 PM
  7. Find Character Position in String
    By SportsDave in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2006, 04:49 PM

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