+ Reply to Thread
Results 1 to 9 of 9

2 variable search criteria lookup on different tabs? Help!

  1. #1
    Registered User
    Join Date
    07-05-2017
    Location
    chicago
    MS-Off Ver
    Office 2013
    Posts
    44

    2 variable search criteria lookup on different tabs? Help!

    Hello all!

    Hoping someone can help, I don’t even know what type of formula can perform what I’m looking for.

    In the attached workbook I have two tabs, A and B.

    I am trying to fill in the yellow cells on tab B (cells C2:C8) with the appropriate price in tab A. The search parameters in tab B show that I want to search the Zone and the Weight and return the price in the corresponding table on tab A.

    Can anyone help with this?
    Attached Files Attached Files

  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
    28,364

    Re: 2 variable search criteria lookup on different tabs? Help!

    Try

    in C2

    =INDEX(a!$B$3:$H$12,MATCH($B2,a!$A$3:$A$12,1),MATCH($A2,a!$B$2:$H$2,0))

  3. #3
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: 2 variable search criteria lookup on different tabs? Help!

    Hi, to all!

    Another option could be:
    [C2] : =VLOOKUP(B2,a!A$3:H$12,A2)

    And drag it down. Blessings!

  4. #4
    Registered User
    Join Date
    07-05-2017
    Location
    chicago
    MS-Off Ver
    Office 2013
    Posts
    44

    Re: 2 variable search criteria lookup on different tabs? Help!

    Quote Originally Posted by johnmpl View Post
    Hi, to all!

    Another option could be:
    [C2] : =VLOOKUP(B2,a!A$3:H$12,A2)

    And drag it down. Blessings!
    Thank you so much!!! can you explain the logic in this vlookup? How does the formula know to cross reference the zones and the weights?

  5. #5
    Registered User
    Join Date
    07-05-2017
    Location
    chicago
    MS-Off Ver
    Office 2013
    Posts
    44

    Re: 2 variable search criteria lookup on different tabs? Help!

    thank you!

  6. #6
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: 2 variable search criteria lookup on different tabs? Help!

    Quote Originally Posted by amajor99 View Post
    Thank you so much!!! can you explain the logic in this vlookup? How does the formula know to cross reference the zones and the weights?
    Sure!!

    VLOOKUP is a function that searches for a value in the first column of a matrix, and returns as a result the same value related according to the column that we want.
    In the example that you attached, the first column corresponds to the weights, which are arranged from least to greatest, so the search can be done in an approximate way (without the last argument of the VLOOKUP function, since, by default, the function looks approximately).
    As for the zones, these coincide with the number of the column that you want to return from the range A2:H12 -> Zone 2 corresponds to the second column, 5 to the fifth column, and so on.

    I hope I have been clear, English is not my native language. Blessings!

  7. #7
    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
    28,364

    Re: 2 variable search criteria lookup on different tabs? Help!

    too late!!

  8. #8
    Registered User
    Join Date
    07-05-2017
    Location
    chicago
    MS-Off Ver
    Office 2013
    Posts
    44

    Re: 2 variable search criteria lookup on different tabs? Help!

    Quote Originally Posted by johnmpl View Post
    Sure!!

    VLOOKUP is a function that searches for a value in the first column of a matrix, and returns as a result the same value related according to the column that we want.
    In the example that you attached, the first column corresponds to the weights, which are arranged from least to greatest, so the search can be done in an approximate way (without the last argument of the VLOOKUP function, since, by default, the function looks approximately).
    As for the zones, these coincide with the number of the column that you want to return from the range A2:H12 -> Zone 2 corresponds to the second column, 5 to the fifth column, and so on.

    I hope I have been clear, English is not my native language. Blessings!


    That was very clear, thank you so much!!

  9. #9
    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
    28,364

    Re: 2 variable search criteria lookup on different tabs? Help!

    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding

    For normal conversational replies, try using the QUICK REPLY box below.

    Thank you.

+ 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: 4
    Last Post: 10-25-2016, 01:59 PM
  2. Lookup with a sum criteria in a variable range
    By Ronnet2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2015, 08:50 AM
  3. [SOLVED] Lookup formula to find lowest value with variable lookup criteria
    By brharrii in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-27-2015, 03:00 AM
  4. Macro Find Variable Search Criteria
    By KA0DOC in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2011, 03:49 PM
  5. Can't locate data using a 2 variable search criteria
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2010, 12:54 PM
  6. Lookup multiple criteria in different tabs to return result
    By Nadir Soofi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-06-2008, 06:28 PM
  7. search all tabs for tab name specified & lookup reference?
    By BMW in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2005, 12:20 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