+ Reply to Thread
Results 1 to 4 of 4

Formatting cells in one sheet based on their values in another sheet

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formatting cells in one sheet based on their values in another sheet

    Hello everyone =)

    I have 2 sheets in one workbook - one contains planned values and the other actual values. I'm trying to format the second sheet to show differences, for example: cell C6 in Sheet1 is 10 so if C6 in Sheet2 is higher I'd like it to be highlighted green and if it's lower highlighted in red. I know it's easily done for one cell but I need it for the whole sheet (would be a loooot of clicking to do it one by one). I've found this thread: http://www.excelforum.com/excel-prog...orksheets.html - but it only highlights differences in yellow. Could it be changed to two color scale for lower and higher values?

    Thanks and regards,

    Bart

  2. #2
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    145

    Re: Formatting cells in one sheet based on their values in another sheet

    Hi,

    You could use conditional formating.


    Simeon

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formatting cells in one sheet based on their values in another sheet

    Yes, i figured that much but how? If you format cells from the ribbon using formula for each one you'll have to go cell by cell which is very time consuming so I was thinking VBA can do it quickly for all the cells in a sheet... If you check the link provided you'll see what I mean - I'd like the same thing to happen on my sheet but with two color scale.

    Thanks,

    Bart

  4. #4
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    145

    Re: Formatting cells in one sheet based on their values in another sheet

    Bart,

    Ah, I see now. Sorry about that. I have come up with a way to identify different values without using VBA because I am not that skilled with it yet.

    In the attached Workbook I just added another column that uses a simple IF statement to identify if "Planned Values" are >,<, or = to the values in "Actual Values" and return either a 1, -1, or 0.

    Then using the built in Conditional Formating I highlighted the entire column and applied the specified criteria i.e. (IF Actual Values!B2 is greater than Planned Values! B2 then "Green")

    Hope this helps.


    Simeon

+ 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