+ Reply to Thread
Results 1 to 4 of 4

Clear multiple adjacent cells with Offset

  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Clear multiple adjacent cells with Offset

    Hey Guys,

    Trying to implement the following: I have 4 columns (C,D,E, and F). If a user inputs any data in any cell in ColumnC then Column D is automatically filled with value "Y". I was able to implement this part, which works ok. What I need to do now is when user inputs any data in any cell in column E (let's say E4), then corresponding cell in column D (D4) or column F(F4) needs to be cleared (meaning that there can be only one "Y" value in the row between D4 and F4). And if Column C is empty, then Columns D, E, and F are also empty.

    Woooph, I hope you understand what I need to implement, if not, pls ask for more info. Below is the starting code:


    Please Login or Register  to view this content.
    Any suggestions and thank you!

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Clear multiple adjacent cells with Offset

    Maybe:

    Please Login or Register  to view this content.
    Or:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    05-16-2011
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Clear multiple adjacent cells with Offset

    Hi XLAdept, unfortunately, it didn't work. And what did you mean by "You can't do one thing"?

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Clear multiple adjacent cells with Offset

    "You can't do one thing" is my paraphrasing of the Heisenberg principle from Physics wherein just by measuring something you have changed its nature. I find it particularly appropriate for programming as any change made to pre-existing code will, most likely, alter something else down the line and scramble the logic of an algorithm

    What do you men by "It didn't work"?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Clear cells upon adjacent cell change
    By jwstimac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2013, 01:02 PM
  2. [SOLVED] VBA Code - Compare Adjacent Cells In two columns and clear contents when a match is found
    By Langer101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-03-2013, 06:22 AM
  3. Macro to find bold cells then clear adjacent cell
    By painterartist in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-26-2011, 04:47 PM
  4. Copy formulas to adjacent columns - multiple cells and multiple sheets
    By swanseaexcel in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-12-2011, 06:21 AM
  5. Clear multiple cells
    By rkaiser in forum Excel General
    Replies: 3
    Last Post: 11-10-2006, 07:26 AM

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