+ Reply to Thread
Results 1 to 15 of 15

Min/Max Specifications

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Min/Max Specifications

    I have a spread sheet where i want to create a fomula where when the operator enters a number it will turn green if it is within the specification limits and red if it is out of specfication limits. Is there a formula that will do that.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Min/Max Specifications

    =a1> your specification limits

    =a1< your specification limits
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Min/Max Specifications

    Using Conditional Formatting:

    highlight outside tolerance: =AND(A1<>"",OR(A1<$D$1,A1>$D$2))
    highlight inside tolerance: =AND(A1<>"",A1>=$D$1,A1<=$D$2)


    where cell D1 contains the minimum value and D2 contains the maximum value.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    06-24-2013
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Min/Max Specifications

    I have attached an example of my spreadsheet. What I want to be able to do is when the operator enters there reading it will either turn green for good or red for bad. I do not want it to read true/false.
    Attached Files Attached Files

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Min/Max Specifications

    Great workbook ... unfortunately, I have no idea where the operator inputs figures nor what the minimum and maximum values are.


    Have you tried to apply the example I provided ... it doesn't go in a cell; it goes in a Conditional Formatting formula.


    Regards, TMS

  6. #6
    Registered User
    Join Date
    06-24-2013
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Min/Max Specifications

    The green highlighted area is where the operator will put their readings and the blue highlighted area are the min. specs. No max. The only way I know how to set up formulas are in cells.
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Min/Max Specifications

    See the updated example.

    I have changed the header layout to separate the minimum values and applied Conditional Formatting. I have only done it on the left side. You will need to make the same adjustments and apply similar Conditional Formatting on the right hand side. Should be a good learning exercise

    Regards, TMS
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-24-2013
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Min/Max Specifications

    Thanks, I did figure it out and used it on 7 other spread sheets. I have attached one spread sheet where I was not able to get it to work and I can not figure out why.
    Attached Files Attached Files

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Min/Max Specifications

    I might be missing something but the attached workbook looks very much like the original with no Conditional Formatting applied.

    I regret that I have no plans to start again from scratch.

    Regards, TMS

  10. #10
    Registered User
    Join Date
    06-24-2013
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Min/Max Specifications

    sorry, attached wrong file
    Attached Files Attached Files

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Min/Max Specifications

    The CF is only set up on the left hand side (as per post #7).

    What is it, other than that, that does not work.

    Regards, TMS

  12. #12
    Registered User
    Join Date
    06-24-2013
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Min/Max Specifications

    The throat always shows red. Can not get it to show green just in those sections.
    Attached Files Attached Files

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Min/Max Specifications

    The minimum value cells are formatted as text.

    Reformat them as general then press F2 and Enter to recommit each cell as a numeric value.


    Regards, TMS

  14. #14
    Registered User
    Join Date
    06-24-2013
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    7

    Cool Re: Min/Max Specifications

    Quote Originally Posted by TMShucks View Post
    The minimum value cells are formatted as text.

    Reformat them as general then press F2 and Enter to recommit each cell as a numeric value.


    Regards, TMS
    It worked. Thanks!!!

  15. #15
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Min/Max Specifications

    You're welcome. Thanks for the rep.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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