+ Reply to Thread
Results 1 to 60 of 60

changing font color based on change actual number in a table

  1. #1
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    changing font color based on change actual number in a table

    how we can change automatic colour or pattern in all cells of a table based on change actual value . I have tables with many rows and columns, and i want to see in which cell a number is change against original template.
    Thanks a lot.
    Last edited by petri; 07-12-2010 at 07:38 AM.

  2. #2
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    If your template was on the same worksheet you could use conditional formatting.

    If your template was on a different worksheet in the same workbook (in the same cell locations in the example below) you could try a worksheet change event:

    Please Login or Register  to view this content.
    Please see attached.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Please see attached example for Conditional Formatting between 2 worksheets (using a dynamic named range instead of VBA).

    A named range TemplateAddress has been set up in the attached example:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    With cells A2:G11 selected in the New worksheet (in the attached example) create a rule:

    =A2<>TemplateAddress

    ...select your formatting.

    Please see attached.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    Please see attached example for Conditional Formatting between 2 worksheets (using a dynamic named range instead of VBA).

    A named range TemplateAddress has been set up in the attached example:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    With cells A2:G11 selected in the New worksheet (in the attached example) create a rule:

    =A2<>TemplateAddress

    ...select your formatting.

    Please see attached.

    Yes thanks but in your example.....are 2 cells with brown color and are originals...how can I see all original workbook..whitout pattern ?

  5. #5
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    If you change the values on the New worksheet to match the values on the Original worksheet in the same cell locations (I changed the values for testing purposes) then the formatting will disappear.

  6. #6
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    Please see attached example for Conditional Formatting between 2 worksheets (using a dynamic named range instead of VBA).

    A named range TemplateAddress has been set up in the attached example:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    With cells A2:G11 selected in the New worksheet (in the attached example) create a rule:

    =A2<>TemplateAddress

    ...select your formatting.

    Please see attached.
    ok but how i create a TemplateAdress ? this is first step..no?

  7. #7
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Excel 2003:

    Select Insert - Name - Define

    In the Names in workbook box, type TemplateAddress

    In the Refers to box, type the following, and then click OK:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    (or whatever your reference worksheet is called - mine is named Original)

    Excel 2007:

    Formulas - Define Name
    Last edited by pb71; 07-03-2010 at 10:01 AM.

  8. #8
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    Excel 2003:

    Select Insert - Name - Define

    In the Names in workbook box, type TemplateAddress

    In the Refers to box, type the following, and then click OK:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    (or whatever your reference worksheet is called - mine is named Original)

    Excel 2007:

    Formulas - Define Name

    It is necesary to use two sheets? i cant work only on one sheet? Can you write to me each step please ?

  9. #9
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Please post an example workbook so that I can understand your layout.

    No, it isn't necessary to have two worksheets. You could have the original data in the same worksheet and you could use conditional formatting without having to use a dynamic named range.

  10. #10
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    Please post an example workbook so that I can understand your layout.

    No, it isn't necessary to have two worksheets. You could have the original data in the same worksheet and you could use conditional formatting without having to use a dynamic named range.
    ok i attached here an example.


    Can you see my exemple ? Can you see my error?
    Attached Files Attached Files
    Last edited by petri; 07-03-2010 at 10:43 AM.

  11. #11
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    You have one worksheet containing one table of data in your example. Where is the template that you are comparing to or have I misunderstood your original post?

  12. #12
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=pb71;2336239]You have one worksheet containing one table of data in your example. Where is the template that you are comparing to or have I misunderstood your original post?[/QUOTE


    Yes, but i operate on this tabel just for example. Do you say that i can use only a single sheet.
    So after i createTemplateAddress with command: Insert-Name-Define and i selected all table...how i create a rule for first cell A1 ?


    I attached a new exemple but i have a misteke sowhere i think....
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    In your new example, as the table you are comparing to is on the same worksheet, highlight cells A15 to C19 and use the following conditional formatting rule:

    =A15<>A1

    ...select your formatting.

    Please see attached.

    EDIT:
    If you were comparing to data in a different worksheet then you would use the named range in the conditional formatting.
    Attached Files Attached Files
    Last edited by pb71; 07-03-2010 at 11:34 AM.

  14. #14
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Yes thank you very much. i undestand.
    I have more one question. If i have a big table (over 30 rows and 10 columns) with 12 worksheet.....how can i do ...because i dont want to double sheets....to use 24 sheets....
    i can after formatting new sheets ...to delete original sheets?
    Last edited by davesexcel; 07-03-2010 at 12:04 PM. Reason: Quoting previous post no required.

  15. #15
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    From your last example, I thought you had the original (template) table in the same worksheet.

    The conditional formatting uses a formula that references the original table. Therefore, if all the cells in your new table had values and the referenced range (that you deleted) was empty, then all the cells in your new table would not be equal to the original and the conditional formatting would be applied.

    How many rows and how many columns exactly? You have 256 columns and 65536 rows to play with in Excel 2003 so if you want the original (template) table next to the new table then as long as you have <=128 columns of values then you could still have the reference table in the same worksheet. If >128 columns then if you have <= 32768 rows of data (assuming no header row like your example) then you could have the original (template) table below the new table. If you didn't want the worksheet to look too cluttered, then you can always hide the reference table by hiding the columns or rows respectively.

    I hope this helps.
    Last edited by pb71; 07-03-2010 at 12:20 PM.

  16. #16
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    From your last example, I thought you had the original (template) table in the same worksheet.

    The conditional formatting uses a formula that references the original table. Therefore, if all the cells in your new table had values and the referenced range (that you deleted) was empty, then all the cells in your new table would not be equal to the original and the conditional formatting would be applied.

    How many rows and how many columns exactly? You have 256 columns and 65536 rows to play with in Excel 2003 so if you want the original (template) table next to the new table then as long as you have <=128 columns of values then you could still have the reference table in the same worksheet. If >128 columns then if you have <= 32768 rows of data (assuming no header row like your example) then you could have the original (template) table below the new table. If you didn't want the worksheet to look too cluttered, then you can always hide the reference table by hiding the columns or rows respectively.

    I hope this helps.


    Can you see please where is the mistake in this example ?
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    You have a typo in the named range. Change to:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    EDIT:
    Are you going to use 24 worksheets? You could always hide the reference worksheets once you have set up the conditional formatting.
    Last edited by pb71; 07-03-2010 at 12:58 PM.

  18. #18
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    You could alternatively have all the template tables on 1 additional worksheet. In a previous post you specified 10 columns and 12 worksheets, so you could have the reference tables going across the columns. You could then use named ranges with the OFFSET function e.g.

    For the reference table in cells C2:D5 in the Original Worksheet and the new table in cells D2:E5 in the newme worksheet, use this for the named range:

    =OFFSET(INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN())),0,-1)

    ...with the new table in cells E2:F5 in the newme worksheet:

    =OFFSET(INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN())),0,-2)

    etc.

    That is, set up a named range to refer to the applicable range in the Original worksheet for each of the 12 worksheets, for use in the conditional formatting formula.
    Attached Files Attached Files
    Last edited by pb71; 07-03-2010 at 01:17 PM. Reason: Further clarification

  19. #19
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    You have a typo in the named range. Change to:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    EDIT:
    Are you going to use 24 worksheets? You could always hide the reference worksheets once you have set up the conditional formatting.

    I try to type
    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    but the formula contains error. I think is about equal......
    What can i do?

  20. #20
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    I have used this in the attached example and it works for me.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    I have used this in the attached example and it works for me.
    Yes . you're right.
    Lets see the steps:
    1. Selected all value and copy to a new worksheet.

    2.Selected all value from original reference and create a TemplateAddress =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN())) with command:
    Insert-Name-Define

    3.Selected all value from new worksheet and ...then go to the Conditionnel formatted and create a rule:

    =A2<>TemplateAddress if A2 is in upper-corner of selected area.
    Then formatting...format color of pattern of new values..


    Where is my mistake pls ?

  22. #22
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Please post the workbook where you are getting the error.

    To clarify, using TemplateAddress:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    the tables must be in the same locations in both worksheets.

  23. #23
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Thanks..it's work at last.
    I am getting until now error when i copy :

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    refers to : TempateAddress. (error...something about equal.....)


    i try tomoroow to do on my big tables.
    if you are here we can talk.
    Now i need to go.
    Thanks a lot pb71.

    Have a nice evening. We can meet tomorow if you are here...
    Last edited by shg; 07-03-2010 at 03:16 PM. Reason: deleted spurious quote

  24. #24
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Ok..tomoroow we can talk pb71? now i am going ....what pitty...
    i want to try this if work for me.. ...

    If you are not here......Here ....my yahoo.messenger: can_aster

    Thanks a lot..you are great.
    Last edited by shg; 07-03-2010 at 03:16 PM. Reason: deleted spurious quote

  25. #25
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    By the way ..it is true a have 12 sheets ..8 columns..and diferent number of rows: some sheet have 30 rows .other 40 other 20....so i have different number of rows...
    In this case it is ok...your formulas?

    What is 0,-1 and 0,-2 ?


    Thanks anticipate. i am going now...i will be here tomorow.
    Last edited by shg; 07-03-2010 at 03:16 PM. Reason: deleted spurious quote

  26. #26
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Yes, because each template table will be the same size as its counterpart and the conditional formatting will be set up between the respective tables.

    Check out the OFFSET function in Excel Help:

    =OFFSET(INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN())),0,-1)

    In this example:

    Offset by 0 rows and 1 column to the left (as the tables being compared in the example workbook start in the same row but are in different columns).
    Last edited by pb71; 07-03-2010 at 02:36 PM. Reason: Offset by 0 rows and 1 column to the left

  27. #27
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    ok tks. i am tryng to do tomorrow. have a nice evening.
    Last edited by shg; 07-03-2010 at 03:14 PM. Reason: deleted quote

  28. #28
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    To get you started please see the attached.

    There are 3 named ranges Tab1Compare, Tab2Compare and Tab3Compare.

    The conditional formatting in the Table1 worksheet uses Tab1Compare.
    The conditional formatting in the Table2 worksheet uses Tab2Compare.
    etc.
    Attached Files Attached Files
    Last edited by pb71; 07-03-2010 at 03:05 PM.

  29. #29
    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: changing font color based on change actual number in a table

    petri, please don't quote whole posts. It's just clutter.
    Entia non sunt multiplicanda sine necessitate

  30. #30
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=shg;2336351]

    ok shg, sorry..i am first time here on this forum. appologise.

  31. #31
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Why i am getting error when i create a define name?

    Exemple:

    selected all table , then:

    Define Name: name in workbook: TemplateAddress

    refers to: =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))
    (in this case name sheet is : Original)

    After that i am getting error and i cant create Define Name...

  32. #32
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    petri,

    Please post the workbook where you are getting the error.

  33. #33
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    petri,

    Please post the workbook where you are getting the error.
    ok. it is attached.

    pb,

    I receive this error: The formula you type contains an error.
    Attached Files Attached Files

  34. #34
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Check the formula in your defined name TemplateAddress:

    It currently reads:
    ="INDIRECT(""'Original'!""&ADDRESS(ROW(),COLUMN()))"

    Change this to:
    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

  35. #35
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=pb71;2336567]Check the formula in your defined name TemplateAddress:



    i try but i am getting error ..maybe i try to not selected table first?
    or becouse i write this:
    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN())) in Refers to box ???????







    Can you write t ome ...steps to create a name define?





    First step is to selecting all value, all table?

    Then i go to Format-Name-Define?

    Name: TemplateAddress

    Refers to: =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))
    Last edited by petri; 07-04-2010 at 11:50 AM.

  36. #36
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    As posted previously:

    Excel 2003:

    Select Insert - Name - Define

    In the Names in workbook box, type TemplateAddress

    In the Refers to box, type the following, and then click OK:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    (or whatever your reference worksheet is called - mine is named Original)

    ...have you tried to work with the example, TablesCompare.xls, that I posted previously.

    In conditional formatting you would select your range first and then create the formatting rules.

  37. #37
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=pb71;2336577]As posted previously:


    Yes pb.
    But i am getting error when i click ok.


    I do exactly how do you say.

    Can you post me a print screen?


    In refers to: =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    (mine sheet1 is named by me Original)


    dont recognize that is a formula...i dont know why???????

  38. #38
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    I have update your example define.xls where you said you had the error. Can you work with this?

    Have you looked at the TablesCompare.xls workbook that I posted?
    Attached Files Attached Files

  39. #39
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    I have update your example define.xls where you said you had the error. Can you work with this?

    Have you looked at the TablesCompare.xls workbook that I posted?

    I fund where is the error:
    In your topics do you wtite this refer:

    =INDIRECT("'Original'!"&ADDRESS(ROW(),COLUMN()))

    but in your examples after ROW() the sign is ; (semicolon) not
    , (comma) .

    I am sweathy...


    pb cand you help me with a question about a multiple sum in all 12 sheet of workbook? I want to sum a sum from each sheet.

    We need to move this toopic in another place?

  40. #40
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Check your computer's regional settings, you have your list separator set to ;

    Therefore, when writing formulas you will need to use ; instead of ,

    Yes, it is a new question, so please start a new thread.

  41. #41
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Yes, it is a new question, so please start a new thread.



    Can you help me in this new post please?

  42. #42
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Now i try to apply to create a templates with 12 table form each sheet of my workbook.

    It is possible to copy in this new sheet (Templates) only values? Whitout formatting? and without borders? Becouse it is to difficult with all table....and text cells...

    When copy a table in Templates to paste special only value.
    After define name can i use conditionel formatting in this case?

  43. #43
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Try it and see what happens. A good way to learn is to make mistakes (as long as they aren't fatal) and try to understand where it has all gone so terribly wrong.

    If you post an example of your actual workbook explaining exactly what you want to achieve (maybe you could include some before and after worksheets) then this would help put things into context.

  44. #44
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    Try it and see what happens. A good way to learn is to make mistakes (as long as they aren't fatal) and try to understand where it has all gone so terribly wrong.

    If you post an example of your actual workbook explaining exactly what you want to achieve (maybe you could include some before and after worksheets) then this would help put things into context.



    I send to you the original workbook. In the evening I would like to add another sheet (template) with 12 tables but when I select the conditional formatting i have to select the entire table but also the values bellow the table..becouse you can see even there a value ...which can be changed.

    I could select each sheet when I do Conditional formatting??
    Will change format when I copy tables in the template .. becouse become longer on two sheet below.....


    Later evening i will sent to you even what i worked with this worrkbook..ok?

    This workbook is the streets base in my city....for cleaning every day....i sent to you Monday

    Colleges and me sometimes.... must modify it clean surfaces observe where to make changes....



    I will return.
    Attached Files Attached Files
    Last edited by petri; 07-06-2010 at 01:21 PM.

  45. #45
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Ok, thanks, could you translate the headers for me - my Romanian is a bit rusty?

    Please confirm:
    1. Columns D to H are the columns that need to be checked for changes?
    2. Can the number of rows in the table change?
    3. Will the changes be confirmed against static values from this point forward or will you update the values to compare against going forward?
    4. What is the reason behind highlighting the changes? Is it, for example, to assess whether more or less manpower is required if the areas/routes to clean increase/decrease significantly, in which case is a visual indicator of the change sufficient?
    5. In which case, would you want different formatting if a value increases or decreases from the base line?

    Etc.

  46. #46
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=pb71;2338001]Ok, thanks, could you translate the headers for me - my Romanian is a bit rusty?

    Please confirm:
    1. Columns D to H are the columns that need to be checked for changes?
    2. Can the number of rows in the table change?
    3. Will the changes be confirmed against static values from this point forward or will you update the values to compare against going forward?
    4. What is the reason behind highlighting the changes? Is it, for example, to assess whether more or less manpower is required if the areas/routes to clean increase/decrease significantly, in which case is a visual indicator of the change sufficient?
    5. In which case, would you want different formatting if a value increases or decreases from the base line?





    All value only decrease . i want to see all number changed.........


    Yes it is true, column D to H need to be checked for changed. But not only this value (numers) Even that value that you can see under table. (below. are in fact two values that can be changed.)

    and below the table values will change. How to explain. Is to see what areas will fall .. and were not cleaned, seasoned. I environmental inspection and must assess how much was done cleaning the city. You just see where it was less clean. I will send and workbook after template adds. For example, if the 50 square feet was half cleared 250 square meters and will change so you will see. You just have to visualize where



    I have not worked before in Excel and would be grateful if you help me now. You did it and so far in a professional and patient and sincerely appreciate you. By the way you are in England?

    I have not worked before in Excel and would be grateful if you help me now. You did it and so far in a professional and patient and sincerely appreciate you. By the way you are in England? Excuse me do not speak English very well I did nt studing in school or college only on your computer.

    I will send to you my workbook after proccesing..ok PB ?
    Last edited by petri; 07-06-2010 at 04:31 PM.

  47. #47
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Yes, I'm in England.

    Just so I have it clear in my mind:

    It is a visual record of what has been cleaned against what should be cleaned. Therefore, if the values entered in the 12 worksheets (what has been cleaned) are different to the template worksheet (what should be cleaned) then the font will go red (or some different colour). In which case, are you only looking at values less than the template values?

    I environmental inspection and must assess how much was done cleaning the city.
    Would you not want to look at something like the percentage cleaned against the target also?

    Some of the values below the table are 0. Does this mean cleaning is not required?

    Will the new workbook be translated?

    ...and your English is far better than my Romanian.

    EDIT:
    Would you also want to stop values greater than the area that should be cleaned from being entered ... or is there no need to do this because the performance is bonus related?
    Last edited by pb71; 07-06-2010 at 04:49 PM.

  48. #48
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=pb71;2338064]Yes, I'm in England.

    There is no target. Only be observed on the ground surface of the street was cleaned and the area around lower street. Just observe changes. Just so .... We want to see the places where we changed ... so where was very clean ...

    show what i managed to translate the tabel:
    Attached Files Attached Files

  49. #49
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=pb71;2338064]

    Hi.
    I got an idea. To avoid mistakes Amendment values, I put two conditions in Conditionnal Formatting:
    when you increase the value of a color and another color (or filling) when decrease the value.

    Since such mistakes can be avoided by writing a value higher than the table. Can you help ? exchange as conditionnel formatting?

    eg:
    Condition1: =A1<Templates
    Condition2: =A1>Templates

    and then...set: formatting color font or filling.....every conditions

  50. #50
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    petri,

    Please see the attached example. I haved added Data Validation to stop data values higher than the template being entered in the first place. The Data Validation also makes use of the same named range (per worksheet) as the Conditional Formatting. There are instructions on how to apply this in the attached workbook. Are we getting closer?
    Attached Files Attached Files

  51. #51
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    [QUOTE=pb71;2338708]petri,

    How do I select data from table and two table cells below to apply conditional formatting? Can add (formula is) or just follow the format painter applied separately for the two cells after..?

    I want to win time becouse I need to use often conditional formatting, then validation date....

  52. #52
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Yes, format painter would work, however, note that the destination cell will take the other formatting of the source cell i.e. font, fill, borders etc. (and in your example the merged cells outside the table would be unmerged).

    Alternatively, you could also first select the cells in the table and then, with the Ctrl button held down on your keyboard, click on the cells outside the table to include them in the selection.

    Then, conditionally format making sure the last cell that you have selected is used in the conditional formatting rule. E.g. in the manual sweep rev1.xls example, on the CENTRU_I_sch.3 worksheet, first select cells D11 to H31, then with the Ctrl button held down, select cells D32 to E32 and then select cell E34.

    The last cell selected is cell E34, therefore use

    =E34<>centru1sch3

    in your formatting rule and choose your formatting etc.

    Then again, you could always select the cells outside the table one at a time and apply conditional formatting to them individually.

    If you were using Excel 2007, you could edit the apply to range from Manage rules e.g.

    Applies to
    =$D$11:$H$31,$D$32:$E$32,$E$34

    On a side note, in the manual sweep rev1.xls example, the data validation needs to be updated:
    Ignore blank on the Settings tab needs to be unticked when setting the validation rule.

  53. #53
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    Yes, format painter would work, however, note that the destination cell will take the other formatting of the source cell i.e. font, fill, borders etc. (and in your example the merged cells outside the table would be unmerged).

    Alternatively, you could also first select the cells in the table and then, with the Ctrl button held down on your keyboard, click on the cells outside the table to include them in the selection.

    Then, conditionally format making sure the last cell that you have selected is used in the conditional formatting rule. E.g. in the manual sweep rev1.xls example, on the CENTRU_I_sch.3 worksheet, first select cells D11 to H31, then with the Ctrl button held down, select cells D32 to E32 and then select cell E34.

    The last cell selected is cell E34, therefore use

    =E34<>centru1sch3

    in your formatting rule and choose your formatting etc.

    Then again, you could always select the cells outside the table one at a time and apply conditional formatting to them individually.

    If you were using Excel 2007, you could edit the apply to range from Manage rules e.g.

    Applies to
    =$D$11:$H$31,$D$32:$E$32,$E$34

    On a side note, in the manual sweep rev1.xls example, the data validation needs to be updated:
    Ignore blank on the Settings tab needs to be unticked when setting the validation rule.



    ok. Pb thank you,

    l will do as you say in manual _sweet workbook example.
    But what you say to uncheck 'Ignore blank' box in the Data-validation settings affect the empty cells. In empty cells, sometimes can adedd values and not restricting it. .
    So I have to leave checked blank ignore Validation checked.

  54. #54
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Ok, but I thought you said previously that the values could only decrease on the sheets. If there were any changes would these not be made on the template?

  55. #55
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    Quote Originally Posted by pb71 View Post
    Ok, but I thought you said previously that the values could only decrease on the sheets. If there were any changes would these not be made on the template?

    Yes it is true. The value could only decrese but in two colomn (F si G) where i have empty cells...could be adedd some value only . Only in column F and G in each sheets, and only are empty cells. (so increase, it is an exception.

    Need to change formula in Data Validation ?

  56. #56
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    Agreed, in this case there is no need to change the data validation.

  57. #57
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    I attached workbook (template) with sweeping manual. only for Monday..Then will be all week...
    I used. Name-Define, Conditionnel Formatting , Data-Validation ..and restriction form validation...
    Attached Files Attached Files
    Last edited by petri; 07-11-2010 at 12:51 PM.

  58. #58
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    petri,

    Well done! If this does everything that you want it to, can the thread be marked as solved?

    Is it time for the champagne?

  59. #59
    Registered User
    Join Date
    07-03-2010
    Location
    Romania
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: changing font color based on change actual number in a table

    yes it is time for champagne Pb.
    Thank you a lot.
    Can be marked as solved. I hope in future all will be fine.
    Have a nice evening pb.
    :-)

  60. #60
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: changing font color based on change actual number in a table

    You're welcome. A few final thoughts:

    It might be wise to protect your Sablon worksheet. You could also do this for the other worksheets so that only cells where data entry is allowed can be be selected.

    First you will need to unlock the data entry cells on each relevant data entry worksheet. To do this:
    Select the relevant cells, right click and select Format cells
    On the Protection tab untick Locked cells
    Click OK

    Then Protect the relevant worksheets:
    For each relevant worksheet, select Protection and then Protect Sheet from the Tools menu (or, if using Excel 2007, right click on the worksheet tab and select Protect Sheet)
    Tick the relevant options e.g. Select unlocked cells, type a password and then click OK
    Confirm your password and click OK
    Save your changes

    You could also make the Sablon worksheet very hidden:
    Right click on the Sablon worksheet tab and select View Code
    In the Properties window for that sheet, set Visible as 2 – xlSheetVeryHidden
    In the Visual Basic Editor menu select Tools then VBAProject Properties
    Select the Protection tab and tick Lock project for viewing then type and confirm a password
    Click OK
    Close the Visual Basic Editor and save your changes
    Last edited by pb71; 07-12-2010 at 04:12 AM. Reason: Clarification: Protect Sheet by right click on sheet tab in Excel 2007 not 2003

+ 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