+ Reply to Thread
Results 1 to 8 of 8

Sum and Coutnifs

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Sum and Coutnifs

    Hi guys

    Just need to get a formula for sum and countifs for data figures during weekdays.

    Attached is the spreadsheet for reference.

    Many thanks for help in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum and Coutnifs

    Try this..

    For Count (excl weekends)
    =SUMPRODUCT(--(WEEKDAY(D4:Q4)<>1),--(WEEKDAY(D4:Q4)<>7))

    For Sum (excl weekends)
    =SUMPRODUCT(--(WEEKDAY(D4:Q4)<>1),--(WEEKDAY(D4:Q4)<>7),D5:Q5)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Sum and Coutnifs

    Thanks again Ace! Always helpful! Can I ask for another help? with regard to Average?

  4. #4
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Sum and Coutnifs

    Hi Ace, I have attached the spreadsheet with description, hope you can take a look. Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum and Coutnifs

    Whats the logic in Week 40 equating to Aug 1 - Sep 28?

    Also, do you want to include/exclude weekends?

  6. #6
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Sum and Coutnifs

    Hi Ace, we only start tracking the calls from August onwards, and week 40 falls until sep 28. Also exclude weekends. Hope it clarifies the above.

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Sum and Coutnifs

    Try this...

    =SUMPRODUCT(--('Total Htls Combined'!B7:NC7<=Parameters!$B$3),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>1),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>7),'Total Htls Combined'!B9:NC9)/SUMPRODUCT(--('Total Htls Combined'!B7:NC7<=Parameters!$B$3),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>1),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>7))
    This will lead to skewed results due to Nil calls in period prior to Aug 1.

    If you want to explicitly exclude these prior calls use the following one
    =SUMPRODUCT(--('Total Htls Combined'!B5:NC5>=DATE(2012,8,1)),--('Total Htls Combined'!B7:NC7<=Parameters!$B$3),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>1),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>7),'Total Htls Combined'!B9:NC9)/SUMPRODUCT(--('Total Htls Combined'!B5:NC5>=DATE(2012,8,1)),--('Total Htls Combined'!B7:NC7<=Parameters!$B$3),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>1),--(WEEKDAY('Total Htls Combined'!B5:NC5)<>7))

  8. #8
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Sum and Coutnifs

    Thanks, Ace! Works perfectly! Cheers!

+ 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