+ Reply to Thread
Results 1 to 3 of 3

VBA to clear cells in one column based on another

  1. #1
    Registered User
    Join Date
    07-22-2014
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    2

    VBA to clear cells in one column based on another

    I need a macro that will check each cell in column B to see if the cell contains "Available." If, say, B6 contains "Available," I need J6 to clear, and so on through all used rows in the worksheet. I know this should be simple, but I haven't been able to adapt other similar solutions I've found to this particular situation.

    Thanks in advance for any help you can offer.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: VBA to clear cells in one column based on another

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    07-22-2014
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    2

    Re: VBA to clear cells in one column based on another

    Works like a charm. Very much appreciated, Olly.

+ 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 Contents of column based on data in another column
    By wachao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2014, 02:39 AM
  2. Clear Cells based on Value in another Cell
    By HowieD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2013, 02:29 PM
  3. [SOLVED] How to clear cell contents in a certain column based on set criteria
    By macrohelp5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2012, 10:41 AM
  4. Clear contents of cells based on the values of other cells
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2011, 08:49 AM
  5. Clear cells based on other cell value
    By jturman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-12-2010, 02:51 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