+ Reply to Thread
Results 1 to 8 of 8

vlookup and match

  1. #1
    Forum Contributor
    Join Date
    08-29-2014
    Location
    Chicago, IL
    MS-Off Ver
    2014
    Posts
    164

    vlookup and match

    on tab "AS Data" i have a table Y through AB

    Y = Names
    Z = Dates
    AA = Start Time
    AB = End Time

    on tab Report I have a drop down in cell a2 with names and column A has dates from 12-29-2016 to 3-23-2017.

    I need a formula that vlookups the name in cell a2, matches the date on tab Report and returns the time in column AA with that criteria

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: vlookup and match

    Attach a sample workbook. 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
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: vlookup and match

    DATE in tab Report tab is Form A4
    DATA in AS Data is Y2:AB6,

    ARRAY Formula in B4 in tab Report sheet, then drag down for start time.
    =IFERROR(INDEX('AS Data'!$AA$2:$AA$6,SMALL(IF(('AS Data'!$Y$2:$Y$6='tab Report'!$A$2)*('AS Data'!$Z$2:$Z$6='tab Report'!$A4),ROW($Y$2:$Y$6),""),1)-ROW($Y$2)+1),"")

    ARRAY Formula in C4 in tab Report sheet, then drag down for End time.
    =IFERROR(INDEX('AS Data'!$AB$2:$AB$6,SMALL(IF(('AS Data'!$Y$2:$Y$6='tab Report'!$A$2)*('AS Data'!$Z$2:$Z$6='tab Report'!$A4),ROW($Y$2:$Y$6),""),1)-ROW($Y$2)+1),"")

    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    formula will be covered with{} brackets by excel.

  4. #4
    Forum Contributor
    Join Date
    08-29-2014
    Location
    Chicago, IL
    MS-Off Ver
    2014
    Posts
    164

    Re: vlookup and match

    intended result is in cell b5 on report tab

  5. #5
    Forum Contributor
    Join Date
    08-29-2014
    Location
    Chicago, IL
    MS-Off Ver
    2014
    Posts
    164

    Re: vlookup and match

    kvsrinivasamurthy , thanks for the reply. I pasted your formula and I'm not getting any result. I am following the array instructions too. I attached the file with intended results.

  6. #6
    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,356

    Re: vlookup and match

    There is no file attached anywhere.
    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.

  7. #7
    Forum Contributor
    Join Date
    08-29-2014
    Location
    Chicago, IL
    MS-Off Ver
    2014
    Posts
    164

    Re: vlookup and match

    try now, i believe there was an issue with the file size before
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: vlookup and match

    ARRAY formula should be confirmed with shft+Ctrl+Enter keys together, not with Only Enter key.
    Pl see my previous post

    ARRAY formula in B5 of Report sheet, then drag down.
    Please Login or Register  to view this content.
    ARRAY formula in B5 of Report sheet, then drag down.
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 03-26-2017 at 01:44 AM.

+ 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: 1
    Last Post: 06-18-2015, 08:45 AM
  2. [SOLVED] Vlookup to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  3. Replies: 2
    Last Post: 12-18-2014, 09:52 AM
  4. Replies: 3
    Last Post: 05-19-2014, 02:01 PM
  5. vlookup for finding out wrongly spelled names and yet match the match
    By catchnanan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2014, 04:29 PM
  6. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  7. Replies: 2
    Last Post: 03-16-2012, 12:03 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