+ Reply to Thread
Results 1 to 3 of 3

identifying specific data from a string of alphanumeric characters

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    Bay Village, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    55

    identifying specific data from a string of alphanumeric characters

    I hope this one doesn't stump you!

    I am working with a spreadsheet that has a single field that lists codes for employees working on a given task. For example,
    Task A 443A, 5133, SQE
    Task B 22A, POP, 4355
    Task C 5145, 234, 5124, 513F
    etc etc

    I want to identify how many times there is a "51xx" code, where x is numeric only -- Task A would have 1, Task B would have 0 and Task C would have 2.

    Is there some way to do this using a standard Excel function?

    Many thanks.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: identifying specific data from a string of alphanumeric characters

    So where you have those multiple codes (presumably in column B) are they always separated by a comma and a space?

    If so, then try this in C1:

    =(LEN(" "&B1) - LEN(SUBSTITUTE(" "&B1," 51","")))/3

    Hope this helps.

    Pete

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: identifying specific data from a string of alphanumeric characters

    This array-entered formula seems to do that.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Row\Col
    A
    B
    C
    1
    5392
    0
    In B1 this formula
    2
    5172
    1
    =SUM(--ISNUMBER(SEARCH(51&(ROW($1:$10)-1)&TRANSPOSE((ROW($1:$10)-1)),A1)))
    3
    5227
    0
    4
    5191, 5199
    2
    5
    5036
    0
    6
    5001
    0
    7
    5182
    1
    8
    5289
    0
    9
    5173
    1
    10
    5202
    0
    11
    5318
    0
    12
    5128
    1
    13
    5196
    1
    14
    5252
    0
    Dave

+ 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. Validation specific characters in a string of characters
    By Joshua27 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2015, 12:13 PM
  2. [SOLVED] Function to extract specific word from alphanumeric string
    By Karnik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2015, 02:27 AM
  3. Identifying If A Cell Contains Specific String
    By @MeDaveT in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2014, 02:37 PM
  4. [SOLVED] Macro to create a new line within a text string if specific characters appear mid-string
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2014, 11:32 AM
  5. [SOLVED] Function to flag non-alphanumeric characters in a text string
    By Sophie.Durrant in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-02-2013, 10:56 AM
  6. [SOLVED] Need code to pull numeric data out of an alphanumeric string (string not constant)
    By harrydnyc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2013, 04:44 PM
  7. Replies: 6
    Last Post: 05-21-2012, 04:07 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