+ Reply to Thread
Results 1 to 7 of 7

consecutive weeks worked

  1. #1
    Registered User
    Join Date
    03-08-2007
    Posts
    15

    consecutive weeks worked

    I am working on a spreadsheet that keeps track of hours worked each day and then it totals it by week and by month.

    I have it setup that column A is the date, column B is the time in, column c is for break, column D is time out, and column E is the total. At the end of each week I do a total and a simple if that does consecutive weeks worked at the end of each week, but what I would really like it at the top to have a current consecutive weeks worked at the top.

    I thought that it could be done by just comparing the actual date in the range of column a then point to that weeks Consecutive weeks calculation but i have failed.
    Attached Files Attached Files
    Last edited by kossdust; 03-09-2007 at 11:42 AM.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hello there,

    It’s not exactly clear what you are trying to achieve from the information given. But if you can provide a small zipped sample of your data, then hopefully a solution can be found

    To post a zipped example, go to “My Documents” or wherever you have your file stored, right-click and “Send to > Compressed file”, then attach this to your post.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    03-08-2007
    Posts
    15
    ok I posted a sample of what I have. The red at the Top I want to be current consecutive weeks worked. Basiacilly need it to mirror the yellow total for the current week

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try this formula

    =INDEX(C:C,MATCH(MAX(A:A),A:A,0)+1)

  5. #5
    Registered User
    Join Date
    03-08-2007
    Posts
    15
    Thanks for your help but the formula you gave me didn't work .. it kept giving 0

    Any other ideas?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    When I paste that formula into cell B3 in the spreadsheet you attached I get 1, which I presume is the answer you want but it may depend how you add data, do you add a day at a time or the whole week?

    If it's the former then perhaps try this formula

    =LOOKUP(2,1/(B4:B1000="CWW"),C4:C1000)

  7. #7
    Registered User
    Join Date
    03-08-2007
    Posts
    15
    Quote Originally Posted by daddylonglegs
    Try this formula

    =INDEX(C:C,MATCH(MAX(A:A),A:A,0)+1)
    Ok the problem with this formula is it just looks at the very last week. I really need it to look at the current week. Does that make since?


    Quote Originally Posted by daddylonglegs
    Try this formula

    =LOOKUP(2,1/(B4:B1000="CWW"),C4:C1000)
    This also suffers from the same problem of only looking at the last week. This is why I was getting a 0 in the forumla b/c the spreadsheet goes until like November and I was looking for current and it was giving me what has not been put in at the end of the spreadsheet

    thanks for your help daddylonglegs

+ 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