Results 1 to 5 of 5

Change cell value and color based on anothers cells values

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Change cell value and color based on anothers cells values

    I don't know another way to explain if it isn't based on the attached worksheet (it is not the full file, but only the testing part).


    percentage difference column (I4:I16) in worksheet "May" should calcute the percentage difference between total (G) and last month (H).



    For example:
    When G value (total) < H value (last month) then
    I (percentage) = 1 - (G/H) in GREEN scale 'it means that the actual month is I% lower than the last month

    When G value (total) > H value (last month) then
    I (percentage) = 1 - (H/G) in RED scale 'it means that the actual month is I% higher than the last month

    When G value (total) = H value (last month) then
    I (percentage) = "0" in GREEN scale 'it means that the actual month had no difference compared to the last month


    If I use this logic above with an IF condiction, it'll work, but if I change, for example, J23 value (which will change G5 value), I5 won't change. Only if I insert another data.


    Basically, what I want is that if "G" or "H" is changed, "I" changes together.

    Thanks,
    Luiz.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  2. Change Shape Color based on Cell Values
    By obriend in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2013, 03:26 AM
  3. Replies: 2
    Last Post: 04-30-2013, 05:57 AM
  4. Change color of shapes based on cell values.
    By rkostner in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-24-2013, 05:55 PM
  5. Change cell color based on two values
    By jiub in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2008, 10:56 PM
  6. Change color of commandbuttons based in cell values
    By mmf in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2008, 08:50 AM
  7. Change the color of cells based on values
    By Weasel in forum Excel General
    Replies: 1
    Last Post: 05-01-2007, 12:58 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