Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Excel - Averaging
I need to average multiple cells that are not continuous and ignore zero
values. The formula to ignore =AVERAGE(IF(A2:A7<0, A2:A7,"")) does not work for single cell entries (i.e. A2,A4, A6, A8) Is there a way to do this? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Excel - Averaging
Is it always every other cell you can use
=AVERAGE(IF((MOD(ROW(A2:A100)-ROW(A2),2)=0)*(A2:A100<0),A2:A100)) entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Christy" wrote in message ... I need to average multiple cells that are not continuous and ignore zero values. The formula to ignore =AVERAGE(IF(A2:A7<0, A2:A7,"")) does not work for single cell entries (i.e. A2,A4, A6, A8) Is there a way to do this? |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Excel - Averaging
If there number of cells to be averaged is small
=(A2+A4+A6+A8)/((A2<0)+(A4<0)+(A6<0)+(A8<0)) best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Christy" wrote in message ... I need to average multiple cells that are not continuous and ignore zero values. The formula to ignore =AVERAGE(IF(A2:A7<0, A2:A7,"")) does not work for single cell entries (i.e. A2,A4, A6, A8) Is there a way to do this? |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Excel - Averaging
Try this array formula** :
=AVERAGE(IF((MOD(ROW(A2:A8)-ROW(A2),2)=0)*(A2:A8<0),A2:A8)) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "Christy" wrote in message ... I need to average multiple cells that are not continuous and ignore zero values. The formula to ignore =AVERAGE(IF(A2:A7<0, A2:A7,"")) does not work for single cell entries (i.e. A2,A4, A6, A8) Is there a way to do this? |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Excel - Averaging
No, unfortunately not. Sometimes it is every other, sometimes it can be
every third or fourth cell. "Peo Sjoblom" wrote: Is it always every other cell you can use =AVERAGE(IF((MOD(ROW(A2:A100)-ROW(A2),2)=0)*(A2:A100<0),A2:A100)) entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Christy" wrote in message ... I need to average multiple cells that are not continuous and ignore zero values. The formula to ignore =AVERAGE(IF(A2:A7<0, A2:A7,"")) does not work for single cell entries (i.e. A2,A4, A6, A8) Is there a way to do this? |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Excel - Averaging
try this
=AVERAGE(IF(A2:A7<0,A2:A7)) ( use ctrl + shift + enter ) On Dec 10, 2:12*am, Christy wrote: I need to average multiple cells that are not continuous and ignore zero values. The formula to ignore =AVERAGE(IF(A2:A7<0, A2:A7,"")) does not work for single cell entries (i.e. A2,A4, A6, A8) *Is there a way to do this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Averaging Over Multiple Workbooks | Excel Worksheet Functions | |||
Averaging Time withing Excel | Excel Worksheet Functions | |||
Averaging function is pulling back a zero in Excel | Excel Discussion (Misc queries) | |||
Averaging with excel | Excel Discussion (Misc queries) | |||
Adding/Averaging Times in Excel | Excel Discussion (Misc queries) |