+ Reply to Thread
Results 1 to 6 of 6

Average with multiple criteria from

  1. #1
    Registered User
    Join Date
    01-19-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Cool Average with multiple criteria from

    This one is turning into a monster that just won't play nice.

    This is feeding a chart that is averaging weekly averages together per lead on 3 different projects.
    • If Lead Name is Present > If weeknum=G3 > Average Column
    • Each Tracker's averaged column is different as they are different sized trackers
    • The first Range in each of the SUMIFS are the Averaged columns from their sheets

    Currently this returns results BUT it is including rows that match Name & Weeknum but have blanks. Thus causing the numbers to be divided by much higher numbers.

    =IFERROR(SUMIFS('CX Tracker'!$AR$3:$AR$189,'CX Tracker'!$C$3:$C$189,"Daniel M",'CX Tracker'!$L$3:$L$189,G3)+SUMIFS('SNV Tracker'!$Y$3:$Y$189,'SNV Tracker'!$C$3:$C$189,"Daniel M",'SNV Tracker'!$G$3:$G$189,G3)+SUMIFS('Audit Tracker'!$X$3:$X$189,'Audit Tracker'!$H$3:$H$189,"Daniel M",'Audit Tracker'!$M$3:$M$189,G3)/(COUNTIFS('SNV Tracker'!$C$3:$C$189,"Daniel M",'SNV Tracker'!$G$3:$G$189,G3)+COUNTIFS('CX Tracker'!$C$3:$C$189,"Daniel M",'CX Tracker'!$L$3:$L$189,G3)+COUNTIFS('Audit Tracker'!$H$3:$H$189,"Daniel M",'Audit Tracker'!$M$3:$M$189,G3)),0)


    Thanks in advance.
    Last edited by zdonner; 08-25-2014 at 11:56 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Average with multiple criteria from

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    01-19-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Average with multiple criteria from

    Sample.xlsx

    Here is the trimmed spreadsheet.

  4. #4
    Registered User
    Join Date
    01-19-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Average with multiple criteria from

    Anyone have any help than can offer?

    Unless there is just a more streamlined way to do what I'm attempting, I really just need to make it so that if both criteria are met that the averaged cell is checked and if blank then not counted.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Average with multiple criteria from

    I see a lot of tabs in your file, but I don't see where the data needs to be filled.

    And on what criteria (which cells)?

  6. #6
    Registered User
    Join Date
    01-19-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Average with multiple criteria from

    Sample_Updated.xlsx

    I updated this by highlighting the cells that contain the formula I'm having issues with on the "Chart" Tab.

  7. #7
    Registered User
    Join Date
    01-19-2011
    Location
    Georgia
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Average with multiple criteria from

    Never mind - I figured it out last Friday.

    Correct would be;

    =IFERROR((SUMIFS('CX Tracker'!$BI$3:$BI$189,'CX Tracker'!$I$3:$I$189,J$2,'CX Tracker'!$L$3:$L$189,$G3)+SUMIFS('CX Tracker'!$BI$3:$BI$189,'CX Tracker'!$O$3:$O$189,J$2,'CX Tracker'!$R$3:$R$189,$G3)+SUMIFS('Audit Tracker'!$X$3:$X$189,'Audit Tracker'!$H$3:$H$189,J$2,'Audit Tracker'!$M$3:$M$189,$G3))/(COUNTIFS('CX Tracker'!$BI$3:$BI$189,">0",'CX Tracker'!$I$3:$I$189,J$2,'CX Tracker'!$L$3:$L$189,$G3)+COUNTIFS('CX Tracker'!$BI$3:$BI$189,">0",'CX Tracker'!$O$3:$O$189,J$2,'CX Tracker'!$R$3:$R$189,$G3)+COUNTIFS('Audit Tracker'!$X$3:$X$189,">0",'Audit Tracker'!$H$3:$H$189,J$2,'Audit Tracker'!$M$3:$M$189,$G3)),"")

    Basically I rewrote from scratch after removing a tab from the sheet we decided to combine with another project. That had no effect on this working, but is important to mention when com paring the two.

    The issue was the COUNTIFS statements, there were written poorly, I essentially was looking at the problem from the wrong angle.


    Thanks,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Average If. multiple criteria
    By pytheus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 08:39 PM
  2. [SOLVED] AVERAGE with multiple criteria
    By jrlafrance in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2013, 03:02 PM
  3. Multiple Sheets Multiple Criteria Average Data
    By apauaie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 01:13 PM
  4. Calculate average for multiple ranges for multiple criteria
    By cesareit in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2013, 01:33 PM
  5. [SOLVED] Average Ifs - multiple Criteria
    By Hudson in forum Excel General
    Replies: 4
    Last Post: 09-28-2012, 01:55 PM

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