+ Reply to Thread
Results 1 to 8 of 8

Conditional Format 1 cell based on other cells

  1. #1
    Registered User
    Join Date
    03-29-2008
    Posts
    7

    Conditional Format 1 cell based on other cells

    I have a spreadsheet (Attached), I track parts and I have conditional formatting setup, 1 or 0 parts on hand and when the part is a 1 I have a green icon, 0 I have a red icon. no problem. But I want to show an overall status in a different cell. Green/ Red or whatever. How do I do this?
    Attached Files Attached Files
    Last edited by VBA Noob; 02-08-2009 at 06:05 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Format 1 cell based on other cells

    If you wanted F5 to watch the status of E5, open the conditional formatting for F5 and use:

    Condition1: Formula Is: =$E5=1
    ...and set your color

    Condition1: Formula Is: =$E5=0
    ...and set your color
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-29-2008
    Posts
    7

    Re: Conditional Format 1 cell based on other cells

    Thank you. I want D3 to watch the status of several cell in this one (E5:E12). I use Excel 07, can you tell me where the formula is, is at? I don't see it
    Last edited by dbrine; 02-09-2009 at 01:03 AM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Format 1 cell based on other cells

    Conditional Formatting in Excel 2007

    VIDEO - Conditional Formatting in Excel 2007

    As for the formula to watch that many cells, you need to more clearly explain. Watching 8 cells is not the same as watching 1 cell. How do you want the 8 cells evaluated? Are all 8 cells to receive a 1 or a 0, and are you looking for a conditional format color change if ANY cell has a 1 or only if all of them do? Or 2...or 3?

  5. #5
    Registered User
    Join Date
    03-29-2008
    Posts
    7

    Re: Conditional Format 1 cell based on other cells

    The 8 cells that are being watch, if any of those cells is a 0 then the status cell turns red otherwise it's green.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Format 1 cell based on other cells

    Then you want to sum the range of cells and if it's anything less than 8, turn red:

    Condition1: Formula Is: =SUM(E5:12)=8
    ...set the color to Green.

    You don't need a "red" condition because you should set those cells to have a red background all the time and only override the "green" when all the cells are entered with a 1, signifying the row is complete.

  7. #7
    Registered User
    Join Date
    03-29-2008
    Posts
    7

    Re: Conditional Format 1 cell based on other cells

    Great! I actually did that. How do I hide the number in the status (sum box), change font color? One last question about this. I need to compare the numbers in one column to the other column, the qty in the one column varies from 0 to whatever. How do I do a comparison to see if it's equal and if not make it red? I can do it for a single cell but not for a range of cells. I'm using excel 07

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Conditional Format 1 cell based on other cells

    When doing conditional formatting, before you even try, go to a blank cell and see if you can create a simple TRUE/FALSE formula. If you can, then use the "test" portion of the formula you create as your formula in Conditional Formatting.

    So, to test if A1 and B1 are equal, just go to C1 and try to get a "true/false" response.

    =IF(A1=B1,true)

    Remember, you want to get a TRUE response for the status that causes the color change. In this instance it's not right because you want it TRUE when A1 and B1 are NOT the same, right? So you try again:

    =IF(A1<>B1,TRUE)

    Once you get it working in a cell, take the "test" part and put into conditional formatting as a formula:

    Condition1: Formula Is: =A1<>B1

    ...and set the color response for the TRUE state....in this case red.

    Always get the formula working first in a regular cell, and you'll never get confused when you go to implement the CF.

+ 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