+ Reply to Thread
Results 1 to 6 of 6

Lookup Function

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    86

    Lookup Function

    HI

    I am trying to put together a report where there are two rows with start date and end date, then a row witht the staff name. What I want to be able to do is enter in a date range then a staff name and have a formula that looks up the date range and name in another sheet and return the number of hours they have completed training for the dates entered.
    I have used lookups before but still new with them and just a little unsure how to get it to look at the date range then the name then add up the hours spent training.

    Help would be much appreciated!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup Function

    I think we're going to need to see a sample file to figure this out. Make sure you tell us what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Lookup Function

    Here is a basic sample. first sheet is the report, underneath the dates and name would be the reporting, so it would return hours trained and type of training
    Attached Files Attached Files

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup Function

    Try this...

    =SUMPRODUCT((Training!A2:A6>=B1)*(Training!A2:A6<=B2)*(Training!F2:I6=B3)*Training!D2:D6)

  5. #5
    Registered User
    Join Date
    08-29-2012
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: Lookup Function

    works perfect! thanks so much

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Lookup Function

    You're welcome. Thanks for the feedback!

+ 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