+ Reply to Thread
Results 1 to 4 of 4

Use Dynamic Range for index match?

  1. #1
    Registered User
    Join Date
    01-11-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Use Dynamic Range for index match?

    So I know there must be an easy way to do this. It is somewhat difficult to explain so I will use an example

    For example If i have the spreadsheet:

    Apples 1
    Apples 4
    Apples 5
    Bananas 8
    Bananas 12
    Oranges 9
    Oranges 11

    I want to have a seperate cell with an input, (Apples/Bananas/Oranges) and another cell which has a number input. Based on which input you have chosen, I want to use a dynamic index match that will find the value closest (less than, noted as "1" as match type in formula) to the input number, searching only within the range of the input.

    For clarity: If my input is orange, and number input is 10, this formula should return 9.

    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Use Dynamic Range for index match?

    Assuming:
    • fruits list is in Column A (A1:A7 for the sample provided)
    • numbers are in Column B (B1:B7 for the sample provided)
    • Selected Fruit is in Cell C1,
    • Input number is in Cell D1.
    Use the following Array Formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: Array Formula must be entered/confirmed with [Ctrl] +[Shift] + [Enter]

  3. #3
    Registered User
    Join Date
    01-11-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Use Dynamic Range for index match?

    Jewelsharma,

    Thank you for your formula, as this worked. Can youprovide a formula to do the same thing, however this time return the value closest, greater than the input number?

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Use Dynamic Range for index match?

    try the following Array Formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Trust your original thread has been satisfactorily answered. Please take a moment to mark the thread as SOLVED. Here's how:

    Method 1
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    Method 2
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

+ 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-09-2014, 02:25 PM
  2. Formula to Index, Match, Rank, and Sort a Dynamic Range of Values
    By AustinLe in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-14-2014, 03:49 AM
  3. Dynamic Named Range + Index/Match Returning Circular Reference
    By jennarenae in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2014, 06:23 PM
  4. Vba index and match for dynamic range
    By _google in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-20-2013, 10:25 AM
  5. Dynamic Range issues with index/match(i think)
    By Furby in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2013, 08:18 AM
  6. Volatile formula with index/match dynamic range
    By asgersax in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-16-2013, 05:37 PM
  7. dynamic range for index/match formula
    By excellicious in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2008, 07:41 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