+ Reply to Thread
Results 1 to 6 of 6

Find with a tolerance

  1. #1
    Forum Contributor
    Join Date
    04-02-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    403

    Cool Find with a tolerance

    Hi guys,

    Im looking to be able to enter a number and a tolerance to find other numbers similar .

    eg, I search for "10" with a tolerance of "1", then it will find any number bewteen 9 and 11 eg (9.57899, etc), Similar to Ctrl+F, does anyone have any ideas how to do this?

    Thanks,

    Jimmy
    Thanks,

    JimmyWilliams

  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: Find with a tolerance

    Hi,

    Consider using one of the filtering options. i.e. either an Autofilter or an Advanced Filter to extract the numbers required.
    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 Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Find with a tolerance

    Hello JimmyWilliams,

    The comment made by Richard Buttrey got me thinking about yet another automated approach.

    Essence of the Code for a Standard Module;

    Please Login or Register  to view this content.
    In the attached sample I am giving you two options to choose from.Select Tab "Hide Rows" or Tab "Color Cells"

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Find with a tolerance

    Another option
    Please Login or Register  to view this content.
    This will simply highlight the cells

  5. #5
    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: Find with a tolerance

    If your values are in a single column of contiguous values then with the active cell somewhere in that column the following macro will autofilter the data.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Find with a tolerance

    Hello JimmyWilliams,

    Following up from Post# 3, I have adjusted the Code a little and amended the sample Workbook accordingly. I think you may just like it.

    Regards.
    Attached Files Attached Files

+ 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. number in or out of tolerance.
    By ryang0804 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2017, 12:42 PM
  2. [SOLVED] VBA tolerance loops
    By Stevo56 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2014, 09:16 AM
  3. [SOLVED] need values for tolerance
    By jlv7812 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-31-2014, 03:53 PM
  4. tolerance level
    By excelhelp18 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2010, 04:56 AM
  5. Formulas with Tolerance
    By Horty66 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-19-2009, 09:30 AM
  6. how to put a tolerance
    By bolton78 in forum Excel General
    Replies: 1
    Last Post: 02-03-2008, 07:06 AM
  7. Tolerance
    By Odysseus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-27-2007, 12:26 PM

Tags for this Thread

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