+ Reply to Thread
Results 1 to 10 of 10

Help needed to summarize data

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    8

    Help needed to summarize data

    Hi guys,

    I'm really lost with how to do this...

    Basically, my objective is this:
    to find out how many overtime hours worked and segregating them into weekdays and weekends.

    Overtime hours:
    Weekdays: anything beyond 8 hours.
    Weekends: all hours counted as overtime.

    Thanks!!

    -=CoRN=-
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-20-2012
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Help needed to summarize data

    Hi CoRN

    The first thing is you'll need to put a column in saying either Weekday or Weekend under each date so the following formula will work

    =IF(B2="weekday",((SUMIF(B3:B32,">8",B3:B32))-(COUNTIF(B3:B32,">8")*8)),(SUM(B3:B32)))

    I've attached your example with the formula to show it works.

    Hope this helps

    example.xlsx

  3. #3
    Registered User
    Join Date
    12-05-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Help needed to summarize data

    Hi djauncey,

    wow!! thanks for the quick follow up... just one more quick question... any quick way to convert or determine the dates if it's a weekday or a weekend?

  4. #4
    Registered User
    Join Date
    08-20-2012
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Help needed to summarize data

    Umm there's the =weekday(@@##,#) formula which I would suggest using with option 2 in the return type (after the comma) so it says monday = 1 through to Sunday =7.

    So in cell b2

    =weekday(b1,2)


    Then just change the start of the If formula at the bottom to start with the following

    if(B2>5, ...

    That should work I think.

    Hope this helps

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Help needed to summarize data

    Quote Originally Posted by CoRN View Post
    Hi djauncey,

    wow!! thanks for the quick follow up... just one more quick question... any quick way to convert or determine the dates if it's a weekday or a weekend?
    New question = new thread !

  6. #6
    Registered User
    Join Date
    08-20-2012
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Help needed to summarize data

    Whilst true, it was technically still the same issue as originally stated, just my first response created a followup question.

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Help needed to summarize data

    Please read forum rules

  8. #8
    Registered User
    Join Date
    12-05-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Help needed to summarize data

    Understood!

  9. #9
    Registered User
    Join Date
    12-05-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Help needed to summarize data

    Quote Originally Posted by djauncey View Post
    Umm there's the =weekday(@@##,#) formula which I would suggest using with option 2 in the return type (after the comma) so it says monday = 1 through to Sunday =7.

    So in cell b2

    =weekday(b1,2)


    Then just change the start of the If formula at the bottom to start with the following

    if(B2>5, ...

    That should work I think.

    Hope this helps
    It worked!!! with minor change... should be if(B2<=5)...
    again.... thanks djauncey!

  10. #10
    Registered User
    Join Date
    08-20-2012
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Help needed to summarize data

    Oh yeah that would do it. Glad I could help in the end

+ 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