+ Reply to Thread
Results 1 to 7 of 7

formula to extract variable initials from reference data

  1. #1
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    formula to extract variable initials from reference data

    I have a list of references with initials , looking a formula to extract only the initials in next column.


    20MI12345/Ab then extract the initials only ab,however sometimes there are 4 alphabets.

    Some have reference only should be ignore
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: formula to extract variable initials from reference data

    =IFERROR(RIGHT(E22,LEN(E22)-FIND("/",E22)),"")

    in F1, copied down.

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: formula to extract variable initials from reference data

    sorry, that formula was for F22.

    here's one for F2.
    =IFERROR(RIGHT(E2,LEN(E2)-FIND("/",E2)),"")

    I just noticed some entries have - instead of /.
    I'll write another formula to take care of either situation.

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: formula to extract variable initials from reference data

    here's the one for F2 that takes care of both "/" and "-".

    =IFERROR(IF(IFERROR(FIND("/",E2),0)>0,RIGHT(E2,LEN(E2)-FIND("/",E2)),RIGHT(E2,LEN(E2)-FIND("-",E2))),"")

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

    Re: formula to extract variable initials from reference data

    Here's another approach:

    =IF(SUM(COUNTIF(E2,{"*-*","*/*"})),TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE(E2,"-","/"),"/",REPT(" ",100)),100)),"")
    Last edited by 63falcondude; 11-01-2017 at 12:30 PM.

  6. #6
    Forum Contributor
    Join Date
    02-11-2014
    Location
    mauritius
    MS-Off Ver
    MS365
    Posts
    1,086

    Re: formula to extract variable initials from reference data

    @63falcondude

    Thank you for this approach worked smartly




    @modytrane

    Formula works well but just a little draw back as below

    20MI145435/0/SM 0/SM should read SM

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

    Re: formula to extract variable initials from reference data

    Glad we could help. Thanks for the rep!

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

+ 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. Replies: 1
    Last Post: 02-11-2015, 01:56 PM
  2. [SOLVED] How to extract name initials
    By busygurl in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 12-10-2013, 01:56 AM
  3. [SOLVED] Loop Formula needed to reference data by initials.
    By Spreadlover in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-20-2013, 05:29 AM
  4. How to extract the number initials found in one cell?
    By buzzbamm101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2013, 03:11 PM
  5. Replies: 3
    Last Post: 01-09-2013, 03:47 PM
  6. [SOLVED] Formula required for initials of names and combining initials with other text
    By iDarkAngel in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-07-2012, 11:22 AM
  7. Formula to extract from variable text
    By Nick S in forum Excel General
    Replies: 3
    Last Post: 06-16-2011, 11:29 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