average(if())

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My data is in columns. I want to average those values that are 0<X>1 only.
Tried using Average(if()) but am so far unsuccessful. Suggestions?
 
that worked like a charm! thanks a ton. if i may....
what does the * do in this situation, is it like an either/or, so if i got
crazy and wanted to continue with the conditions could i add another * ?

cheers
 
anyway to do this if the data to be averaged is not in adjacent columns??
 
It multiplies the TRUE/FALSE arrays returned from the conditional tests to
give an array of 1/0 which is used to determine whether the cells in the
range are included in the AVERAGE.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Do you mean, A, C and E say (that is regularly spaced),

=SUMPRODUCT(--(MOD(COLUMN(A2:E2),2)=1),--(A2:E2>0),--(A2:E2<1),A2:E2)/SUMPRO
DUCT(--(MOD(COLUMN(A2:E2),2)=1),--(A2:E2>0),--(A2:E2<1))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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

Similar Threads

Excel Issue with "Average" showing in Status Bar 2
average(if()) 2
Average 10
average if question 2
Average if 2
average 1
If average 3
Running Average Excel 2007 5

Back
Top