+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP nTH VALUE

  1. #1
    Registered User
    Join Date
    08-09-2019
    Location
    Kansas City, MO
    MS-Off Ver
    2013
    Posts
    3

    VLOOKUP nTH VALUE

    Hello,

    I am trying to find the 5 projects with the largest amount of hours per person (engineer). After I have found the top 5 projects by hours, I want to pull the project name but the problem that I'm running into is when there are more than one project with the same Project Hours. Since I am using vlookup, only the first value will return for each of the same hours. For instance, Order 1 & 2 have Project Hours of 140 and both return a Project Name of No Assigned Project Number. The second value should read Project Number 2 but I'm not sure how to do this with vlookup.

    I have attached multiple images showing the equations used in the cells.

    Thank you in advance for your help in solving my situation.

    Best regards,
    Brandon
    Attached Images Attached Images

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,468

    Re: VLOOKUP nTH VALUE

    Welcome to the forum.

    Will you please attach a small sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-09-2019
    Location
    Kansas City, MO
    MS-Off Ver
    2013
    Posts
    3

    Re: VLOOKUP nTH VALUE

    Hello,

    I have attached a sample project for manipulation. Please note that the cells highlighted yellow on the Resource Maps sheet contain notes stating what I need this cell to state.

    Best regards,
    Brandon
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: VLOOKUP nTH VALUE

    Please try at D4
    =IF(C4=0,"N/A",INDEX(INDIRECT("'"&E4&"'!"&"BI:BI"),AGGREGATE(15,6,ROW(Z$1:Z$150)/(INDIRECT("'"&E4&"'!"&"BH1:BH150")=C4),COUNTIFS(C$4:C4,C4,E$4:E4,E4))))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-09-2019
    Location
    Kansas City, MO
    MS-Off Ver
    2013
    Posts
    3

    Re: VLOOKUP nTH VALUE

    That works, thank you much!

  6. #6
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: VLOOKUP nTH VALUE

    In D4:

    Please Login or Register  to view this content.
    Enter with Ctrl+Shift+Enter to create an array formula. See if that works for you.

    WBD
    Office 365 on Windows 11, looking for rep!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,468

    Re: VLOOKUP nTH VALUE

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

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: VLOOKUP nTH VALUE

    Another way using different formulas in the Engineer# sheets.

    First right click on BI, then insert a new column. Merge BI2 and BI3 to match the format of the other columns, then add this formula to the merged cells and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Repeat this for all of the Engineer # sheets.

    Then change the formula in Resource Maps D4 to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and fill down.
    Attached Files Attached Files

+ 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. Vlookup - keeping the leading zeros in a cell to allow the vlookup to work
    By UFBEE1970 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-02-2019, 04:41 PM
  2. Replies: 5
    Last Post: 12-07-2016, 09:18 AM
  3. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  4. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  5. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  6. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  7. Replies: 5
    Last Post: 07-29-2009, 07:53 AM

Tags for this Thread

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