+ Reply to Thread
Results 1 to 11 of 11

lookup a value in a range in excel where search depends upon 2 constraints

Hybrid View

Anibha Jain lookup a value in a range in... 06-19-2013, 05:25 AM
akhileshgs Re: lookup a value in a range... 06-19-2013, 05:44 AM
Sean Thomas Re: lookup a value in a range... 06-19-2013, 05:51 AM
Ace_XL Re: lookup a value in a range... 06-19-2013, 05:51 AM
dilipandey Re: lookup a value in a range... 06-19-2013, 05:52 AM
akhileshgs Re: lookup a value in a range... 06-19-2013, 06:12 AM
dilipandey Re: lookup a value in a range... 06-19-2013, 06:19 AM
Anibha Jain Re: lookup a value in a range... 06-19-2013, 06:44 AM
dilipandey Re: lookup a value in a range... 06-19-2013, 06:47 AM
akhileshgs Re: lookup a value in a range... 06-19-2013, 06:58 AM
dilipandey Re: lookup a value in a range... 06-19-2013, 07:47 AM
  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    Kolkata
    MS-Off Ver
    Excel 2007
    Posts
    17

    lookup a value in a range in excel where search depends upon 2 constraints

    Two Constraints are-
    Packaging type
    Warehouse Location

    Please find attached file. Coloumn D has to be filled using the data displayed in table G4:M10.
    Kindly put a suitable formula to serve the purpose.


    Thanks and regards,
    Anibha
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    How about this?
    PL of 12-13 v1-q.xlsx
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  3. #3
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    try this forumla and copy down

    =INDEX($G$4:$M$10,MATCH(C2,$G$5:$G$10,0),MATCH(B2,$H$4:$M$4,0))
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

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

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    In D2

    =INDEX($H$5:$M$10,MATCH(C2,$G$5:$G$10,0),MATCH(B2,$H$4:$M$4,0))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    HI Anibha,

    Use below formula and drag down:-
    Formula: copy to clipboard
    =INDEX($G$4:$M$10,MATCH($C2,$G$4:$G$10,0),MATCH($B2,$G$4:$M$4,0))



    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  6. #6
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    Everybody is pushing for Index formula....
    Is there any reason for that?
    What about using Vlookup or the formula I have used...

    PHP Code: 
    =OFFSET($G$4,MATCH(B2,$G$4:$M$4,0),MATCH(C2,$G$4:$G$10,0)) 

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    Hi akhileshgs,

    There could be reasons for that but as per me why I chosen Index -match because it is faster then vlookup

    Hope thread will not change towards the discussion of "which formula is fast" as we all can do separate research on that

    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Registered User
    Join Date
    06-01-2013
    Location
    Kolkata
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    Thanks Savioursssssss!!!!!!! Thanks a million

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    Cheers


    Please mark this thread as [SOLVED].. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

  10. #10
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    Sorry Pandeji.....

    ____________________________________


    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: lookup a value in a range in excel where search depends upon 2 constraints

    Its Ok AkhileshJi


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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