+ Reply to Thread
Results 1 to 3 of 3

Delete the entire column that has single digit number - Part-2

  1. #1
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Delete the entire column that has single digit number - Part-2

    Hi Guys,

    I want a Macro that searches the entire sheet and deletes the entire column that has single digit number. The worksheet also has decimal numbers but it should not delete that. It should delete only the single digit number. I am uploading the excel file. In the excel file that I am uploading I want to get rid of Columns B and C. There are some single digit number in Column D and E but its just zero and it will always be zero. No other single digit number other than zero will be in Column D and E. Also the columns with single numbers will be randomly based anywhere at all times i.e they are dynamic. Please find the attachment.

    Thanks in advance.

    Cheers
    plasma33
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Delete the entire column that has single digit number - Part-2

    Hi

    Pls can you explain using a sample data?

    You want to delete the row which has 0 in col D or col E. Or is it that you want to clear the cells B and C if col D or col E is 0? Pls clear...
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Contributor
    Join Date
    06-20-2011
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2013
    Posts
    165

    Re: Delete the entire column that has single digit number - Part-2

    Hi jraj1106

    Thanks for your kind reply. I need a macro that looks for all the column and deletes the whole column which has single digit number which over here is 0 and 1. In the excel file that I have uploaded I want to get rid of columns B and C. But the macro should not effect columns A, D and E because column D and E have single digit number which is 0. Hope I explained it well.

    I have a code which does it for the rows. But deletes all the content.

    Please Login or Register  to view this content.
    Cheers
    plasma33

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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