Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have the following formula whice averages the cells in column G. However,
some of those cells show a zero, which I would like to ignore. What would I need to add to my formula to accommodate this? =SUBTOTAL(1,G:G) Thanks in advance |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=SUM(G:G)/COUNTIF(G:G, "<0") This sums the entire column, but only divides it by the non-zero cells, thus giving a true average. Thanks, Rachel Garrett |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sarah,
You can ignore the count of zeros with the array formula COUNT(IF(array0,array)). Use that as your denominator and the SUM function as the numerator. You can do the same thing by using Subtotal functions, one for the numerator and one for the denominator. Hope this helps. "Sarah (OGI)" wrote: I have the following formula whice averages the cells in column G. However, some of those cells show a zero, which I would like to ignore. What would I need to add to my formula to accommodate this? =SUBTOTAL(1,G:G) Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Ignore zero in column for subtotal | Excel Discussion (Misc queries) | |||
how can I ignore or hide the #N/A when doing a sum or subtotal? | Excel Worksheet Functions | |||
Ignore #N/A in a formula | Excel Discussion (Misc queries) | |||
Ignore #N/A in a formula | Excel Discussion (Misc queries) | |||
How can I ignore an #N/A value in a =SUM() formula? | Excel Worksheet Functions |