Forum Discussion

Jay Lea's avatar
Jay Lea
Copper Contributor
Dec 10, 2019
Solved

best way to find max and average values for data that meets certain criteria

I have a table with names in column B and dates in row 1. The rest of the tables is the sales amount for the employee listed in column B on the date in row 1.   I want to find the max and the avera...
  • Jay Lea's avatar
    Jay Lea
    Dec 12, 2019

    Subodh_Tiwari_sktneer 

     

    E2 had to be: 

     

    =SUMPRODUCT(IFERROR((COUNTIF($H$1:$S$1,data!$C$1:$CF$1)=0)*
    INDEX(data!$C$2:$CF$65,MATCH($A2,data!$B$2:$B$65,0),0),0)/
    SUMPRODUCT((COUNTIF($H$1:$S$1,data!$C$1:$CF$1)=0)*
    (INDEX(data!$C$2:$CF$65,MATCH($A2,data!$B$2:$B$65,0),0)<>"")))

     

    I got it to work!!! Thank you everyone for all of the help!! 

Resources