+ Reply to Thread
Results 1 to 3 of 3

Clear contents of cells based on the values of other cells

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    Ryther, England
    MS-Off Ver
    Office 365
    Posts
    63

    Clear contents of cells based on the values of other cells

    Hi there

    I am looking for some inspiration to help with an issue I have. I want to be able to clear the content of a range of cells based on the values of other cells. However, I want to do this individually.

    As an example I have cell E4 and T4. I want to clear the contents of T4 as soon as a value is entered in E4.

    I used the following coding to achieve this:

    Please Login or Register  to view this content.
    This is okay to clear an individual cell. However, I also want it to do the same for a range of cells so that whenever I enter data into any one of the range it clears the contents of the corresponding cells i.e.
    T4 to clear when data entered in E4
    T5 to clear when data entered in E5
    T6 to clear when data entered in E6
    etc.
    The actual range is E4:P53 with the corresponding cells to clear as T4:AE53
    Can anyone suggest a way to achieve this without using the above code 600 times to cover the cell range required?
    Regards
    mac

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Clear contents of cells based on the values of other cells

    Hi,

    Please Login or Register  to view this content.
    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-05-2011
    Location
    Ryther, England
    MS-Off Ver
    Office 365
    Posts
    63

    Re: Clear contents of cells based on the values of other cells

    Thanks Richard

    Works perfectly

    Regards

    Mac

+ 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