+ Reply to Thread
Results 1 to 5 of 5

Function to indicate which values in a column fall between a long list of separate ranges

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Function to indicate which values in a column fall between a long list of separate ranges

    I need a function or macro that can help me go through a list of numbers (e.g Column A) and indicate to me which of these numbers fall between multiple number ranges that are listed (e.g Column B gives the lower limit, Column C gives upper limit within the same row). Help??

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Function to indicate which values in a column fall between a long list of separate ran

    Assuming that your data starts in A1, then in D1 and copy down, try this.

    =IF(AND(A1<=C1,A1>=B1),"OK","Out of range")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Function to indicate which values in a column fall between a long list of separate ran

    Thanks for replying! I tried this and it only checks the range within the same row, not through all the ranges listed. Is there a function that can check all of them?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Function to indicate which values in a column fall between a long list of separate ran

    =IF(AND(A1<=$C$1,A1>=$B$1),"OK","Out of range")>>>????

    If no, pls upload a sample workbook.

  5. #5
    Registered User
    Join Date
    10-01-2012
    Location
    Calgary, AB
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Function to indicate which values in a column fall between a long list of separate ran

    No, it did not work I attached a sample workbook, where I am looking to find values within Column A "Values" that fall between any of the ranges listed in Column B and C.

    Sample.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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