+ Reply to Thread
Results 1 to 12 of 12

Formula that includes tolerances (engineering)

  1. #1
    Registered User
    Join Date
    05-02-2014
    Location
    Lancs, England
    MS-Off Ver
    Excel 97\2000\2003\2007\2010
    Posts
    7

    Formula that includes tolerances (engineering)

    Hey Guys,

    Need some help if possible. (EXCEL 2010)

    NOM ACTUAL TOL + TOL - DEVIATION
    Cell A1=25 B1=24.94 C1=0.05 D1=-0.05 E1= The deviation of B1 to A1 inclusive of C1 and D1 (Tolerances).

    My cell E1 answer should = -0.01
    25.05 UPPER LIMIT
    24.95 LOWER LIMIT


    Appreciate the help

    Chris
    Last edited by btc84; 05-02-2014 at 09:54 AM.

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

    Re: Formula that includes tolerances (engineering)

    E1 = B1-A1 - IF(B1>A1, C1, D1)

    Like that?

    F1 =IF(A1+C1<B1, "Above tolerance!", IF(A1+D1>B1, "Below Tolerance!", "A-OK!"))

  3. #3
    Registered User
    Join Date
    05-02-2014
    Location
    Lancs, England
    MS-Off Ver
    Excel 97\2000\2003\2007\2010
    Posts
    7

    Re: Formula that includes tolerances (engineering)

    Yeah that works. Thankyou.

    However when the value hits the tolerance upper or lower limit (example :24.95 or 25.05 it displays #######) ??????

  4. #4
    Registered User
    Join Date
    05-02-2014
    Location
    Lancs, England
    MS-Off Ver
    Excel 97\2000\2003\2007\2010
    Posts
    7

    Re: Formula that includes tolerances (engineering)

    sorted it. thankyou so much

  5. #5
    Registered User
    Join Date
    05-02-2014
    Location
    Lancs, England
    MS-Off Ver
    Excel 97\2000\2003\2007\2010
    Posts
    7

    Re: Formula that includes tolerances (engineering)

    Hey again. It would appear that i need my figures to show zero if they hit the nominal figure of 25. (24.95 to 25.05) 25 should = 0 but obviously shows as -0.05????

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

    Re: Formula that includes tolerances (engineering)

    Huh, how about that.

    Those pound signs are a minor error: they're the "value wider than cell" code, so if you just make the cell wider, it will display it. But it should be right around 0...?

    I'm getting 7.07767E-16

    So we found a floating-point rounding error.

    Wrap it with ROUND:

    E1=ROUND(B1-A1 - IF(B1>A1, C1, D1), 0.001)

    That will round to the nearest thousandth. I picked thousandths because it's a 10th of your tolerance precision so you should have plently of space.

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

    Re: Formula that includes tolerances (engineering)

    Quote Originally Posted by btc84 View Post
    Hey again. It would appear that i need my figures to show zero if they hit the nominal figure of 25. (24.95 to 25.05) 25 should = 0 but obviously shows as -0.05????
    ???

    Obviously if it's smack on nominal you'll deliver the whole tolerance. That's what the math was supposed to do, right?

    What exactly are you trying to deliver, here?

  8. #8
    Registered User
    Join Date
    05-02-2014
    Location
    Lancs, England
    MS-Off Ver
    Excel 97\2000\2003\2007\2010
    Posts
    7

    Re: Formula that includes tolerances (engineering)

    When you add that last syntax in it seems to affect the deviation. Example if input 24.94 its shows zero in cell as opposed to -0.01.

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

    Re: Formula that includes tolerances (engineering)

    Hmm... splitting it like this:
    E1 = B1 - A1
    E2 = IF(B1>A1, C1, D1)
    E3 = E1 - E2

    That solved everything.

    So we've got some kind of issue with the logical function not really returning a number properly.

    Do this instead:

    E1 = (B1-A1) - VALUE(IF(B1>A1, C1, D1))

    Wrapping the IF with the VALUE will force it to assess back to a number before doing the arthmatic. That solved all the problematic behaviors we've seen.

  10. #10
    Registered User
    Join Date
    05-02-2014
    Location
    Lancs, England
    MS-Off Ver
    Excel 97\2000\2003\2007\2010
    Posts
    7

    Re: Formula that includes tolerances (engineering)

    Basically as an example:

    upper tol = 25.05 (With your last syntax if you input 25.06 it shows deviation as 0.00)
    nominal figure = 25 (This is now corrected when the nominal is inputted)
    lower tol = 24.95 (24.94 and deviation shows 0.00 ????)

    obvioulsy before we added round and 0.001 the above problems were ok.

  11. #11
    Registered User
    Join Date
    05-02-2014
    Location
    Lancs, England
    MS-Off Ver
    Excel 97\2000\2003\2007\2010
    Posts
    7

    Re: Formula that includes tolerances (engineering)

    Hey again. Thanks for the help so far. Still having a problem with the nominal figure deviation. Example: If Nominal is 25 and Actual is 25 it should read 0.00. Instead it reads -0.05.??? I know this is a pain.

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

    Re: Formula that includes tolerances (engineering)

    Alright, I don't understand what you want to accomplish, like, mathamatically.

    You have a nominal value, a real value, and upper + lower tolerance limits.

    What do you want your output to be?

    The difference between nominal and real values? How do you want to relate this to the tolerances?

    For me, I would do something like, simply "Nominal - Real" to get the difference, and then check if that's outside tolerance and throw a "Go/NoGo" in an adjacent cell...?

+ 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. Engineering Change Notice formula needed
    By lorenzoscott78 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 05:04 PM
  2. [SOLVED] Counting Cells that includes exact match and also if a cell includes specific text
    By smclachlan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2012, 07:42 PM
  3. Reverse-Engineering a Pricing Formula
    By danptak in forum Excel General
    Replies: 2
    Last Post: 03-29-2012, 04:05 AM
  4. Adding tolerances to the EXACT formula
    By TheSearch in forum Excel General
    Replies: 4
    Last Post: 06-15-2010, 03:39 AM
  5. [SOLVED] How do I get EXCEL to experss tolerances?
    By mmayton in forum Excel General
    Replies: 1
    Last Post: 01-18-2005, 04:06 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