+ Reply to Thread
Results 1 to 13 of 13

conditional format based upon fill in another cell (created by conditional format)

  1. #1
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    conditional format based upon fill in another cell (created by conditional format)

    I have an xls that has conditional formating.

    I was wondering if I can have conditional formating based upon the fill color of another cell that has fill based upon conditional formating.

    Thanks

    Bruce

    P.S. see attached screen shot.
    Attached Images Attached Images

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: conditional format based upon fill in another cell (created by conditional format)

    Sure. Click on one of the conditionally formatted cells > Conditional Formatting > Manage Rules > Change the "Applies to" area to include the column to the left of the $ figures.

  3. #3
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    Re: conditional format based upon fill in another cell (created by conditional format)

    I tried changing the "applied to" to include the date columns but then the date column gets filled and the $ column doesn't get filled.

    current: =$D$3,$J$3,$J$17,$D$17
    changed: =$C$3,$D$3,$I$3,$J$3,$C$17,$D$17,$I$17,$J$17

    I'd the the conditional formating to only be based upon the column with the highest $ amount and then the date column to be filled if the $ column is filled.

    Suggestions?

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: conditional format based upon fill in another cell (created by conditional format)

    You can attach the actual Excel workbook that the screenshot from post #1 is coming from and we can get it sorted out for you.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  5. #5
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    Re: conditional format based upon fill in another cell (created by conditional format)

    here it is:

    thx
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: conditional format based upon fill in another cell (created by conditional format)

    I'm going to start from scratch here. Conditional Formatting > Clear Rules > Entire sheet (this will clear all of the CF in this one worksheet).

    Yellow CF:

    Select cells C2:D13 > Conditional Formatting > New Rule > Use a formula

    =MAX($D$2:$D$13)=$D2

    Format: Fill yellow > OK > OK

    Now repeat these steps for the other 3 boxes adjusting the selection range and CF formulas accordingly.


    Green CF:


    Select D14, D28, J14, and J28 (hold the Ctrl key to make multiple selections) > Conditional Formatting > New Rule > Use a formula

    =MAX($D$14,$D$28,$J$14,$J$28)=D14

    Format: Fill Green > OK > OK

    See attachment for clarification.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    Re: conditional format based upon fill in another cell (created by conditional format)

    can I assume the new formulas would look like this?

    =MAX($D$16:$D$27)=$D16
    =MAX($J$2:$J$13)=$J2
    =MAX($J$16:$J$27)=$J16

    If this is correct, each box is filling the highest month but I'm trying to fill the highest "january" month of each box.

    I even tried using =MAX($D$2,$J$2,$D$16,$J$16)=$D2 but it didn't fill anything.

    Suggestions?




    Bruce

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: conditional format based upon fill in another cell (created by conditional format)

    Ooh I see. I thought that each box was supposed to highlight its' own max. In that case, we can edit the formulas from post #6 to these:

    C2:D13
    =AND(MAX($D2,$D16,$J2,$J16)=$D2,$D2<>0)

    I2:J13
    =AND(MAX($D2,$D16,$J2,$J16)=$J2,$J2<>0)

    C16:D27
    =AND(MAX($D2,$D16,$J2,$J16)=$D16,$D16<>0)

    I16:J27
    =AND(MAX($D2,$D16,$J2,$J16)=$J16,$J16<>0)

    The green CF formula from post #6 is still correct.

    See updated attachment.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    Posts
    142

    Re: conditional format based upon fill in another cell (created by conditional format)

    It's perfect....exactly what I was trying to do.

    I'll just need to study the formula to get a better understanding on what it actually does for future formulas.

    Thanks so much!

    Bruce

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: conditional format based upon fill in another cell (created by conditional format)

    Great! Happy to help.

    Thanks for the rep!

  11. #11
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: conditional format based upon fill in another cell (created by conditional format)

    63falcon
    in the conditional format formula =MAX($D$2:$D$13)=$D2, what does =$d2 do? I can see why the max is there but what does the other part do? Is it like saying >=D2?
    Last edited by kevinu; 02-15-2018 at 08:31 PM.

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: conditional format based upon fill in another cell (created by conditional format)

    kevinu, I assume you are referring to the formula from post #6.

    We put the absolute sign ($) before the column letter since we do not want the column reference to change as the CF formula is "dragged over and down".
    Note that we would not have to put any absolute signs in front of the column references if the CF formula was only applied to a single column.

    A good way to envision how this works is to put the formula into another cell and drag it across and down to see what returns TRUE and what returns FALSE.

    Everything that returns true will be conditionally formatted.

    In the simplified example below (see screenshot), the TRUE's and FALSE's correspond to the values that are in the range B3:C5.

    If you wanted to apply Conditional Formatting to highlight the highest number and it's corresponding letter, you would select B3:C5 and apply the formula that is shown in H3.
    Attached Images Attached Images

  13. #13
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    Re: conditional format based upon fill in another cell (created by conditional format)

    oh ok i see now thanks for the explination

+ 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: 3
    Last Post: 02-24-2015, 02:58 AM
  2. [SOLVED] Conditional Format a row based on a cell
    By jtmann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2014, 04:54 PM
  3. Replies: 2
    Last Post: 09-26-2012, 04:43 AM
  4. [SOLVED] Conditional Format to fill whole cell
    By mrr2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2012, 08:09 PM
  5. Replies: 0
    Last Post: 05-20-2011, 02:33 PM
  6. Replies: 12
    Last Post: 09-15-2010, 03:23 PM
  7. Conditional Format based on other cell's value
    By Stella in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2006, 01:50 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