+ Reply to Thread
Results 1 to 9 of 9

Format Painter in conjunction with ColorFunction to force recalc of formulas

  1. #1
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Format Painter in conjunction with ColorFunction to force recalc of formulas

    Good morning. I'm using the ColorFunction to find and sum specific cells in my worksheets. I have a table in a hidden worksheet where the sum of the specific cells is calculated and stored for future use when the user calls up a userform to show totals.

    The formula works great right up to the point that I copy and paste a new range (which is located in the same hidden worksheet referenced above). Once the new range the cells that have the ColorFunction formulas in them become blank and the only way for them to re-calculate is to double click into the cell and hit enter. This forces the recalculation just fine but I need the formula to automatically update....how can I get this to occur?

    My setting are set to Automatically recalculate. My cells are formatted for numbers. I've tried hitting F9 after adding the new range but that does not force a recalculation.

    I read online something about using Format Painter when copy and pasting cells or range of cells so that the ColorFunction will automatically update; apparently a change in color does not cause a "change" enough for Excel to recognize the need to recalculate (or something like that...I think).

    Has anyone had any experience using this approach and if so how would I go about using it? I've attached the workbook that contains the formulas I've reference above (see Sheets "Hidden"). The password for all sheets is "j".

    Thanks.

    Matthew
    Attached Files Attached Files
    Last edited by moosetales; 06-09-2014 at 09:19 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    Kind of hard to test anything, all the worksheets are protected.

    You could try adding this to ColorFunction though.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    Colour should reflect data, not represent data. This way madness lies...
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    Norie,

    I realized I left the password out and corrected that immediately after posting. Thanks. Password is "j".

    Matthew

  5. #5
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    Rory,

    I'm relatively new to Excel....would you mind explaining a bit more regarding how I might apply your suggestion? Thanks.

    Matthew

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    I mean that your calculations should be based on data rather than on how cells have been coloured. From a cursory look at the workbook, it seems you could replace a formula like this for instance:
    =IFERROR(ColorFunction($P$2,RCS!$C$1:$C$200,TRUE),"")
    with this:
    =SUMIF(RCS!$B:$B,"Total Hours",RCS!$C:$C)

  7. #7
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    Rory,

    Quote Originally Posted by romperstomper View Post
    =SUMIF(RCS!$B:$B,"Total Hours",RCS!$C:$C)
    I've not fully tested the above formula BUT it appears to be working great in my workbook. I'm heading into work and will continue putting it through it's paces and mark this thread solved once I know I'm out of the woods. Thanks a lot for the feedback.

    Matthew

  8. #8
    Forum Contributor
    Join Date
    02-22-2014
    Location
    Winthrop, ME
    MS-Off Ver
    Excel 2010
    Posts
    420

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    Rory,

    I've run the formula through it's paces and things are looking great. Thanks again.

    Matthew

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Format Painter in conjunction with ColorFunction to force recalc of formulas

    Glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Format painter
    By amandaphs in forum Excel General
    Replies: 3
    Last Post: 02-05-2012, 10:17 AM
  2. Can you force Recalc on File Load?
    By Gary Mugford in forum Excel General
    Replies: 3
    Last Post: 09-27-2006, 02:57 AM
  3. how can I use the format painter??
    By hermosilla in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-11-2006, 07:00 PM
  4. Format Painter in VBA?
    By Angelus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2006, 01:35 AM
  5. [SOLVED] format painter
    By Tom Whitmore in forum Excel General
    Replies: 4
    Last Post: 03-03-2005, 11:06 AM

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