ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   having 0 as a min when running mina or average (https://www.excelbanter.com/excel-worksheet-functions/24712-having-0-min-when-running-mina-average.html)

Tim

having 0 as a min when running mina or average
 
Hi I am trying to simplify my spreadsheets, and would like a minimum column.
I can not find out how to not include cells with 0 in.

Same as when doing an average for a row of months, I would also not like to
count months with 0 .

Thanks Tim



Peo Sjoblom

=MIN(IF(A2:A100<0,A2:A100))


=AVERAGE(IF(A2:A100<0,A2:A100))



entered with ctrl + shift & enter

--
Regards,

Peo Sjoblom


"Tim" wrote in message
...
Hi I am trying to simplify my spreadsheets, and would like a minimum
column. I can not find out how to not include cells with 0 in.

Same as when doing an average for a row of months, I would also not like
to count months with 0 .

Thanks Tim



Tim

Thanks for this amazingly fast reply.

"Peo Sjoblom" wrote in message
...
=MIN(IF(A2:A100<0,A2:A100))


=AVERAGE(IF(A2:A100<0,A2:A100))



entered with ctrl + shift & enter

--
Regards,

Peo Sjoblom


"Tim" wrote in message
...
Hi I am trying to simplify my spreadsheets, and would like a minimum
column. I can not find out how to not include cells with 0 in.

Same as when doing an average for a row of months, I would also not like
to count months with 0 .

Thanks Tim






All times are GMT +1. The time now is 07:27 PM.

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