+ Reply to Thread
Results 1 to 4 of 4

Check Value Then Delete From Different Sheet

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    5

    Check Value Then Delete From Different Sheet

    Hello Guys,

    Am new to this and could spend hours working it out, but i believe its simple i just don't have the time.

    What i have is two sheets.
    Raw Data
    Percentages

    I take the values from raw data to work out a percentage on the percentage sheet.

    I now want to code a macro where by if the value in a specified cell range in this case
    B3:DY55
    is less than 1 I want to delete the value in that cell and make the background red, but also do the same to the same sell but on Sheet: RawData.

    Eg,
    If J36 is 0.85 it will delete the value of that to Zero back background red and then also delete the value of J36 on RawData tab and make the background red.

    Is this straight forward?
    Please tell me it is.

  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: Check Value Then Delete From Different Sheet

    Hi,

    Can't you just add a conditional IF() test to the formulae in the ranges you're interested in and return a zero value if <1. Then use conditional formatting to set the background colour.

    If you want further help then it would be useful if you could upload an example workbook.

    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
    02-12-2010
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Check Value Then Delete From Different Sheet

    That would work for the percentages sheet Richard, but then how would i get it to delete the matching cell from the RawData tab?
    As i can't really have formulas on the RawData tab because thats where i paste in the raw data.

  4. #4
    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: Check Value Then Delete From Different Sheet

    Hi,

    You can still use formulas in the conditional formats for cells in the raw data sheet. Please note I am not saying add formulas to the raw data cells, but to the formula box in the conditional formats functionality. When you set conditional formats you have a choice of whether you use the cell value itself, or use the 'Formula Is' option. If you use the formula is option then simply create a formula which refers to the cells on the percentages sheet.

    Typically in the cond formats of cell on Raw data this would be

    Please Login or Register  to view this content.
    with the appropriate format set.

    Just remember when you paste data to the Raw data that you use Paste Special Values otherwise you will destroy any CFs you have set up.

    Regards

+ 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