#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default average(if())

(sorry about the double post....FNG)

anyway, i am trying to average columns using only the data that falls 0<X1
(between 0 and 1). So if i am averaging cols A:C, sometimes 0A and
sometimes 0C and I want to average only those values in A:C that at that
particular time are 0<X1. have tried the following so far:

{=AVERAGE(IF(and(a2:c20,a2:c2<1,a2:c2,""))}, and
{=AVERAGE(IF(0<a2:c21,a2:c2,""))}

but to no avail :(
help would be greatly appreciated! thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 341
Default average(if())

I bet you need this
=IF(AND(A2:C20,A2:C2<1),AVERAGE(A2:C2),"")
(press control + shift + enter to enter it and get the curly brackets)

--
Allllen


"neversummer" wrote:

(sorry about the double post....FNG)

anyway, i am trying to average columns using only the data that falls 0<X1
(between 0 and 1). So if i am averaging cols A:C, sometimes 0A and
sometimes 0C and I want to average only those values in A:C that at that
particular time are 0<X1. have tried the following so far:

{=AVERAGE(IF(and(a2:c20,a2:c2<1,a2:c2,""))}, and
{=AVERAGE(IF(0<a2:c21,a2:c2,""))}

but to no avail :(
help would be greatly appreciated! thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 124
Default average(if())

I believe I have your answer:

Let me use 1 (one) column of numbers as follows:

A B C
D

0.8 = -- AND(A10,A1<1) = IF(AND(A10,A1<1),1,0)
1.5 = -- AND(A20,A2<1) = IF(AND(A20,A2<1),1,0)
-15.0 = -- AND(A30,A3<1) = IF(AND(A30,A3<1),1,0)
0.7 = -- AND(A40,A4<1) = IF(AND(A40,A4<1),1,0)

= SUMPRODUCT(A1:A4,B1:B4) = SUM(C1:C4)
=B6/C6

All the above...COPY AND PASTE...The B6/C6 (in cell D6) is your AVERAGE!!!

I hope this helps; pls. let me know.

Thanks,

FLKulchar
"neversummer" wrote:

(sorry about the double post....FNG)

anyway, i am trying to average columns using only the data that falls 0<X1
(between 0 and 1). So if i am averaging cols A:C, sometimes 0A and
sometimes 0C and I want to average only those values in A:C that at that
particular time are 0<X1. have tried the following so far:

{=AVERAGE(IF(and(a2:c20,a2:c2<1,a2:c2,""))}, and
{=AVERAGE(IF(0<a2:c21,a2:c2,""))}

but to no avail :(
help would be greatly appreciated! thanks.

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any way to get an AVERAGEIF & MEDIANIF function in Exce TinaMo Excel Worksheet Functions 7 April 23rd 08 05:19 PM
averageif rudy Excel Discussion (Misc queries) 5 April 27th 06 11:20 PM
how can i calc averageif Bruce Excel Worksheet Functions 3 June 18th 05 02:08 PM
"AverageIF" alternative Flutie99 Excel Discussion (Misc queries) 2 May 27th 05 11:03 PM
AVERAGEIF Function out there? davidad Excel Discussion (Misc queries) 2 January 21st 05 05:52 PM


All times are GMT +1. The time now is 03:14 AM.

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

About Us

"It's about Microsoft Excel"