+ Reply to Thread
Results 1 to 5 of 5

Find whether value falls within any ranges that are specified by lower and upper limits

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    Michigan
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Find whether value falls within any ranges that are specified by lower and upper limits

    Hello, I have three columns: Column A is a lower limit, Column B is an upper limit, and Column C is my list of values. For each value in Column C, I'd like to check whether it falls within any of the ranges defined in columns A and B (so, A2-B2 is one range, A3-B3 is another range, A4-B4 is another range, etc). What is the easiest formula I can use to report whether there was a hit for my column C values?

    e.g. column A: A1)1000; A2) 2000; A3) 3000

    column B: B1) 1200; B2) 2300; B3) 3500

    In this scenario I would check whether my values in column C fall within the ranges 1000-1200, 2000-2300, 3000-3500, etc. A value of 1100 would be a "yes" and a value of 1500 would be a no.

    Thanks!

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find whether value falls within any ranges that are specified by lower and upper limit

    Try

    =IF(COUNTIFS(A$2:A$100,"<="&C2,B$2:B$100,">="&C2),"Yes","No")

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Find whether value falls within any ranges that are specified by lower and upper limit

    In the example you explained, if column A contains the min range, B contains the max range, and C contains the value to check, enter this into cell D1 and drag down:

    Please Login or Register  to view this content.
    This is assuming that your value can't be equal to your min/max values.

    Hope this helps.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  4. #4
    Registered User
    Join Date
    11-04-2014
    Location
    Michigan
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: Find whether value falls within any ranges that are specified by lower and upper limit

    Thanks for your help Jonmo1 and mcmahobt! I tried Jonmo1's solution and it works great for my needs!

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find whether value falls within any ranges that are specified by lower and upper limit

    You're welcome.

+ 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. Upper and lower control limits
    By Dessesbo in forum Excel General
    Replies: 1
    Last Post: 07-13-2012, 12:34 AM
  2. If formula with a upper and lower value limits
    By elcasey125 in forum Excel General
    Replies: 3
    Last Post: 04-19-2009, 11:59 PM
  3. [SOLVED] Upper/lower control limits?
    By [email protected] in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-25-2006, 11:35 AM
  4. math formula with upper and lower limits on data but also ranges
    By kenneth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2006, 09:15 AM
  5. List vector using upper and lower limits
    By flaterp in forum Excel General
    Replies: 6
    Last Post: 06-10-2005, 07:05 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