Results 1 to 4 of 4

Macro to delete any rows with the text ‘Project’ from cells A2 downwards

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Macro to delete any rows with the text ‘Project’ from cells A2 downwards

    Hi,

    I have a workbook (see attached Test Data.xlsx file) where I have my data stored on the ‘Raw Data’ tab. The data is an import from another application and it has blank lines and headings replicated down the data.

    When I sort my data on column ‘A’ (Project) and column ‘B’ (Project Number) the data is sorted numerical with the headings (excluding the main headings in row 1) sorted to the bottom with the blanks lines scenario being automatically resolved.

    What I would like is a macro to check for the word ‘Project’ from cell A2 downwards and if any rows are found with ‘Project’ in column ‘A’ then delete these rows and thus leaving the main headings in row 1 intact (please see the ‘Sorted Data’ tab as the expected result)

    As you will appreciate my live data has many thousands of rows of data and a macro would be the ideal solution

    Any assistance in the matter would be greatly appreciated

    Many thanks in advance

    Regards

    Rob
    N.B. Excel version 2016
    Attached Files Attached Files
    Rob

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to keep rows that have certain text in one column, delete rows that do not.
    By mandalope in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2014, 02:35 PM
  2. Macro To Find Rows With Duplicates, Compare Cells, And Delete Rows. - Excel
    By Kwame001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2013, 10:41 AM
  3. Macro to find text and delete active row and rows above/below
    By mrsvanessen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2013, 03:35 PM
  4. Problem with Macro to delete Rows containing certain text
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2012, 07:22 AM
  5. Macro to delete rows if contain certain text?
    By newnoise in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2012, 02:00 PM
  6. Replies: 13
    Last Post: 08-23-2011, 11:00 AM
  7. Macro to delete rows based on partial text
    By rossi_69 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2009, 06:25 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