+ Reply to Thread
Results 1 to 4 of 4

Color fill cells in a sum range

  1. #1
    Registered User
    Join Date
    12-07-2016
    Location
    Midland, TX
    MS-Off Ver
    365
    Posts
    1

    Color fill cells in a sum range

    This may a simple issue but I can't seem to locate a solution.

    Example: Using the basic SUM(A1:A10) in cell A11, is there a way to highlight the cells A1 through A11. When the SUM() function is removed from cell A11, highlighting goes away.

    I know Crtl-[ does this, but I would like it to highlight the cells in the sum() range automatically.

    I have tried some macros and UDFs but I thought this should be much easier to accomplish.

    Suggestions appreciated.

    ...Bob

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Color fill cells in a sum range

    Conditional formatting:
    Formula: =$A$11<>"" (or: =SUM($A$1:$A$10)=$A$11)
    Range: $A$1:$A$11
    Highlight: up to you

    if I got it well
    Last edited by sandy666; 12-07-2016 at 07:39 PM.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Color fill cells in a sum range

    Hello Bob,

    Welcome to the Excel Help Forum.
    It sounds like you want cells A1:A10 to be highlighted if cell A11 sums to a certain value or is within a range of values. Is this correct?
    Assuming so:

    First, let's clear out CF rules, if any, to start fresh.
    1. Select cells A1:A10, then from Ribbon Menu > Home > Conditional Formatting > Clear Rules > Selected Cells
    2. With A1:A10 still selected: navigate to Conditional Formatting > New Rule
    3. Choose the option to Use a Formula to choose which cells to format
    4. Enter the formula you need. For example: = $A$11<>"" (example by Sandy666) or =$A$11>x (where "x" is a number you determine)
    5. The key to the formula is it must evaluate to TRUE or FALSE.
    6. Apply the desired formatting via the tabs in the dialogue box. Then OK click till done.

    Here are a couple of links to info on Conditional Formatting.
    Excel-Easy: Conditional Formatting
    TechRepublic: Ten Cool Ways to Use Conditional Formatting
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    12-27-2016
    Location
    Arizona
    MS-Off Ver
    Excel
    Posts
    3

    Re: Color fill cells in a sum range

    Hi guys. Thank you so much for informative posts.

+ 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. [SOLVED] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  2. [SOLVED]Fill Color (highlight cells) but not to print fill color
    By itszille in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2012, 05:37 PM
  3. color fill in VBA over a range of cells
    By shanebenson in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-18-2010, 06:48 PM
  4. Hyperlink to range of cells that fill with a color
    By lomay in forum Excel General
    Replies: 0
    Last Post: 09-03-2009, 10:45 PM
  5. [SOLVED] Is there a way to count cells in a range based on fill color?
    By eehinmd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 01:15 PM
  6. [SOLVED] Formula to count the cells in a range that have a fill color.
    By Slainteva in forum Excel General
    Replies: 2
    Last Post: 01-19-2005, 05:06 PM
  7. Replies: 2
    Last Post: 01-19-2005, 04:06 PM

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