ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   {=AVERAGE(IF((C3:C325<M4), C3:C325))} (https://www.excelbanter.com/excel-worksheet-functions/54047-%7B%3Daverage-if-c3-c325-m4-c3-c325-%7D.html)

Nebbez

{=average(if((c3:c325m4), C3:c325))}
 
Hi, I will need anyones assistance on this please... Cant figure it out..

I have this formula that I use to compute averages given a criteria,
{=AVERAGE(IF((C3:C325M4), C3:C325))}

when I try to change it to {=AVERAGE(IF((C:CM4), C:C))}, it doesnt work because it takes into consideration all cells in the C column.

How can I get it only to take into consideration the non blank cells in the C column instead of all of the cells? (knowing that I do now want to specify everytime C#:C###)...

Any tips..?

Bob Phillips

{=AVERAGE(IF((C3:C325<M4), C3:C325))}
 
The reason is that it is an array formula, and these are restricted to 65535
items, so you could do

=AVERAGE(IF(C1:C65535<N4,C1:C65535))

as an array formula

--

HTH

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


"Nebbez" wrote in message
...

Hi, I will need anyones assistance on this please... Cant figure it
out..

I have this formula that I use to compute averages given a criteria,
{=AVERAGE(IF((C3:C325<M4), C3:C325))}

when I try to change it to {=AVERAGE(IF((C:C<M4), C:C))}, it doesnt
work because it takes into consideration all cells in the C column.

How can I get it only to take into consideration the non blank cells in
the C column instead of all of the cells? (knowing that I do now want to
specify everytime C#:C###)...

Any tips?


--
Nebbez





All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com