+ Reply to Thread
Results 1 to 9 of 9

Hlookup issue, duplicates

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    55

    Hlookup issue, duplicates

    Hello all, I am having an issue where my HLOOKUP is finding duplicate values associated to different peoples names?
    So my HLOOKUP is find a cell value and input a name tide to it, but there are two people that have that number and it is just showing the first name twice??

    Please help.

    Thanks

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Hlookup issue, duplicates

    Attach a sample Excel workbook (not a picture!). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    12-04-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    55

    Re: Hlookup issue, duplicates

    I have attached a sample. I need the formula to know to skip and fill in the second name if there are duplicates.

    Thanks
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Hlookup issue, duplicates

    you can do that with PowerQuery (Get&Transform)

    add more data to the horizontal table then refresh green table
    see attached file:
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Hlookup issue, duplicates

    My solution is without PowerQuery, using array-formulas
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  6. #6
    Registered User
    Join Date
    12-04-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    55

    Re: Hlookup issue, duplicates

    Can you explain where the formulas numbers come from and what they mean? I tried inputting that into my spreadsheet but it came up N/A.
    Not sure if it is because of row number or???
    Thanks

  7. #7
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Hlookup issue, duplicates

    Quote Originally Posted by pjhdude View Post
    Can you explain where the formulas numbers come from and what they mean? I tried inputting that into my spreadsheet but it came up N/A.
    Not sure if it is because of row number or???
    Thanks
    Normal formulas you finish with Enter
    Array formulas must be finished with Ctrl+Shift+Enter
    Then the formula will look like {=formula}

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Hlookup issue, duplicates

    Hi all - Here's a version with regular formulas. In B2, copied down:
    Please Login or Register  to view this content.
    In A2, copied down:
    Please Login or Register  to view this content.
    The AGGREGATE(function_num, behavior_type, array, k) function is configured to mimic the SMALL function and ignore errors. It acts as a filter and returns the kth smallest column that contains a match to the value in column B. This is then converted to a list position for use with the INDEX function.
    Attached Files Attached Files
    Last edited by leelnich; 12-16-2017 at 06:18 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  9. #9
    Registered User
    Join Date
    12-04-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    55

    Re: Hlookup issue, duplicates

    Thanks leelnich, worked great!

+ 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. Hlookup issue
    By milliecelinehill in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-24-2014, 02:53 PM
  2. HLookup Issue
    By dregan21 in forum Excel General
    Replies: 1
    Last Post: 10-03-2012, 02:01 PM
  3. Hlookup Issue
    By kieranbop in forum Excel General
    Replies: 3
    Last Post: 11-10-2011, 07:21 AM
  4. Hlookup issue.
    By coolhit in forum Excel General
    Replies: 5
    Last Post: 04-11-2011, 05:00 PM
  5. Hlookup with no duplicates numbers.
    By BlitzMX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2011, 06:04 AM
  6. HLOOKUP Issue with single month
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-27-2009, 12:39 PM
  7. Hlookup issue
    By jcc31 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-05-2007, 11:09 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