+ Reply to Thread
Results 1 to 4 of 4

Delete columns if row header does not equal certain values

  1. #1
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2010
    Posts
    110

    Delete columns if row header does not equal certain values

    Hi

    I have data in B8:X50. I want to delete all columns within B:M if the headers in row 8 do not equal apples, bananas, oranges or plums.

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Delete columns if row header does not equal certain values

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-11-2017
    Location
    Edinburgh, Scotland
    MS-Off Ver
    2010
    Posts
    110

    Re: Delete columns if row header does not equal certain values

    Perfect, thanks a lot John.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Delete columns if row header does not equal certain values

    You're welcome. Glad to help out and thanks for the feedback.

+ 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] Delete columns in sheet1 that are not equal to columns in sheet2
    By ugalskov in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2016, 08:25 AM
  2. Delete Columns where Row 1 is not equal to X or Y
    By dhpeter83 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-23-2014, 01:43 PM
  3. [SOLVED] trying to delete columns in a worksheet that dont match header values
    By Rob69mfj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2014, 03:46 PM
  4. Delete row if some columns equal others. HELP
    By lmvmbc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2013, 01:42 PM
  5. Delete row if some columns equal others
    By lmvmbc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2013, 11:14 PM
  6. Help!! How to delete rows based on value on 2 columns(same equal=0)
    By giallorossi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 03:19 AM
  7. Comparing data in columns and delete if not equal
    By Robert in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2005, 04:06 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