I tried writing an OR multiple criteria to work out averages from a column of data, but seem to be getting different results to manual calculations.
Can anyone assist in writing a single formula for the following multiple ones?
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="ARP"),Sheet1!I10:I65536)))/1440}
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="ART"),Sheet1!I10:I65536)))/1440}
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="AP"),Sheet1!I10:I65536)))/1440}
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="AH"),Sheet1!I10:I65536)))/1440}
B62 is just a COUNTIF formula to see if there's any "A*" entries in the range H10:H65536.
I tried {=AVERAGE(IF(OR(Sheet1!H10:H65536="ARP",Sheet1!H10:H65536="ART",Sheet1!H10:H65536="AP",Sheet1!H10:H65536="AH"),Sheet1!I10:I65536))/1440}
But got different results.
Can anyone assist in writing a single formula for the following multiple ones?
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="ARP"),Sheet1!I10:I65536)))/1440}
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="ART"),Sheet1!I10:I65536)))/1440}
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="AP"),Sheet1!I10:I65536)))/1440}
{=IF(B62=0,"0",AVERAGE(IF((Sheet1!H10:H65536="AH"),Sheet1!I10:I65536)))/1440}
B62 is just a COUNTIF formula to see if there's any "A*" entries in the range H10:H65536.
I tried {=AVERAGE(IF(OR(Sheet1!H10:H65536="ARP",Sheet1!H10:H65536="ART",Sheet1!H10:H65536="AP",Sheet1!H10:H65536="AH"),Sheet1!I10:I65536))/1440}
But got different results.