+ Reply to Thread
Results 1 to 6 of 6

Help please to build a macro to find cells with strings of text not containing a word

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help please to build a macro to find cells with strings of text not containing a word

    Hello -

    Could someone please help me develop a macro in Excel 2010 which will allow me to find cells containing long strings of text without a word appearing in them and then delete those cells while shifting them to the left? Your help is greatly appreciated.

    Here is an example:

    example.xlsx

  2. #2
    Registered User
    Join Date
    01-01-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Re: Help please to build a macro to find cells with strings of text not containing a word

    Hi Daane,

    I have seen example.xlsx. Can you please clarify, by giving example what output you would like to have?

  3. #3
    Registered User
    Join Date
    01-03-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help please to build a macro to find cells with strings of text not containing a word

    Hello - Thank you for reviewing this post so qucikly.

    Here is a before and after example:

    example.xlsx

    The macro should find the cells not containing "PUP" in the string of text and then delete those cells shifting them to the left. Once again, thank you for your time!

  4. #4
    Registered User
    Join Date
    01-01-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Re: Help please to build a macro to find cells with strings of text not containing a word

    Hi Daane,

    Sorry I could not get solution for your query. You may get your query resolved by other members.

  5. #5
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Help please to build a macro to find cells with strings of text not containing a word

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Another way


    Hi daane,

    in case of mistake on result row starting with "87654", assuming data starts in row #2 :

    Please Login or Register  to view this content.
    Last edited by Marc L; 01-03-2014 at 09:32 PM. Reason: optimization …

+ 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. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  2. Excel to Word with long text strings.
    By doublewide in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2013, 04:44 PM
  3. Replies: 1
    Last Post: 02-01-2013, 01:57 AM
  4. [SOLVED] Find Whole Words Instead of Text Strings
    By sweetrevelation in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2012, 09:24 PM
  5. find and replace - text strings
    By yabai1974 in forum Excel General
    Replies: 6
    Last Post: 08-01-2007, 08:30 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