+ Reply to Thread
Results 1 to 10 of 10

Returning a value from a table with 4 variables

  1. #1
    Registered User
    Join Date
    05-25-2017
    Location
    Brussels
    MS-Off Ver
    2013
    Posts
    5

    Question Returning a value from a table with 4 variables

    Hello Excel Gurus

    You will find the table below:

    Screenshot 2017-05-25 20.34.30.png

    I would like have excel automatically return the value from the table upon giving the 4 following variables:

    - Your need
    - LOD
    - Your building (easy, medium or difficult level)
    - sqm (1-500sqm, 501-1000sqm or > 1000sqm)

    Questions:

    1) Is it feasible in excel? (not sure VLOOKUP, MATCH... could work with 4 variables)
    2) If so, how to do it?

    Many thanks for your help

    All the best,
    Cbruss

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: Returning a value from a table with 4 variables

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    05-25-2017
    Location
    Brussels
    MS-Off Ver
    2013
    Posts
    5

    Red face Re: Returning a value from a table with 4 variables

    Hello Excel Gurus

    Thank you John for your suggestion: it is my first time on the forum, sorry for not being used to it. Hence, I am reposting further to the suggestion from the moderator

    You will find the excel table with explanation in attachment:

    I would like have excel automatically return the value from the table upon giving the 4 following variables (example in the excel table attached):

    - Category
    - LOD
    - Level
    - Surface

    Questions:

    1) Is it feasible in excel? (not sure VLOOKUP, MATCH... could work with 4 variables)
    2) If so, how to do it?

    Many thanks for your help! If it's still unclear, let me know

    All the best,
    Cbruss
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: Returning a value from a table with 4 variables

    Try

    =INDEX($D$3:$L$17,MATCH($B$20,$A$3:$A$17,0)+MATCH("LOD " &$B$21,$C$3:$C$17,0)-1,MATCH($B$22,$D$1:$L$1,0)+MATCH($B$23,$D$2:$F$2,1)-1)

    I made minor changes to your headings (giving lower limit of a range):
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-25-2017
    Location
    Brussels
    MS-Off Ver
    2013
    Posts
    5

    Re: Returning a value from a table with 4 variables

    Many thanks John!!!

    It works just great

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: Returning a value from a table with 4 variables

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    05-25-2017
    Location
    Brussels
    MS-Off Ver
    2013
    Posts
    5

    Question Re: Returning a value from a table with 4 variables

    Hello John,

    Hope you are well. Further to your great help on the previous formula, I come back to you as I had to add 15 columns in total and tried to tweak your formula given I added those columns but I am unable to tweak it properly: see the excel sheet in attachment. May I ask you how I need to update the MATCH formula(s) for these many columns so I get the right output value please? Many thanks in advance.

    Best,
    Cedric
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: Returning a value from a table with 4 variables

    Try

    =INDEX($C$3:$U$17,MATCH($B$20,$A$3:$A$17,0)+MATCH("LOD " &$B$21,$B$3:$B$17,0)-1,MATCH($B$22,$C$1:$U$1,0)+MATCH($B$23,$C$2:$J$2,1)-1)

  9. #9
    Registered User
    Join Date
    05-25-2017
    Location
    Brussels
    MS-Off Ver
    2013
    Posts
    5

    Re: Returning a value from a table with 4 variables

    Thank you John, looks like it works. Best, Cedric

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,676

    Re: Returning a value from a table with 4 variables

    Deleted by JT

+ 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: 5
    Last Post: 02-12-2017, 09:18 PM
  2. ActiveWorkBook is returning an object with <no variables>
    By ColinC2013 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2017, 04:11 PM
  3. Replies: 2
    Last Post: 12-01-2016, 04:13 PM
  4. MINIF with multiple variables returning 0
    By mitch.s in forum Excel General
    Replies: 3
    Last Post: 05-07-2015, 02:14 AM
  5. Replies: 1
    Last Post: 07-31-2013, 04:11 PM
  6. [SOLVED] Formula for returning value satisfying two variables
    By vvc1973 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2012, 11:10 AM
  7. Help need on returning data with three variables
    By mboyce82 in forum Excel General
    Replies: 6
    Last Post: 05-09-2012, 02:42 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