Results 1 to 4 of 4

Deleting cells based on contents or displayed contents

Threaded View

  1. #1
    Registered User
    Join Date
    06-11-2006
    Posts
    15

    Deleting cells based on contents or displayed contents

    Hi there,

    I have a spreadsheet that I'll be passing on to other people who know nothing of excel, so I need to simplify it as much as possible, so I'm writing Macros to make it a simple button-press to formulate reports. I need to apply a formula to a column but it is of variable length, so what my plan to do is apply the fomula using an if function, where it would return a specific value if it reached the end of the table. For example, in column E i input the formula:

    =IF(ISBLANK(D56),"purple",SUMIFS('Raw Data'!H:H,'Raw Data'!C:C,Information!B56,'Raw Data'!A:A,Information!A56))

    I did this with the plan of doing a find and replace, finding "purple" and replacing it with nothing, hoping that would delete the cell contents, but it simply removed the word purple from the formula. Is there any way I can make it so I can include a macro that adds a variable to a field of variable length, or, more simply, delete cells based on criteria?

    Thanks for any help.
    Last edited by thebottomline; 02-24-2010 at 12:27 PM.

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