+ Reply to Thread
Results 1 to 3 of 3

Lookup for multiple instances

  1. #1
    Registered User
    Join Date
    07-16-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Lookup for multiple instances

    I am attempting to create a timesheet to work with for a childminding business: Timesheet wb 16.07.12.xlsx

    I have used VLOOKUP for each day on the Earnings worksheet to look for how long a particular child is in per day, but I have now run into problems for if a child were to come in more than once in one day (e.g. cells J8-M8 and J11-M11 in Timesheet) - only the first instance of their times is recorded (from prior example, H8 in Earnings).

    I would like to have a total for how long a child is in for a given day displayed, regardless of how many times they are in during the day. I have been tinkering with the COUNTIF statement, but I can't help but wonder if there is a simpler way of doing it.



    On a side note, if anyone could tell me how to clean up my (hidden) code for B20-B31, F20-F31 etc., then I would be grateful. It is comparing times to see if they overlap so the total time worked for each day is worked out in cells E20, I20 etc.
    Last edited by sonyaswan; 07-17-2012 at 08:35 AM. Reason: Solved

  2. #2
    Forum Contributor vikas.bhandari's Avatar
    Join Date
    04-07-2006
    Location
    Delhi, India
    MS-Off Ver
    Office 2007 and 2010
    Posts
    303

    Re: Lookup for multiple instances

    I tried to put a formula for AN for Tuesday and entered the following formula in F7. Used SumIf instead of Vlookup

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Vikas B

  3. #3
    Registered User
    Join Date
    07-16-2012
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Lookup for multiple instances

    Ah! Thank you so much, such a simple answer :D it works perfectly now!

    I might try the other question in a different thread, seeing as this one is solved now

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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