+ Reply to Thread
Results 1 to 2 of 2

Return value from array in table based on cell values in separate table

  1. #1
    Registered User
    Join Date
    03-08-2021
    Location
    Denver, CO
    MS-Off Ver
    MS Office 2016
    Posts
    9

    Return value from array in table based on cell values in separate table

    Hello!

    So, all I'm looking to do is return a value in a table based on a couple values in a separate table. The only thing throwing me for a loop is that one of the values that is to be used to find the matching row in the array table needs to fall between a numeric range defined by cells within the array.

    The Primary table, tblTestResults, has the columns [Test] and [Value]. The Reference table, tblTests, has the columns [Test], [Range Low], and [Range High]. The tblTestResults.[Test] should match the array of identical values in tblTests.[Test] and tblTestResults.[Value] should be less than tblTest.[Range High] and greater than or equal to tblTest.[Range Low] ([Range Low] <= [Value] < [Range High]). The expected results were entered manually into the column tblTestResults.[Range Category], but this is where I want the formula to be used.

    I appreciate any help!

    Cheers!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,332

    Re: Return value from array in table based on cell values in separate table

    Try this in D2:

    =INDEX(tblTests[Range Category],MATCH(1,(tblTests[Range Low]<=[@Value])*(tblTests[Range High]>=[@Value])*([@Test]=tblTests[Test]),0))

    (I think you'll need to enter this as an array formula if you're not on O365. to enter as an array, instead of just hitting Enter, hold the SHIFT and CTRL key while hitting ENTER - you can try it normally at first to see if it works in your version).

+ 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] Return the header of the table based on the data in array
    By ronakpatel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2019, 06:21 PM
  2. Replies: 4
    Last Post: 09-23-2019, 06:38 PM
  3. [SOLVED] Copy and append an array of cells based on a separate date table
    By concatch in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-09-2018, 06:23 PM
  4. LOOKUP TABLE -blank cell in the table array to return a figure
    By jonnops in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2014, 09:08 AM
  5. [SOLVED] Return table of values based off of one cell value
    By knguyen777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 12:55 PM
  6. Replies: 2
    Last Post: 03-15-2012, 07:23 AM
  7. Return duplicate row values in new table based on single cell value
    By VDubz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-08-2011, 10:04 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