+ Reply to Thread
Results 1 to 8 of 8

Vlookup/Xlookup with 2 conditions

  1. #1
    Registered User
    Join Date
    11-20-2019
    Location
    mexico
    MS-Off Ver
    2016
    Posts
    9

    Cool Vlookup/Xlookup with 2 conditions

    Hello, i been trying to solve an issue with the correlation of two databases that i have, i figured that i used to much time doing manual match for vlookups, so im asking for help on this topic, i have two databases with thousands of data, the correlation between this data bases is one catalog that repeats in x quantity of times, and a code that may repeats a few times, but this is not an issue because the code that repeats belong to the same line, so there is no problem with catalog and code duplicates.
    so im looking for a way to vlookup, for a catalog, and if the code is the same for the two databases then write the value, if not go to next value, and if not catalog and code match, n/a# error should appear.

    Im adding an example of my data bases.

    Best regards.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,796

    Re: Vlookup/Xlookup with 2 conditions

    wrong formula
    Last edited by CARACALLA; 11-01-2021 at 03:18 PM.

  3. #3
    Registered User
    Join Date
    11-20-2019
    Location
    mexico
    MS-Off Ver
    2016
    Posts
    9

    Re: Vlookup/Xlookup with 2 conditions

    Why is the wrong formula?

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,796

    Re: Vlookup/Xlookup with 2 conditions

    If you want the sum of the pieces per catalog and code indicated it works but I didn't think you wanted this or not ?

    Sheet3

    c2=SUMIFS(Sheet1!$D$2:$D$4490,Sheet1!$A$2:$A$4490,Sheet3!$A2,Sheet1!$B$2:$B$4490,Sheet3!$B2)

    copy down

  5. #5
    Registered User
    Join Date
    11-20-2019
    Location
    mexico
    MS-Off Ver
    2016
    Posts
    9

    Re: Vlookup/Xlookup with 2 conditions

    Thanks, but i dont need the sum i need the correlation, if the catalog is 1 and the code is A
    but i also have the catalog 1 but with code B, i need what pieces apply for catalog 1 with code A and the same por same catalog 1 but code B, if i have two catalogs with same code: example catalog 1 code b, catalog 1 code b, i dont have any problem with that, just make the diferentiation with the codes.

  6. #6
    Registered User
    Join Date
    11-20-2019
    Location
    mexico
    MS-Off Ver
    2016
    Posts
    9

    Re: Vlookup/Xlookup with 2 conditions

    sOLVED MY PROBLEM USING XLOOKUP, INDEX MATCH, SUMIF. ALL SEPARATE SOLUTIONS.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,424

    Re: Vlookup/Xlookup with 2 conditions

    @ mrencko

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Dave

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,983

    Re: Vlookup/Xlookup with 2 conditions

    Late to the party. Here is an alternative means to the solution. Use Power Query

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Multiple Xlookup or Vlookup help PLEASE!
    By Traffs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-18-2021, 04:02 AM
  2. [SOLVED] Xlookup to replace VLookup in complex problem
    By jomili in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-08-2021, 09:56 AM
  3. [SOLVED] Xlookup vs vlookup
    By Mr_Phil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2021, 03:19 PM
  4. Issue : VLOOKUP (XLOOKUP) not looking a pass "."
    By CWever in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2020, 01:18 PM
  5. [SOLVED] Using xlookup/vlookup formula into a validated cell to return a value into that cell
    By Questray in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-14-2020, 11:51 AM
  6. [SOLVED] XLookup returning wrong values when using two conditions
    By Einrastor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2020, 07:38 AM
  7. Replies: 14
    Last Post: 09-28-2019, 10:32 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