+ Reply to Thread
Results 1 to 10 of 10

How can i input an exact number and have excel show me results within a tolerance?

Hybrid View

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    plainfield, connecticut
    MS-Off Ver
    2016
    Posts
    3

    How can i input an exact number and have excel show me results within a tolerance?

    I work at a plastic extrusion company which makes small tubing. We have calibrated metal wires (aka mandrels) that we run through the inside diameter of the tubing to assure that it is consistent throughout. We have hundreds of these mandrels, various sizes, and they all have a tolerance.

    That being said, we have an excel database listing the minimum and maximum diameter of each mandrel. One column has the minimum and the other has the maximum. My problem is that if i need a mandrel for a tube with an inner diameter of, say, 0.0170", it becomes time consuming to scan the worksheet to find a mandrel that satisfies 0.0170" within its min and max range.

    Here is a sample of what my sheet looks like:

    Mandrel / Diameter Min / Diameter Max
    1............0.0116".................0.0119"
    2............0.0120".................0.0122"
    3............0.0121".................0.0123"
    4............0.0140".................0.0142"
    5............0.0140".................0.0143"
    6............0.0141".................0.0143"
    7............0.0143".................0.0146"
    8............0.0143".................0.0145"
    9............0.0143".................0.0145"
    10..........0.0148".................0.0153"
    11..........0.0148".................0.0150"
    12..........0.0149".................0.0149"
    13..........0.0149".................0.0150"
    14..........0.0149".................0.0152"
    15..........0.0151".................0.0155"
    16..........0.0157".................0.0159"
    17..........0.0157".................0.0162"
    18..........0.0158''.................0.0161''
    19..........0.0159".................0.0161"
    20..........0.0159".................0.0160"

    So if i have a tube that is supposed to have a inside diameter of 0.0142", i could use mandrel 4,5,6. I am trying to find a way to tell excel what target diameter i am looking for, and have excel respond with the various mandrels that have a tolerance including my desired diameter.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,873

    Re: How can i input an exact number and have excel show me results within a tolerance?

    I am going to suggest that we identify a cell to put the target diameter, then use conditional formatting to highlight the matching rows.

    See attached.
    Attached Files Attached Files
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,873

    Re: How can i input an exact number and have excel show me results within a tolerance?

    By the way you are going to need to use numbers, as in my attachment. The data you showed here looks like text.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,554

    Re: How can i input an exact number and have excel show me results within a tolerance?

    Try

    =INDEX($A$2:$A$21,MATCH($H$2,$B$2:$B$21,1)-1)

    and

    =INDEX($A$2:$A$21,MATCH($H$2,$B$2:$B$21,1)

    which will return results 5 & 6 for your example of 0.0142
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,934

    Re: How can i input an exact number and have excel show me results within a tolerance?

    An alternative to 6stringJazzer's -- I tend to use filters (autofilter: http://www.wikihow.com/Use-AutoFilter-in-MS-Excel ). The widest span in your list is 0.0005, so I would apply a filter (maybe to the min diameter) that displays only those rows where min diameter is greater than 0.0137 and 0.0142. In this case it will capture just the 4, 5, and 6. In other cases, it will probably return some that are not suitable, but I would have a much smaller list to scan through to make my final determination.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How can i input an exact number and have excel show me results within a tolerance?

    see attached file. this will capture all possible matches.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How can i input an exact number and have excel show me results within a tolerance?

    see attached file. this will capture all possible matches.

    I updated the file with your numbers.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-25-2017
    Location
    plainfield, connecticut
    MS-Off Ver
    2016
    Posts
    3

    Re: How can i input an exact number and have excel show me results within a tolerance?

    I am glad to see that my question was understood. I wasnt really sure how to explain it. Thank you for all the help and suggestions. I really like what 6StringJazzer suggested. It definitely helps!

    Please don't think i am not grateful, but ideally, I would like to be able to type in the target diameter and have the worksheet filter out all rows that are not possibilities. I am only as smart as an average excel person, but some people i work with have a hard time with computers in general. Those people will be using this spreadsheet also, so i want to make it as simple and clear as possible. I'd like to tell them, all you have to do is "type in your target diameter here" and excel shows them nothing but the mandrels that can be used.

    I didn't realize i could attach my spreadsheet. Ill attach it now so all you Excel wizards can work your magic.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,554

    Re: How can i input an exact number and have excel show me results within a tolerance?

    Doesn't post #7 do what you want?

    Where are they entering the target value?

  10. #10
    Registered User
    Join Date
    04-25-2017
    Location
    plainfield, connecticut
    MS-Off Ver
    2016
    Posts
    3

    Re: How can i input an exact number and have excel show me results within a tolerance?

    It does do what i want, in a way. Id like to see the entire row though because the spreadsheet i attached in post #8 has a physical location column telling the person where to go, in the factory, to obtain the mandrel needed. I would probably have "Target" in A1 and have the value to be entered in B1.

+ 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. Replies: 6
    Last Post: 09-06-2014, 10:50 AM
  2. If the cell contains an exact word show this number
    By niall1991 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2014, 11:16 AM
  3. [SOLVED] Pulling multiple index results from a single input number
    By cwatsonSONA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2013, 11:00 AM
  4. Formula to work out an exact average over an exact number
    By Sandyshirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-11-2013, 01:35 AM
  5. How do I show Countif Results (Not the Number)
    By graphictees in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2011, 12:10 PM
  6. Replies: 4
    Last Post: 11-12-2010, 01:01 AM
  7. Replies: 1
    Last Post: 05-12-2006, 05:00 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