+ Reply to Thread
Results 1 to 6 of 6

Lookup/Match/Index

  1. #1
    Registered User
    Join Date
    09-17-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    4

    Lookup/Match/Index

    Hello,

    I have a document with two sheets. One sheet will contain a daily schedule, and the other will have a monthly schedule. I need to be able to reference the second sheet and insert the data into the appropriate cells on the first sheet when the date at the top of the page is manually changed.

    The data sheet looks like this:

    (Row 1) Employee # | Name | Unique combination of ID and date | Date | Unique combination of ID and date | Date | Unique combination of ID and date | Date | (so on for the entire month)

    What I want is a formula on sheet 1 that will combine the date and employee numbers already listed on the sheet to create a unique number, then reference the second sheet for that number, and return the start time from one cell, and the end time from another.


    I can't use vlookup or hlookup because of the way the document is set up, the unique numbers are in every third column and cant be placed in 1 row or column.

    What I just tried:

    =INDEX(Hours!$F$6:$CQ$99,MATCH($I7&$J$3,Hours!$C6:$CQ6,0),MATCH("end",Hours!$C$5:$CQ$5,0))

    This works for the first shift- which is located in c6, but when the date is changed on sheet 1 the formula is returning N/A and not locating the unique number ($I7&$J$3)... I am stumped.

    Any help would be GREATLY appreciated.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Help! (Lookup/Match/Index)

    It would be very useful if you could post an example workbook, so that we can see the layout of your data.

  3. #3
    Registered User
    Join Date
    09-17-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help! (Lookup/Match/Index)

    Quote Originally Posted by Andrew-R View Post
    It would be very useful if you could post an example workbook, so that we can see the layout of your data.
    This is my first post on the sight, what is the easiest way to do that?

  4. #4
    Registered User
    Join Date
    09-17-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help! (Lookup/Match/Index)

    Oops, I meant ***site***

  5. #5
    Registered User
    Join Date
    09-17-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Help! (Lookup/Match/Index)

    I have uploaded a simplified example of what I need. I only used 1 sheet (let the borders represent the two sheets)
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Help! (Lookup/Match/Index)

    I'm still not quite sure what you're trying to do, but I don't think you need to combine the ID and date.

    On your example sheet, the formula to look up the start info is =INDEX($J$4:$Q$13,MATCH(B4,$G$4:$G$13,0),MATCH($A$1,$J$2:$Q$2,0)) and to look up the end info it's =INDEX($J$4:$Q$13,MATCH(B4,$G$4:$G$13,0),MATCH($A$1,$J$2:$Q$2,0)+1)

    Is that what you were after?

    Edited to add your example sheet with formula back in.
    Attached Files Attached Files
    Last edited by Andrew-R; 09-18-2011 at 05:18 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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