+ Reply to Thread
Results 1 to 4 of 4

INDEX MATCH trying to return a value between two criteria.

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    nottingham
    MS-Off Ver
    Excel 2007
    Posts
    7

    INDEX MATCH trying to return a value between two criteria.

    Hi I am having a problem with returning a value from a table when the value is between two numbers
    I have the table on sheet 1
    A B C
    1 1,693,000 1,713,001 1,722,001
    2 1,713,000 1,722,000 1,731,000
    3



    And other on sheet 2
    A B
    1 1,700,000 A1
    2 1,720,000 A2
    3 1,730,000 A3
    4


    And I want my equation to return the value from sheet 2 Column B if the number in sheet 2 column A lies between the numbers in sheet 1 rows 1 and 2.
    For example sheet 1 A3 would be populated with A1 as the number 1,700,000 (from cell sheet2 a1) as it is between 1,693,000 and 1,713,000.

    Any help will be much appreciated as this is starting to hurt my brain.

    cheers

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: INDEX MATCH trying to return a value between two criteria.

    I think this is what you want (but not certain!)...

    Sheet2
    A
    B
    1
    1,700,000
    A1
    2
    1,720,000
    A2
    3
    1,730,000
    A3


    Sheet1
    A
    B
    C
    1
    1,693,000
    1,713,001
    1,722,001
    2
    1,713,000
    1,722,000
    1,731,000
    3
    4
    A1
    A2
    A3


    This array formula** entered in A4 and copied across:

    =INDEX(Sheet2!$B1:$B3,MATCH(1,(A1<=Sheet2!$A1:$A3)*(A2>=Sheet2!$A1:$A3),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    nottingham
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: INDEX MATCH trying to return a value between two criteria.

    That worked perfectly.

    Thanks for your help Biff looks like owe you a beer!!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: INDEX MATCH trying to return a value between two criteria.

    I'll have St. Pauli Girl dark.

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. [SOLVED] Using Index Match with a Criteria to return a minimum
    By david0985 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2014, 12:59 PM
  2. Index Match using two criteria to return on of criteria values
    By RogueLeader in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-17-2014, 09:50 AM
  3. Replies: 1
    Last Post: 11-06-2013, 08:37 PM
  4. Replies: 3
    Last Post: 06-15-2012, 04:19 PM
  5. [SOLVED] Return a value:index/match against multiple criteria on another sheet
    By Southfish in forum Excel General
    Replies: 3
    Last Post: 04-30-2012, 11:08 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