Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sonofroy
 
Posts: n/a
Default Averages and Counts from different columns

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
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=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)


"sonofroy" wrote in message
...
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



  #6   Report Post  
Harlan Grove
 
Posts: n/a
Default

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")),"")

  #7   Report Post  
sonofroy
 
Posts: n/a
Default

i get ####

"Bob Phillips" wrote:

=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)


"sonofroy" wrote in message
...
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




  #8   Report Post  
sonofroy
 
Posts: n/a
Default

never mind i am a dummy it is working?

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

"Bob Phillips" wrote:

=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)


"sonofroy" wrote in message
...
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




  #9   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMIF(B1:B20,"Front")

--

HTH

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


"sonofroy" wrote in message
...
never mind i am a dummy it is working?

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

"Bob Phillips" wrote:

=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)


"sonofroy" wrote in message
...
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






  #11   Report Post  
sonofroy
 
Posts: n/a
Default

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

"Don Guillett" wrote:

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)

--
Don Guillett
SalesAid Software

"sonofroy" wrote in message
...
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"