+ Reply to Thread
Results 1 to 4 of 4

How to change color of one cell on one sheet based on an increase or decrease form a cell

  1. #1
    Registered User
    Join Date
    12-16-2012
    Location
    Morganton, North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to change color of one cell on one sheet based on an increase or decrease form a cell

    I have a workbook with 53 sheets, one for each calendar week plus one for yearly. Each sheet has columns for percentages for each shift(1st, 2nd, 3rd). What I want to do is change the color of the cells that increase(green) or decrease(red) from that of the same cells on the previous sheet in order to keep track of progress from week to week. The problem is I don't know how to do it or how to incorprate into the formula I have for these cells. The formula I am using for my percentages is [ code ]=IF(ISERROR(B4/D4),"0",B4/D4)[ /code ] .

    Book1 - Copy.xlsx
    Last edited by Coffey; 12-16-2012 at 12:46 PM.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: How to change color of one cell on one sheet based on an increase or decrease form a c

    Hi,

    what is your target for green color and for red

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,935

    Re: How to change color of one cell on one sheet based on an increase or decrease form a c

    this would normally be done with conditional formatting, but CF does not work across sheets. another option might be to reference the sheet before in a table off to the side, and then use CF based on that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-16-2012
    Location
    Morganton, North Carolina
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to change color of one cell on one sheet based on an increase or decrease form a c

    The target depends on if the cells value increased or decreased from the previous sheet. If it increased green, if decreased red.

+ 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