+ Reply to Thread
Results 1 to 3 of 3

Vlookup in Schedule

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    Victoria, BC
    MS-Off Ver
    Excel 2003
    Posts
    42

    Vlookup in Schedule

    I have a spreasheet that looks like the attached. The date is merged into 2 cells, with the daytime and afternoon shifts mated to that, and then the available number of people beside it.

    I want to perform a lookup on this data from another sheet, however I need to look up the date AND if it is Daytime or Afternoon shift.

    Can someone please help with which formula(s) I would use.

    Thanks.
    Attached Files Attached Files
    Last edited by NBVC; 01-19-2011 at 03:44 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup in Schedule

    The recommendation is not to have Merged Cells, and instead list the date in every cell in column A, then you can use:


    =SUMPRODUCT(--(A3:A6=I2),--(B3:B6=J2),D3:D6)

    where I2 and J2 contain the Date and Shift to look up, respectively.

    If you must have the date column that way, then add a helper column, e.g. in E3: =LOOKUP(9.999E+307,A$3:A3) copied down and then use

    =SUMPRODUCT(--(E3:E6=I2),--(B3:B6=J2),D3:D6) with same conditions above.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-12-2011
    Location
    Victoria, BC
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Vlookup in Schedule

    Brilliant! Thank you so very much!

+ 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