Averages and Counts from different columns

G

Guest

Hi I have a golf handicapping spredsheet set up like this
B C
Front 41
Back 30
Front 53
Back 43
Front 37
Back 29

I am trying to get an average for the data in "C" for the "Front" and then
seperately for the "Back"

But this average needs to throw out the high and low.

SUMPRODUCT will not give me a count of Fronts and Backs, and AVERAGE will
not work because I can not get a min function to leave out zeros.

Help Please!
Thanks a bunch
 
B

Bob Phillips

=AVERAGE(IF(B1:B20="Front",C1:C20))

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
D

Don Guillett

try this ARRAY formula which must be entered with ctrl+shift+enter. ONE line

=(SUM(IF(A3:A9="Front",B3:B9))-MIN(IF(A3:A9="Front",B3:B9))-MAX(IF(A3:A9="Fr
ont",B3:B9)))/(COUNTIF(A3:A8,"Front")-2)
 
G

Guest

i get ####

Bob Phillips said:
=AVERAGE(IF(B1:B20="Front",C1:C20))

which is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Guest

never mind i am a dummy it is working?

Is there a way to get a count of the number of "Fronts"
 
G

Guest

Thanks in this formula does it throwout any zeros found in "b" column for the
MIN?
 
B

Bob Phillips

=SUMIF(B1:B20,"Front")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
B

Bob Phillips

Okay, so how about

=AVERAGE(LARGE(IF(B1:B20="Front",C1:C20),ROW(INDIRECT("2:"&COUNTIF(B1:B20,"F
ront")-1))))

still an array formula

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Guest

Those are not my real scores. Did the array formula remove zeros from the MIN
function?
 
G

Guest

I am also trying to show my High and Low Rounds on the front and back

I am using =MAX(if(a3:a9="Front",B3:b9)) and I get #value!

And I can not figure out a formula for the Low round on the front

Can you help we these also?
Thanks
 
H

Harlan Grove

Bob Phillips wrote...
....
=AVERAGE(LARGE(IF(B1:B20="Front",C1:C20),
ROW(INDIRECT("2:"&COUNTIF(B1:B20,"Front")-1))))
....

LARGE does to much work. And if there were only 2 or fewer instances of
"Front" in col B, this returns an error.

Alternative,

=IF(COUNTIF(B1:B20,"Front")>2,
TRIMMEAN(IF(B1:B20="Front",C1:C20),2/COUNTIF(B1:B20,"Front")),"")
 
G

Guest

How do I get the Minimum for the rounds on the "Front" without it returning
zero.

I am using the =MIN(IF(a3:a9="Front",B3:B9)) and it returns zero
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top