+ Reply to Thread
Results 1 to 6 of 6

Complex LOOKUP problem

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Complex LOOKUP problem

    Hi, have lurked this forum for a while and found it extremely helpful.

    Have come across a problem I can't find an answer to by browsing old threads so have joined up, hello to all

    I want to extract a value from a table which I have added to this post as an attachment.

    The table is for precast concrete flooring slabs. Firstly there will be a value for Load (say 1.25). I need to select the row based upon this. The Load value in the selected row must be the upper bound of the 2 values between which the inputted value falls (i.e. row 7, load = 1.5 in this case). I am then ultimately looking for the self weight of the required slab based on the span (say 11m giving a self weight of 3.3kn/m2 as the upper bound must be used).

    Apologies for how poorly worded this is but hopefully you get the idea, I've had a long and frustrating day Also sorry if this is in the wrong section of the forum.

    Thanks
    Attached Images Attached Images
    Last edited by south_91; 03-27-2014 at 01:59 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Complex LOOKUP problem

    Welcome to the Forum - no need to lurk anymore !!

    A picture is not much use to work with. Can you attach the actual workbook (in a similar way as attaching the .jpg file).

    Pete

  3. #3
    Registered User
    Join Date
    03-26-2014
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Complex LOOKUP problem

    Have attached a workbook containing the table and input values. The original file is rather unnecessarily large I think

    Thank you
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Complex LOOKUP problem

    This is a bit long-winded, bit give it a try...
    =INDEX($C$5:$I$12,MATCH(VLOOKUP(F17,$B$5:$B$12,1,1),B5:B12,1)+1,1+IFERROR(MATCH(HLOOKUP(C17,C3:I3,1,1),$C$3:$I$3,0),0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    03-26-2014
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Complex LOOKUP problem

    Hmm looks to be along the right lines (vlookup, match etc) but this returns a value of 7.5 whereas it should be 3.3 (self weight) using the input values as they are.

    You have used the unit depth values (C3:I3) when actually they are inconsequential in this case

    Thanks again

  6. #6
    Registered User
    Join Date
    03-26-2014
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Complex LOOKUP problem

    I have now solved this using a very longwinded combination of IF, INDEX and MATCH functions. It works but isn't particularly elegant!

    Thanks all

+ 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] Complex Lookup - pivot problem?
    By gapollo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2014, 02:04 AM
  2. Replies: 4
    Last Post: 02-03-2014, 12:47 AM
  3. [SOLVED] Complex LOOKUP problem
    By adm0104 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-07-2013, 11:29 AM
  4. Complex Lookup?
    By aileen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2006, 08:50 AM
  5. [SOLVED] Complex LookUp / Match Problem ??
    By carl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2005, 04:06 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