+ Reply to Thread
Results 1 to 4 of 4

How to delete adjacent cells values based on one cell?

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    32

    How to delete adjacent cells values based on one cell?

    Hi Excel experts,

    I have a excel sheet (2010 version) with column A containing numbers and column B & C data.
    I want to delete data from B & C columns if a cell of column A = 0 (null).
    For example, If i delete A1 then B1 & C1 also gets deleted
    Delete A2 then B2 & C2 deleted....
    delete A3 then B3 &C3 deleted ..........and so forth.

    note that column B & C are populated by macro thus formula on those cells won't work. Therefore I want code to take this action.

    best,
    Prad

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: How to delete adjacent cells values based on one cell?

    Place this code in your worksheet module:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    USA
    MS-Off Ver
    Office365
    Posts
    32

    Re: How to delete adjacent cells values based on one cell?

    Great !! it simply works like a magic...thank you so much Mumps1 for your help.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: How to delete adjacent cells values based on one cell?

    My pleasure.

+ 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