+ Reply to Thread
Results 1 to 6 of 6

Correcy use of VLOOKUP

  1. #1
    Registered User
    Join Date
    06-22-2016
    Location
    Perth, Australia
    MS-Off Ver
    10
    Posts
    9

    Correcy use of VLOOKUP

    Hi All,

    Having trouble working out VLOOKUP - I want to enter a Cycle in D3 of the first tab and then have it display the date range which is on the next tab in D5 and E5 on the first page.

    Can anyone help?
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Correcy use of VLOOKUP

    Try this in D5;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And in E5;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Correcy use of VLOOKUP

    The syntax of Vlookup is:

    1. Lookup Value - select one specific cell from the working sheet not from the master data
    As per your workbook, you should select D3 from "Roster Cycle printout" sheet

    2. Table array- Select the table from the master data (make sure to start from the column where your lookup value is available.
    As per your workbook, you should select the range "A:C" from "Cycles" sheet
    If cycle no. is in Column B, select C:D and so on.

    3. Column index no. Select the column no where the required data is available
    Here in your sheet, enter 2 for start date and 3 for End date.

    4. Range look up- Always enter "0"
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-22-2016
    Location
    Perth, Australia
    MS-Off Ver
    10
    Posts
    9

    Re: Correcy use of VLOOKUP

    Thanks guys,

    That has worked great but now I have run into the problem where if 2 values are present it will only display the one listed first.

    Is it possible to still use VLOOKUP to display multiple values if there are more than 1 result returned?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Correcy use of VLOOKUP

    Hi, welcome to the forum

    No, vlookup (and it's partner INDEX/MATCH) will only ever find the 1st match - then they stop looking.

    You would need to use the INDEX/SMALL/IF array function for that - although there may be another way around that using a helper?

    Perhaps upload a more representative sample file?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Correcy use of VLOOKUP

    If a helper is OK with you (you can hide it if needed), then
    Cycles D2=COUNTIF($A$2:A2,'Roster Cycle printout'!$D$3)
    copied down

    For the extract...
    D5=IFERROR(INDEX(Cycles!B:B,MATCH(ROWS($A$1:A1),Cycles!$D:$D,0)),"")
    copied down and across as needed

+ 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: 5
    Last Post: 12-07-2016, 09:18 AM
  2. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  3. 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
  4. [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
  5. 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
  6. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  7. vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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