+ Reply to Thread
Results 1 to 28 of 28

Need a button to search for out of tolerance values

  1. #1
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Need a button to search for out of tolerance values

    I'm uploading a sample excel sheet to illustrate what I'm needing so any help would be appreciated. My actual sheet will host a lot of data.

    worksheet 1 will be where people enter test data

    worksheet 2 will be where the specs are put that tells the tolerances of the products tested

    I would like a button in worksheet one that when mashed will cause the out of tolerance values on worksheet 1 to turn bold red.

    I am a beginner and can do very simple macro tasks.


    Thank you very much for the help and the education.
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Hi Stryfe

    What decides the out of tolerance values
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Thank you for looking into it.

    If the values from sheet 1 fall outside the min/max on sheet 2 for that particular code header than it is considered out of tolerance.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Wanna give this a go:
    Please Login or Register  to view this content.
    Last edited by sintek; 05-11-2017 at 09:06 AM.

  5. #5
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Works wonderfully thank you so much.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Glad I could help...please click on star next to post and ADD REPUTATION

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Thanks for rep point added...Much appreciated

  8. #8
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Need a button to search for out of tolerance values

    Hi sintek

    Nice solution to the OP's problem. I have used auto filter but my solution could be improved as I'm not to happy with the copy and paste part.

    You got any idea about that?

    Alf
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Hello Sintek,

    I hate to trouble you after your assistance but I am having trouble applying your solution to the final draft of my sheet. In all honesty it is my lack of VBA understanding preventing me from being able to make proper adjustments and substitutions. If I uploaded my final draft would you do the same code for it? It is along the same concept.

    If not, no problem. I do not wish to trouble you especially after the assistance you have already provided me.

  10. #10
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Sure Stryfe

    Upload an lets us have a look

  11. #11
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    @ Alf
    Nice solution to the OP's problem. I have used auto filter but my solution could be improved as I'm not to happy with the copy and paste part.
    You got any idea about that?
    Thanks for the positive feedback.... I am honored...Bit rusty with autofilter but will give it a bash.


    EDITED:
    Best I could come up with so that I could understand...
    Please Login or Register  to view this content.
    Last edited by sintek; 05-11-2017 at 04:25 PM.

  12. #12
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Thank you!

    I just entered the values that would need to be checked in the tolerances tab. Some do not have an upper tolerance but they are clearly marked. This will not only help me with this sheet but help me a better understanding.
    Attached Files Attached Files

  13. #13
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Hi stryfe

    I will need a little clarification with the new upload...Please as before indicate the result you require by doing a mock up....so that I know which columns to compare.

    Edited:
    Will have a look tomorrow
    Also please unmark the thread as solved so that others will also have a look.
    Last edited by sintek; 05-11-2017 at 04:40 PM.

  14. #14
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Thank you

    The data entry will be ongoing in sheet 1 titled "Data Entry". The tolerances are entered on sheet 2 labeled "Tolerances". I just entered the values you needing to be cross checked. For example, when I mash the button with the macro I would like for it to check what is out of limits. So on the data entry sheet where it says 45678 has a entry of 22.24 under "Max Load daN" that it checks that value on the tolerance sheet to see that 45678 has a min. of 13 so that one is ok. For tolerances have a min and max it should fall in-between the two. Any values from sheet "Data Entry" that are out of tolerance should turn bold red. If the tolerance does not have the category from sheet "Data Entry" then it does not need to be checked.


    If I caused any confusion or I'm not clear than please let me know.

  15. #15
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need a button to search for out of tolerance values

    Hello Stryfe,

    This can be done using Conditional Formatting. If you are interested in using this option then you download the updated workbook form this link Conditional Formatting ver 1.xlsm
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  16. #16
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Thank you Leith Ross. Tomorrow I will try to plug in your conditional format suggestion into the Final Draft version I uploaded here and see how it works. I am interested in your formatting and Sintek's macro attempt to help me get a better understanding. Will your formatting work with the Final Draft attachment I uploaded today? I can do small tasks but stringing longer ones together is where I get lost.

  17. #17
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need a button to search for out of tolerance values

    Hello Stryfe,

    Your final draft layout is a bit different than your original post. The concepts still hold for the final draft, but some changes will need to be made to the applied formulas. If you have problems making the needed adjustments, let me know.

  18. #18
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    If I caused any confusion or I'm not clear than please let me know.
    Hi Stryfe

    Can you please amend your workbook to highlight the cells that must be red so that I can see what code to create to check which columns as the new upload is very different to your original post

  19. #19
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Sintek,

    I re-uploaded the Final Draft sheet and renamed it "Final Draft - Color Coded". I highlighted the cells on the "Data Entry" tab a particular color. I then highlighted the cells on the tab "Tolerances" the same color to show where the values in "Data Entry" are checked against to show if they are within tolerance. Some only have a min and not a max. The cells not highlighted a particular color will not need to be checked against another number. I added a third tab titled "Answer Key" which shows exactly what cells should be out once the button is pushed. Thank you again for your time and Leith I am fixing to try your format.
    Attached Files Attached Files

  20. #20
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Geez you don't make it easy....

    Edited:
    Why is Square meter weight and peel force (ibf) not tested
    Last edited by sintek; 05-12-2017 at 07:46 AM.

  21. #21
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    Sorry Sintek.

    The tolerance of the spec is set up in daN but the machine tests in lbf so they will enter the force in lbf and it converts into daN. The same is about true for the square meters. Tolerance shows in Y2, sheet converts it to M2 and in the future we look to switch to that.

    Also if it will make it easier for the ones missing a max limit we can add one into the tolerance sheet and just set it at a ridiculous limit.



    Leith,

    I'm sure it is me but getting your format to transfer over has proven difficult. I am still trying.

  22. #22
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Also if it will make it easier for the ones missing a max limit we can add one into the tolerance sheet and just set it at a ridiculous limit.
    That will definitely make this a little easier cause as is.....I'm at a loss lol....

  23. #23
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    I figured it might be easier, just insert a column beside those with just a min and make a max column. Use whatever value you like and I'll raise it to the extreme on sheet once your excel Jedi skills solve it. Plus I think it becomes much more like the original sheet I posted. I'm sorry for the trouble but it does help me tremendously.

  24. #24
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Guess there is only one way to test.....have a look at uploaded workbook and new code.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  25. #25
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    AMAZING! it is 99% there. It works perfectly except columns (as you have the numbered in "Data Entry") 22 and 23 show all red. I'm sure it is my fault not mentioning it but they do two sets of testing for that section so column 19 and 22 use the exact tolerances and 20 and 23 fall under the same tolerances.

    I can not tell you how awesome this is. Great job. Is there something I can add to the code to include 22 and 23 being checked under the same as 19 and 20?

    Thank you again man

  26. #26
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Yeah yeah yeah...i just noticed that there is a duplicate of peel force dan and aspect
    Herewith amended code which works perfectly....This one really had me using my noggin lol
    Please Login or Register  to view this content.

  27. #27
    Forum Contributor
    Join Date
    05-09-2017
    Location
    NC
    MS-Off Ver
    2013
    Posts
    103

    Re: Need a button to search for out of tolerance values

    I really can't thank you enough. Besides helping on this sheet you helped me for years to come when I try to understand it and hopefully apply it to future sheets.

  28. #28
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,265

    Re: Need a button to search for out of tolerance values

    Glad to have helped...

+ 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. Conditional Formatting of Duplicate of numerical values With Tolerance
    By CBerisso in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2015, 08:36 PM
  2. Match Values to Label Between 2 Tables with Tolerance
    By hydronicengr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-20-2015, 02:23 PM
  3. Replies: 2
    Last Post: 04-23-2014, 04:22 AM
  4. [SOLVED] need values for tolerance
    By jlv7812 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-31-2014, 03:53 PM
  5. [SOLVED] Macro/s to create Search Bar to filter to search terms entered activated by Command Button
    By JasonRay in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-08-2013, 03:44 PM
  6. Checking a tolerance with two values
    By noobsaibot in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-31-2013, 06:02 PM
  7. Determining Nominal & Tolerance Values
    By mycon73 in forum Excel General
    Replies: 10
    Last Post: 12-03-2010, 11:27 AM

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