Results 1 to 5 of 5

Thread: Any alternative to vlookup function to pull the data

  1. #1
    Acolyte dinesh.sarsar's Avatar
    Join Date
    Sep 2014
    Location
    India, Maharashtra Pune
    Posts
    21
    Articles
    0
    Excel Version
    MS OFFICE Windows 10

    Any alternative to vlookup function to pull the data



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi,
    I have a file in which sheet 1 has the data of Requirement ID in column A and the Candidate name in column B, the issue that i am facing is, when i use vlookup to pull the data from Sheet 1 column B, into Sheet 2 than as the requirement ID of 198 has got multiple names under it, I get the name of the first person multiple times in sheet 2. So is there any option where i can pull the data as mentioned in the expected result in sheet 2.
    Attached Files Attached Files

  2. #2
    Acolyte RET's Avatar
    Join Date
    Nov 2020
    Location
    Spain
    Posts
    27
    Articles
    0
    Excel Version
    2019
    And why do you have same ID for different data? That is the problem for me. Can you solve that?

  3. #3
    Acolyte Roger Haney's Avatar
    Join Date
    Jan 2021
    Posts
    23
    Articles
    0
    Excel Version
    Microsoft Excel Office 365

    Formula Edit

    Quote Originally Posted by dinesh.sarsar View Post
    Hi, I have a file in which sheet 1 has the data of Requirement ID in column A and the Candidate name in column B, the issue that i am facing is, when i use vlookup to pull the data from Sheet 1 column B, into Sheet 2 than as the requirement ID of 198 has got multiple names under it, I get the name of the first person multiple times in sheet 2. So is there any option where i can pull the data as mentioned in the expected result in sheet 2.
    This formula, placed in H1 will correctly identify the names attached to the ID#198 IN Column A:

    =IFERROR(INDEX(Sheet1!B$1:B$17,SMALL(IF(Sheet1!A$1:A$17=198,ROW(Sheet1!A$1:A$17),""), ROW() ),1),""). But why, in your "expected results" example, is the last name "Kunal Shah"? Should it not be "Amrutabandhu Chaudhury"? Perhaps I do not fully understand your intent.

  4. #4
    Conjurer Ed Kelly's Avatar
    Join Date
    Jul 2016
    Posts
    191
    Articles
    0
    Excel Version
    2016
    Dinesh believe you want Note 1 (N1). If that is the case consider using PQ instead of VLookup (on small data sets VL is OK however overly taxes excel on larger ones). Bring both datasets into PQ (dropped them into a table first N2/3)). Add a unique index col by concatenating 2 cols N4. N5 remove duplicate items. Then do a left outer join on both tables and expand both columns highlighted N6. Close and load result as a table whilst loading the original tables as connection only (staging tables). Then have a large glass of wine as it is indeed the weekend!

    Knock yourself out!

    https://www.screencast.com/t/w9qAlVZbAR8G
    Attached Files Attached Files

  5. #5
    Conjurer pinarello's Avatar
    Join Date
    Jun 2019
    Location
    Germany
    Posts
    166
    Articles
    0
    Excel Version
    Office 365
    If your Excel is new enough, then it is very easy with FILTER and INDEX included in LET.

    The fourth expected result in your sheet is wrong.
    Last edited by pinarello; 2022-01-20 at 09:39 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •