+ Reply to Thread
Results 1 to 6 of 6

Macro to match certain text in wrapped texted cells

  1. #1
    Registered User
    Join Date
    09-26-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    42

    Macro to match certain text in wrapped texted cells

    Hi Guys,

    I need a macro to find/match text within a cell with multiple text and return the matched texted.

    Criteria to match
    BACKDATE - COMPLEX
    BACKDATE - SIMPLE
    LOAN REVIEW
    LOAN REVIEW - DDR
    LOAN REVIEW - FREQ
    LOAN REVIEW - MARGIN

    Please refer to the spreadsheet.

    Any help is greatly appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Macro to match certain text in wrapped texted cells

    I think don't need macro, only use formulas is enought!
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-26-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    42

    Re: Macro to match certain text in wrapped texted cells

    Thanks I had this formula although it will use whatever text that is in the top of the cell.

    Is there a formula to only extract top line text that matches the criteria

  4. #4
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Macro to match certain text in wrapped texted cells

    Quote Originally Posted by christian2016 View Post
    Thanks I had this formula although it will use whatever text that is in the top of the cell.

    Is there a formula to only extract top line text that matches the criteria
    Yes, it was the formula used. @@
    Please Login or Register  to view this content.
    Ctrl + Shift + Enter!
    With J2:J7 is the criteria!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-26-2016
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    42

    Re: Macro to match certain text in wrapped texted cells

    Thanks Works great.

    Also if text is too long the formula returns a blank value.
    If I remove some text the formula will return a value.

    Is there a limit on the text and am I able to fix this issue ?

  6. #6
    Forum Contributor
    Join Date
    11-21-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2016
    Posts
    146

    Re: Macro to match certain text in wrapped texted cells

    Quote Originally Posted by christian2016 View Post
    Thanks Works great.

    Also if text is too long the formula returns a blank value.
    If I remove some text the formula will return a value.

    Is there a limit on the text and am I able to fix this issue ?
    Yes, you can use formulas len(A1) to check how long string in text and set limited of text. Ex: if(len(A1)>500,"",My formulas in #4). @@

+ 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. Automatic row height after text entered into wrapped and merged cells
    By SteveRea in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2013, 03:00 PM
  2. Autofit a row of merged cells that have wrapped text.
    By avidcat in forum Excel General
    Replies: 3
    Last Post: 11-13-2009, 08:41 AM
  3. Truncated wrapped text cells in Excel
    By RichK in forum Excel General
    Replies: 1
    Last Post: 04-12-2006, 02:50 PM
  4. [SOLVED] Autofit in cells with multiple lines of wrapped text.
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2006, 03:10 PM
  5. RE: Autofit in cells with multiple lines of wrapped text.
    By John Keith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2006, 11:35 AM
  6. Replies: 2
    Last Post: 12-04-2005, 11:15 AM
  7. Replies: 0
    Last Post: 10-21-2005, 10:05 AM
  8. [SOLVED] How do I make rows expand to fit wrapped text in cells?
    By FRUSTRATED in forum Excel General
    Replies: 3
    Last Post: 05-27-2005, 03:05 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