+ Reply to Thread
Results 1 to 15 of 15

Excel 2007 : Conditional formatting

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Angry Conditional formatting

    hi, all,

    Thank you for your kind help.

    I hope to do a conditional format to see if my results change or not. When I design the simple conditional formatting rule, Excel 2007 says that "reference cell can not in different worksheet!". I am using Excel sp1.

    Can any expert help me out?

    appreciate it.

    Azz
    Attached Files Attached Files
    Last edited by NBVC; 10-05-2009 at 08:58 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting

    You can name the cells in the other sheet and refer to them by name.. or you can refer to them indirectly... e.g..'data2'!c5>Indirect("'data1'!b3")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-24-2009
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Conditional formatting

    Thanks for your reply.

    But if I have a 10*10 range, I have to name or use indirect one by one.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting

    Please upload a better sample and show exactly what you want to do... the sample posted doesn't really tell me what you want.

  5. #5
    Registered User
    Join Date
    06-24-2009
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Conditional formatting

    Thank you again. Sorry for the previous data.

    I have a matrix of origonal data, say, 500 by 50. I calc their var/cov matrix, which is 50 by 50.

    When I simulate the origonal data, so the var/cov matrix changes. I need to compare how the individual var or cov changes.

    I want to conditionaly format my simu'd matrix by comparing the origonal var/cov matrix.

    The dataset is large and I do not want them in one worksheet, that is my problem.

    Thanks.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting

    Sorry for being dense, but I am not understanding what you want coloured and when. Give some examples of what will be coloured on what sheet and why.

  7. #7
    Registered User
    Join Date
    06-24-2009
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Conditional formatting

    for the original dataset, I have a var/cov matrix A.
    then I change some of the original data by simulation, recalc a var/cov matrix B. B has the same dimension as A, and is different than A.

    I hope to color-code those cells in B, which is different than the corresponding values in A.

    Appreciate your help.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting

    I am a little confused as you are not giving examples of what should/should not be coloured.. by your description I can't see any that should not be coloured....

    Anyways, what I did was name the range in sheet origonol A1:L15 as "Original" without quotes...

    then I selected Sim1, F7:P20 and applied conditional format formula:

    =F7<>OFFSET(Original,ROW(A1),COLUMN(A1),1,1)

    similar for Sim2 range...

    Is that right? All cells got highlighted.

  9. #9
    Registered User
    Join Date
    06-24-2009
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Conditional formatting

    Sorry, my bad.

    Please check out the formatting I hope. Really appreciate.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Smile Re: Conditional formatting

    I have fixed your matrix comparison scenario with intra worksheet formatting. Please see attached file.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-24-2009
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Conditional formatting

    Hi, SD,

    Exactly what I hoped. Can you hint me how you did it? I tried but did not figure it out.

    Thanks a lot.

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Conditional formatting

    Select F13 on sim1, and click Conditional Formatting on the Home tab to see the rules applied.
    Entia non sunt multiplicanda sine necessitate

  13. #13
    Registered User
    Join Date
    06-24-2009
    Location
    NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Conditional formatting

    Got it. Thank you guys so much.

  14. #14
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Conditional formatting

    azz,

    I know that marking the post SOLVED is not a straight forward thing to do but could you do so?

    sdruley

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional formatting

    azz can no longer change that...as it has been past 2 days...

    I changed it to [SOLVED]

+ 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