Results 1 to 6 of 6

Thread: Week by week report

  1. #1

    Week by week report



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi All,

    I have a spreadsheet which works great but I want to add some additional formulas and need a little help?

    There are 2 tabs with this spreadsheet.

    The first tab is raw data which shows name, date of audit and audit score. This data contains all audit scores for all members of staff .

    The second tab actually shows an average audit score of the data week by week for each person.

    Is there a way to add another column next to the percentage to show the number of audits completed? So this would be a count of the entries rather than an average?

    So for example, column D would not show the amount of audits completed. Eg Derek Spenser between 30th Sept and 4th Oct = 4

    I have attached another example.

    Hope this makes sense?

    Many thanks
    Craig
    Attached Files Attached Files

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,225
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Answer actually depends on the version of Excel you're using. I think SUMIFS was added in 2007, but it might be 2010, so this may not work for you. If not, we'll reach to SUMPRODUCT instead.

    Assumptions:
    Start Date is in K2
    End Date is in K3
    Auditor is in K4

    Formula: =COUNTIFS(B2:B2867,K4,C2:C2867,">="&K2,C2:C2867,"<="&K3)

    Oh.. and there actually only appear to be 2 instances of Derek Spencer in that range.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Thanks ken its actually excel 2003

  4. #4
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,225
    Articles
    57
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Should have guessed by virtue of your example file being an XLS!

    Try this formula instead. Same assumptions as above:

    =SUMPRODUCT(--(B2:B2867=K4),--(C2:C2867>=K2),--(C2:C2867<=K3))
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  5. #5
    works like a treat, thanks very much Ken

  6. #6
    Super Moderator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,314
    Articles
    0
    Excel Version
    2010 on Xubuntu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •