+ Reply to Thread
Results 1 to 5 of 5

Change the color of a cell if its own value changes certain percentage

  1. #1
    Registered User
    Join Date
    01-20-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    3

    Exclamation Change the color of a cell if its own value changes certain percentage

    Hello, i´d like to know if there could be a macro to change the color of a specific cell if its OWN value changes certain percentage??
    When one makes the change, it will need to instantly record the previous value and then if the new value is for example a 20% increase, then the macro will change the color of the cell.

    Then another macro would be neccesary to reset the cell colors back to normal for the sheet to be ready for new value monitoring.


    I hope it was clear,

    Thanks!
    Ralphmex.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Change the color of a cell if its own value changes certain percentage

    How long will you see the new color in the cell? I think it will blink so fast, you'll never notice it changed.

  3. #3
    Registered User
    Join Date
    01-20-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Change the color of a cell if its own value changes certain percentage

    Thanks, for answering,

    For example:

    - There is value of 10 in A1.
    - I run the macro and it will stay running.
    - Then if i (or a formula) changes the value of A1 to say 13, the macro will detect that there is a change in the value and also it will detect that it is greater than 20% of the original number, so it will color the cell to red, and will maintain the color in red.

    If the change was not greater than 20%, it will not modify the cell color.

    Did i explain myself ?

    Thanks,

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Change the color of a cell if its own value changes certain percentage

    Here is a macro I did some times ago. I did some modification to suit your needs. Hope it does what you want. This macro will keep track of all changes made to cell A2 in Sheet1. Tracking record is in Sheet3. There is a button in Sheet1 to reset color of cell A2.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-20-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Change the color of a cell if its own value changes certain percentage

    THanks a lot dude! i´ll give it a try!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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