+ Reply to Thread
Results 1 to 8 of 8

Find unique abbreviation in file name

  1. #1
    Registered User
    Join Date
    07-29-2019
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    68

    Find unique abbreviation in file name

    Hi,

    I would like to know is it possible - if I paste a file name in cell :-

    A1 "J000379_Existing_S-001-02" then it will show in cell B1 "Schematic" - it's pick up the unique abbreviation "S-"

    or

    A1 "J000379_Existing_L-001-02" then it will show in cell B1 "Site Layout" - it's pick up the unique abbreviation "L-"

    and so on

    General Arrangements A-
    Civil C-
    Site Layout Drawings L-
    Schematic Diagrams S-
    Wiring Diagrams W-
    Multicore Cable Diagrams M-
    Block Cable Diagrams B-
    Documents D-
    Vendor V-

    Thank you

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Find unique abbreviation in file name

    Please post a sample sheet ( see yellow banner) with some further examples of strings to lookup or are they all the same differing only by S- or L- or...?

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Find unique abbreviation in file name

    Maybe this:

    =VLOOKUP(MID(A1,SEARCH("Existing",A1)+9,2),K:L,2,FALSE)

    see file for layout.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    07-29-2019
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    68

    Re: Find unique abbreviation in file name

    Hi,

    Sorry the unique abbreviation ("L-")is the only reference - the rest of the file name description will relate to the drawing, this could be any length,

    Cheers

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Find unique abbreviation in file name

    You can adapt Glenn's example, e.g.:

    =LOOKUP(9.99E+307,SEARCH("_"&$K$1:$K$9,$A1),$L$1:$L$9)
    copied down

    where A1 holds filename, K1:K9 holds your hyphen variants (e.g. A-, L-) , and L1:L9 holds the value you wish to return when variant found

  6. #6
    Registered User
    Join Date
    07-29-2019
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    68

    Re: Find unique abbreviation in file name

    Hi,

    That's smashing does the job, is it possible to get rid of the "#N/A" ?

    Cheers

  7. #7
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Find unique abbreviation in file name

    yes, you can wrap the above within an outer IFERROR

    =IFERROR(LOOKUP(....),"")

  8. #8
    Registered User
    Join Date
    07-29-2019
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    68

    Re: Find unique abbreviation in file name

    Works a treat thank you.

+ 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 unique values in a row and insert a row after every unique value in a column
    By arjunjshetty in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-16-2020, 11:24 AM
  2. Replies: 3
    Last Post: 05-26-2016, 02:11 AM
  3. Replace abbreviation with full file name
    By griswold in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-03-2015, 02:11 PM
  4. [SOLVED] Find unique values and make them unique
    By unitlted_1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2015, 11:10 AM
  5. Macro to compare and find the unique data from a pdf file
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-27-2012, 02:03 AM
  6. Replies: 4
    Last Post: 01-22-2011, 07:33 AM
  7. Abbreviation conversion
    By borchesz121 in forum Excel General
    Replies: 3
    Last Post: 07-07-2005, 05:12 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