+ Reply to Thread
Results 1 to 4 of 4

Trying to create a formula for +\-

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    Long Beach
    MS-Off Ver
    Excel 2007
    Posts
    4

    Trying to create a formula for +\-

    HI! Newbie here...

    need to create a formula to show Pass or Fail for +\- 5%. So, anything over 6% and -6% would be fail and everything else would be Pass.

    Thanks.

  2. #2
    Registered User
    Join Date
    04-02-2013
    Location
    South Carolina
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Trying to create a formula for +\-

    Newbie here as well but assuming you have a target value........if the absolute difference between the actual value and target is more than or equal to your tolerance then pass or fail. =if(abs(variance)>=tolerance,"fail","pass"). Substitute cell ranges for where your variance and tolerances are.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Trying to create a formula for +\-

    or try this...

    =and(cell_value>.06,cell_value<-.06,),"FAIL","PASS")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    04-02-2013
    Location
    Long Beach
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Trying to create a formula for +\-

    Quote Originally Posted by jdlucasps7 View Post
    Newbie here as well but assuming you have a target value........if the absolute difference between the actual value and target is more than or equal to your tolerance then pass or fail. =if(abs(variance)>=tolerance,"fail","pass"). Substitute cell ranges for where your variance and tolerances are.
    Quote Originally Posted by FDibbins View Post
    or try this...

    =and(cell_value>.06,cell_value<-.06,),"FAIL","PASS")

    Thanks, but its not what I was looking for. I need it to be where, if F2 is 5% to -5% I want G2 to say PASS. but if it is 6% and up as well as -6% and up, I need G2 to say FAIL. I hope I explained that right. Currently, I had =IF(F2<=5%,"Pass","Fail") But when it was -6% it did not register as FAIL. I can't get it to understand the NEGATIVE.
    Last edited by chona76; 04-03-2013 at 12:34 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