+ Reply to Thread
Results 1 to 7 of 7

Find Text, and Extract text

  1. #1
    Registered User
    Join Date
    02-13-2014
    Location
    kansas city, mo
    MS-Off Ver
    Excel 2010
    Posts
    42

    Find Text, and Extract text

    Good day,
    I have a list of applications, and need to check for CC and CS versions. If the title has a CC or CS, I want to extract that into column B. For example, if the application is After Effects CC 2015, I want CC 2015 to populate in column B. I am unsure of how to combine the two formulas to return the correct text, and if the CC or CS is not part of the title, to leave the cell blank. Any suggestions? (Yes, I know that is a goofy question here!)
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Find Text, and Extract text

    You were pretty much there, just needed to handle the errors...
    =IFERROR(MID(A2,FIND("CC",A2),7),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-13-2014
    Location
    kansas city, mo
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Find Text, and Extract text

    I had tried to combine the two MID-FIND formulas so the function could be performed within one formula. Is it possible to nest MID-FIND's?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Find Text, and Extract text

    Yes, you can, but with the sample you gave, why would you want to?
    Does my suggestion give you what you wanted?

  5. #5
    Registered User
    Join Date
    02-13-2014
    Location
    kansas city, mo
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Find Text, and Extract text

    If I place the formula in cell B2 and populate it down the column, it does pick up all the CC entries; however, it leaves the CS entries blank. When I try =IFERROR(MID(A11,FIND("CC",A11),7),MID(A11,FIND("CS",A11),3,""), it errors out.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Find Text, and Extract text

    Maybe this..
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Here is a shorter version
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AlKey; 03-09-2017 at 05:34 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    02-13-2014
    Location
    kansas city, mo
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Find Text, and Extract text

    Thank you! That is exactly what I needed! Perhaps someday, I will have an opportunity to understand it!
    Last edited by reedersketer; 03-09-2017 at 04:12 PM.

+ 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] Search and Find - To extract some text from a string of text
    By Badvgood in forum Excel General
    Replies: 4
    Last Post: 11-01-2016, 01:04 PM
  2. Find specific text from cell and extract the data from the same row
    By roybong in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 09:57 AM
  3. Find specific text from cell and extract the data from the same row
    By roybong in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 06:33 AM
  4. [SOLVED] Find Partial text in an array and extract charaters to right
    By jenita.kurlawala in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-02-2013, 08:03 AM
  5. Find and extract text string from within another text string
    By huy_le in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-09-2013, 09:01 PM
  6. Find and extract text in a column of blank Cells
    By corinereyes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2012, 05:18 AM
  7. How to find and extract numbers that may be present in lengthy text strings
    By Langkawi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2007, 03:17 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