+ Reply to Thread
Results 1 to 5 of 5

Return Certain Text Randomly Located in a Cell

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    22

    Return Certain Text Randomly Located in a Cell

    Good Afternoon,

    I'm putting together a spreadsheet to help me organize which disciplin incoming files belong to. The way I have it set up is as follows:

    Column A has the file name
    Column B is where I want the specified text to go
    Column C and D are just general information
    Columns E-N are the different disciplins

    So, an example of how the files are named:
    BT3.BW 1.0
    CH.EL 1.0
    BT54.PL.1.0
    CH.PL.1.0

    The text between the two periods is the text im interested in. That denotes the disciplin the file is associated with. So for the first file I would want the cell to return "BW". I would use the =Right or =Left and then specify a number of characters, however in this case the number of characters is different depending on the file type.

    Once I have the value between the two periods I can link that back to a table on another sheet and use VLOOKUP to to properly soort them.

    Any ideas on how I can do this?

    Thanks in advance!

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Return Certain Text Randomly Located in a Cell

    =MID(A1,FIND(".",A1)+1,2)

    I think this will do what you want. It returns the first two characters after the first "."
    Say thanks, click *

  3. #3
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Return Certain Text Randomly Located in a Cell

    Hi -

    The attached uses a helper column, but it returns all text between the "." delimiters.

    Hope this helps.

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Return Certain Text Randomly Located in a Cell

    After re-reading your post, I think Harribone's solution best meets you needs.

  5. #5
    Registered User
    Join Date
    04-05-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Return Certain Text Randomly Located in a Cell

    Works Great! Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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