+ Reply to Thread
Results 1 to 3 of 3

how to do a sum between sheets with tolerances using vba code?

  1. #1
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    how to do a sum between sheets with tolerances using vba code?

    hi, all

    I wonder if any one can help me?

    let start from the beginning I have 2 worksheets

    sheet1 contains measurements for a part
    sheet2 contain the specification for the part on sheet1

    so I put the measuring result of a part on sheet1 then click a command button and opens a userform and I would like to cross reference's it to the measurements on sheet2 to check if within specification. Now if a out of specification condition happens I would like to show how much this is out of specification

    e.g me.textbox1.value = ("sheets2")Range("b4") - ("sheets1") Range("c25")

    on sheet 1 c25 cell value is 82.440 and sheet2 b4 value is 82.500 but i have lower tolerance of -0.050 ( tolerance is storage on sheet2 d4) but I only want the textbox to display the amount over the tolerance which would be = -0.010 also how can i round this up to only show 4 digits after decimal


    very much appreciate any help

    thanks in advance

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: how to do a sum between sheets with tolerances using vba code?

    Hi,

    An actual workbook with a before and after situation is worth a thousand words. Please upload.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to do a sum between sheets with tolerances using vba code?

    hi

    here is a stripped copy of the work book
    tried labelling best I can

    thanks

    shane

    Test file Forum.xlsm

+ 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. Programming code : Sheets.Add After:=Sheets(Sheets.Count)
    By Blok , Robert in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2015, 05:00 AM
  2. [SOLVED] highlight cells based on multiple parts with different tolerances for each
    By TJ_IE in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-02-2014, 12:56 PM
  3. Column with "accepted, rejected" from values with tolerances
    By CA Louw in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-21-2014, 09:12 AM
  4. Formula that includes tolerances (engineering)
    By btc84 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-05-2014, 11:14 AM
  5. XY Plot Chart Filling Background to show tolerances
    By blaketague in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-10-2014, 08:08 AM
  6. Adding tolerances to the EXACT formula
    By TheSearch in forum Excel General
    Replies: 4
    Last Post: 06-15-2010, 03:39 AM
  7. [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