+ Reply to Thread
Results 1 to 8 of 8

looking up multiple continuous data??

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    somerset, england
    MS-Off Ver
    Excel 2003
    Posts
    3

    looking up multiple continuous data??

    I'm trying to find a way to lookup 3 sets of continuous data in a table to return a reference for the row that meets or exceeds the data used....
    the data contained in the table looks like this

    ref field 1 field 2 field 3
    1 75 75 50
    2 100 100 50
    3 100 100 100
    4 120 120 70
    5 150 150 75
    6 150 150 100
    7 150 150 150
    11 250 150 150
    12 250 250 175
    13 260 260 75

    i want to be able to put in any 3 values from separate cells and return the reference that meets all 3. i.e. if i input 209 135 and 15, i want the returned value to be 11 as this row meets/exceeds all data input. hope thats enough information!?

    Any help is appreciated!!!!!!

    Thanks

    Lloydie

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: looking up multiple continuous data??

    EDITED TO INCLUDE THIS COMMENT: I completely missed the "or exceeds" comment. This formula looks for matching items.

    With
    A1:D100 containing this kind of data
    Col_A: ref
    COl_B: Field1 data...numeric
    COl_C: Field1 data...numeric
    COl_D: Field1 data...numeric

    And F1:H1 containing numbers to be matched in the data list
    example:
    209
    15
    135

    This regular formula returns the row number of the first row that contains all 3 values
    Please Login or Register  to view this content.
    Note: One of the last references points 1 row below the data.

    See the attached file.

    Is that something you can work wtih?
    Attached Files Attached Files
    Last edited by Ron Coderre; 08-07-2012 at 03:11 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: looking up multiple continuous data??

    Seems like your data is sorted on basis of Field 1.

    If E2,F2 and G2 are your input cells use

    =INDEX($A$2:$D11,COUNT(A2:A11)-SUMPRODUCT(--($B$2:$B$11>$E$2),--($C$2:$C$11>$F$2),--($D$2:$D$11>$G$2))+1,2)
    =INDEX($A$2:$D11,COUNT(A2:A11)-SUMPRODUCT(--($B$2:$B$11>$E$2),--($C$2:$C$11>$F$2),--($D$2:$D$11>$G$2))+1,3)
    =INDEX($A$2:$D11,COUNT(A2:A11)-SUMPRODUCT(--($B$2:$B$11>$E$2),--($C$2:$C$11>$F$2),--($D$2:$D$11>$G$2))+1,4)

    for desired outputs. See attached
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: looking up multiple continuous data??

    Example: http://screencast.com/t/xQmDGp3m


    This is an array formula, enter it in a cell, then confirm by pressing CTRL-SHIFT-ENTER to activate the array. You will see curly braces { } appear around your formula and the answer should appear.

    =MIN(IF(($B$2:$B$11>=H2)*($C$2:$C$11>=I2)*($D$2:$D$11>=J2), A2:A11))
    Attached Files Attached Files
    Last edited by JBeaucaire; 08-07-2012 at 03:17 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    08-07-2012
    Location
    somerset, england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: looking up multiple continuous data??

    scratch that....by the time i pushed post a few new replys turned up, so thanks every one just need to try them out!!!!


    Thanks for the quick reply Ron!!
    i tried this but wasnt getting the results i was hoping for (probably because i dont understand the formula/didnt explain very well ),
    although the closest to what i want so far!

    the purpose of the spreadsheet is to calculate the best box size kept in stock against the input dimension.
    so the table show the box number followed buy the three dimension.

    again all help is great

    lloydie
    Last edited by lloydie22; 08-07-2012 at 03:56 PM.

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: looking up multiple continuous data??

    OK...I put together a sample file where you input desired Lenght, Width, and Height dimensions and the formulas return candidate box styles and dimensions that satisfy the requirements.

    Example:
    A1:D8 contains..
    Please Login or Register  to view this content.
    F1:H2 contains the requirements
    Please Login or Register  to view this content.
    Returned values from the formulas
    Please Login or Register  to view this content.

    Does that help?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-07-2012
    Location
    somerset, england
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: looking up multiple continuous data??

    Thanks so much Ron, i couldnt have asked for better help, nevermind doing it for me!!!!!

  8. #8
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: looking up multiple continuous data??

    Glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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