Results 1 to 6 of 6

Delete cell contents if another cell is blank

Threaded View

  1. #1
    Registered User
    Join Date
    11-23-2010
    Location
    Leicester, England
    MS-Off Ver
    Excel 2021 Pro Plus
    Posts
    87

    Delete cell contents if another cell is blank

    Hi, I daily download data into a spreadsheet and I need to be able to delete the contents of one particular cell if another particular cell has no data in it.
    The cells are in the same row as each other, but the actual row number can change depending on how many rows of data the download contains.
    The columns that these cells appear in are always constant.

    I need a macro function that will look at the whole worksheet and repeat this process wherever it finds this condition.

    For example, if cell L4 is blank, then delete the contents of cell U4. Then repeat this for the rest of the worksheet.
    Cols L and U will always be where the cells reside but the rows could be anywhere. The worksheet range is from A1 to AN400

    The sheet is overwritten daily by the new download so I can't use a formula stored in a cell.

    I already have a macro that performs other formatting on the sheet, so I need to add code to the beginning of the existing macro.

    Sorry for the long message but I tried to be as descriptive as possible.
    Thanks in advance for any help
    Mike
    Last edited by MikeWaring; 11-24-2010 at 04:15 AM.

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