+ Reply to Thread
Results 1 to 7 of 7

Have a large lookup that depends on 2 values...

  1. #1
    Registered User
    Join Date
    08-18-2015
    Location
    Ebbw Vale
    MS-Off Ver
    Windows 7
    Posts
    34

    Have a large lookup that depends on 2 values...

    Hello all,

    I have a lookup problem that relies on 2 values. So rather than changing the column lookup depending on the second value is it possible to do it automatically?

    I'm assuming it will be using index but I'm not too sharp on these.

    Attached file... should explain what i mean.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Have a large lookup that depends on 2 values...

    hi there. and your desired outcome for those cells are? my guess:
    =INDEX(Sheet2!$B:$D,MATCH($A2,Sheet2!$A:$A,0),MATCH($B2,Sheet2!$B$1:$D$1,0))

    but "X" will not work because your "X" in Sheet1 has an extra space while Sheet2 does not.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    08-18-2015
    Location
    Ebbw Vale
    MS-Off Ver
    Windows 7
    Posts
    34

    Re: Have a large lookup that depends on 2 values...

    So in sheet1, where it's part 123 and type X, using sheet 2 I'd like the value to be returned in C2 (Sheet1) to be 50.

  4. #4
    Registered User
    Join Date
    08-18-2015
    Location
    Ebbw Vale
    MS-Off Ver
    Windows 7
    Posts
    34

    Re: Have a large lookup that depends on 2 values...

    Any other suggestions

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Have a large lookup that depends on 2 values...

    What benishiryo said is the correct way to do this.
    Why are you looking for alternatives?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  6. #6
    Registered User
    Join Date
    08-18-2015
    Location
    Ebbw Vale
    MS-Off Ver
    Windows 7
    Posts
    34

    Re: Have a large lookup that depends on 2 values...

    If I'm honest I have no idea how to work it, and without it in the sheet, I can't see how it works

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Have a large lookup that depends on 2 values...

    =INDEX(Sheet2!$B:$D,MATCH($A2,Sheet2!$A:$A,0),MATCH($B2,Sheet2!$B$1:$D$1,0))

    Looking at the table in Sheet2! columns B to D,
    Searches for the value in A2 within Sheet2!column A, this gives us the row number
    Searches for the value in B2 within Sheet2!row 1 form column B to D, this gives us the coluimn number
    Reads the value at the intersection of the found row/column numbers

    Do a Google INDEX and MATCH

+ 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] VBA Code replace old values to new values depends upon column values
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2015, 08:19 AM
  2. Ms access Vba Save Data to xl depends upon 1 table pick & Depends 2 Upon fiterDate
    By breadwinner in forum Access Programming / VBA / Macros
    Replies: 14
    Last Post: 05-29-2014, 10:59 PM
  3. [SOLVED] Fill the values & replace the old values by vba code depends upon 2 col
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2014, 03:11 AM
  4. [SOLVED] Average of values for a lookup/array scenario w large data set
    By Attrition in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2014, 11:02 PM
  5. excel formula depends upon 3 set of value result from set of range lookup
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2013, 09:06 PM
  6. [SOLVED] lookup a value in a range in excel where search depends upon 2 constraints
    By Anibha Jain in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-19-2013, 07:47 AM
  7. Lookup Values on a large spreadsheet
    By mskli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-25-2012, 09:07 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