+ Reply to Thread
Results 1 to 7 of 7

Lookup

  1. #1
    Registered User
    Join Date
    03-08-2010
    Location
    Brighton
    MS-Off Ver
    Excel 2003
    Posts
    4

    Lookup

    I've created a weekly rota for my barstaff in excel 2003 and need some help to finish it off as I would like it.
    It's a basic format where it will show name, start time, end time and number of hours worked for each member of staff for each day. So for example in the Sunday column cell B4 shows "Chloe", cell B5 shows "1100" (start time), cell C5 shows "1800" and cell C4 shows "7" (hours worked that day).
    Obviously there are many members of staff doing different shifts on different days and this will change from week to week so what I'm trying to do is tally the total hours each staff member has worked by the end of the week. Is it possible for me to search for a staff member's name and tally the figures in the adjacent cells each time it is found?

    I can attach my current file if this helps. Many thanks in advance.
    Last edited by MisterKrister; 03-08-2010 at 05:04 PM.

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Another lookup question (I think)

    Yes, I think an attachment would greatly help us, particularly in making the formula draggable. Thanks.

  3. #3
    Registered User
    Join Date
    03-08-2010
    Location
    Brighton
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Lookup

    No problems, hopefully should be attached here.
    Attached Files Attached Files

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Lookup

    Try =SUM(($B$4:$T$40=W4)*IF(ISNUMBER($C$4:$U$40),($C$4:$U$40))), confirmed with Control+Shift+Enter in X4, copied down.

  5. #5
    Registered User
    Join Date
    03-08-2010
    Location
    Brighton
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Lookup

    Sir, I am astonished and hugely grateful. I owe you a beer.

    Thanks so much!

  6. #6
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Lookup

    Had a bit of a mental lapse. There's an easier way: =SUMIF($B$4:$T$40,W4,$C$4:$U$40). This doesn't require confirmation with CSE and is a bit more efficient.

  7. #7
    Registered User
    Join Date
    03-08-2010
    Location
    Brighton
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Lookup

    Again, many thanks, I'll change to this new one now.

+ 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