+ Reply to Thread
Results 1 to 7 of 7

How do I auto highlight a cell which is out of spec?

Hybrid View

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Scarborough, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    How do I auto highlight a cell which is out of spec?

    How do I auto highlight a cell which is out of spec?

    I have a spreadsheet with various numbers in their cells. I have a formula to count any numbers which are +0.5 or -0.5 a certain number, but is there a way of making the cells that are counted, turn the number a different colour or 'highlight'?

    This is the formula I am using:

    =SUM(COUNTIF(B10:Q10,"<"&S10-0.5),COUNTIF(B10:Q10,">"&S10+0.5))

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: How do I auto highlight a cell which is out of spec?

    Take a look at Conditional Formatting
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Scarborough, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How do I auto highlight a cell which is out of spec?

    Hi Jeff, Thanks for the link, it almost solved the problem! I need the condition to be similar to my formula, where it says of the value is +0.5 or -0.5 of Cell S10, then format that particular cell which is out of spec. Hope that makes sense?

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: How do I auto highlight a cell which is out of spec?

    Assuming your value is in Cell A1

    Put this in the conditional format for the cell (FORMAT/CONDITIONAL FORMATTING/FORMULA IS)

    =ABS(A1-$S$10)<=0.5
    Click on star (*) below if this helps

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: How do I auto highlight a cell which is out of spec?

    Step-wise instructions, for you, would be approximately this:

    Highlight the cell range you want to format (A1:B100 or whatever).

    Click "insert conditional formatting".

    New Rule:
    Pick "Greater than" and type in $S$10 + 0.5
    Choose the format you want (red color etc)

    (Another) New Rule:
    Pick "Less than" and type in $S$10 - 0.5
    Choose the format you want (it can be the same as above or different)

    Anyway you could do this with one rule, but that would require more logic, so two clear & simple rules would probably suit your use better.

  6. #6
    Registered User
    Join Date
    08-31-2012
    Location
    Scarborough, England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How do I auto highlight a cell which is out of spec?

    Thanks, it worked.

  7. #7
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: How do I auto highlight a cell which is out of spec?

    Ben: Phil's profile indicates that he is using Excel 2003. Your method won't work for Excel 2003

    Absolute value accomplishes the task in one step
    Last edited by K m; 09-05-2012 at 12:26 PM.

+ 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