+ Reply to Thread
Results 1 to 10 of 10

Applying 1 cells conditional formatting to several adjacent cells

  1. #1
    Registered User
    Join Date
    02-13-2008
    Location
    Northern NY
    Posts
    6

    Applying 1 cells conditional formatting to several adjacent cells

    I have a cell (A7), that is conditionally formatted (color changes depending on the ascending value of the percentage). I want to apply this same color change to cells A1:A6. Is there any way to do this that does not require code work?

    As an FYI, A7 value is based on another cell where the calculation takes places.

    Thanks for any help provided!

  2. #2
    Registered User
    Join Date
    07-18-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Applying 1 cells conditional formatting to several adjacent cells

    Can you not just extend the range in the conditional formatting rules?

  3. #3
    Registered User
    Join Date
    02-13-2008
    Location
    Northern NY
    Posts
    6

    Re: Applying 1 cells conditional formatting to several adjacent cells

    hmmm, tried that, but it did not work. In order for that to work, the range would be from cell A1 to A7, where A7 is the cell with the percentage that would drive the format......Not sure how to do that.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Applying 1 cells conditional formatting to several adjacent cells

    Please provide the details of the existing conditional formatting. If you are using a formula, then the formula should be modified to use absolute addressing. For example, if your current approach is "use a formula to determine which cells to format", and the formula is

    =A7>0.50

    then range should be extended as mentioned above and the formula changed to

    =$A$7>0.50

    If you are instead using some other type of rule then you will have to set one up as "use a formula to determine which cells to format" as described.

    If you attach your file then we can probably just go ahead and update your file for you.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    02-13-2008
    Location
    Northern NY
    Posts
    6

    Re: Applying 1 cells conditional formatting to several adjacent cells

    K, here it the gist: In this case, it is a little different (my bad).
    It is a row of information, with one true data point on the end. So, columns A to G are all informational cells about an activity, with H being the percentage complete. Currently, I have it set that H is a value based on other cells performing a calculation. H is then conditionally formatted such that it is a graded color scale based on the ascending value of the percentage (lower is brighter).

    book test description status percentage
    1 5 blah blah open 80%

    I have it set so that the percentage cell changes color as it nears 100%. I would like it if the entire row changes that same color.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,449

    Re: Applying 1 cells conditional formatting to several adjacent cells

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    02-13-2008
    Location
    Northern NY
    Posts
    6

    Re: Applying 1 cells conditional formatting to several adjacent cells

    Here is the attached example. Note that for some reason, I could not get it to look exactly like I want. I have a table of information (A3:E6). Column E is the percentage complete. I set up a simple graded color scheme from lowest to highest percentage, to go from Red to Yellow. Sadly, E3 is at 50% and is at yellow. This should not be the case. Not sure what what went wrong there.

    The goal is to have all rows have a color based on their E cell color, based on the percentage complete for that row. Hope that helps. I have a feeling that this is super easy.
    Attached Files Attached Files

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Applying 1 cells conditional formatting to several adjacent cells

    Couple of things here.

    First, the reason that your 50% is yellow is that you have selected Percent. This does not give you a range of colors based on the absolute percent number in the cell. It bases the color on where the value in that cell falls in the range of all cells with that formatting. That is, if you have the numbers

    50
    70
    60
    75

    It will treat 50 (lowest number) as the 0% point and 75 (highest number) as the 100% point for purposes of formatting. 60 will be treated as 40%, and 70 will be treated as 80%.

    In your case, you want to use Number, and use the range 0 and 1. That will give you the colors you are expecting.

    Now, the bad news. This formatting rule works only to format the cell containing the value that determines the color. You cannot use the graded color scale to format other cells. So the only way to do what you want to do is define a separate rule for each color you want to use, instead of letting Excel select the color from a gradient. Then you would use the technique I described above.

  9. #9
    Registered User
    Join Date
    02-13-2008
    Location
    Northern NY
    Posts
    6

    Re: Applying 1 cells conditional formatting to several adjacent cells

    Alright! I understand. Thanks for the help!

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Applying 1 cells conditional formatting to several adjacent cells

    Here is an example using four colors for 0-25%, 25-50%, 50-75%, 75-100%
    Attached Files Attached Files

+ 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. Replies: 5
    Last Post: 07-12-2013, 01:15 AM
  2. Looping through cells and applying conditional formatting
    By stroberaver in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2011, 07:17 AM
  3. Replies: 3
    Last Post: 01-26-2010, 08:36 PM
  4. Replies: 6
    Last Post: 11-22-2006, 02:09 PM
  5. [SOLVED] conditional formatting adjacent cells
    By jbsand1001 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-20-2005, 06: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