Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
How do you average values in a row, ignoring any zeros?
|
#2
![]() |
|||
|
|||
![]()
=AVERAGE(IF(A1:A100<0,A1:A100))
This is an array formula, so commit with Ctrl-SHift-Enter. -- HTH RP (remove nothere from the email address if mailing direct) "Mark" wrote in message ... How do you average values in a row, ignoring any zeros? |
#3
![]() |
|||
|
|||
![]()
=AVERAGE(IF(A1:D1<0,A1:D1))
entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Mark" wrote in message ... How do you average values in a row, ignoring any zeros? |
#4
![]() |
|||
|
|||
![]()
=SUM(A:A)/COUNTIF(A:A,"<0")
Vaya con Dios, Chuck, CABGx3 "Mark" wrote in message ... How do you average values in a row, ignoring any zeros? |
#5
![]() |
|||
|
|||
![]()
Just an alternative to the typical AVERAGE array formula:
=SUM(1:1)/SUM(COUNTIF(1:1,{"<","*",0})*{1,-1,-1}) HTH Jason Atlanta, GA -----Original Message----- How do you average values in a row, ignoring any zeros? . |
#6
![]() |
|||
|
|||
![]()
Peo Sjoblom wrote...
=AVERAGE(IF(A1:D1<0,A1:D1)) entered with ctrl + shift & enter .... Normal caveats with respect to continuity - if there could be positive and negative values, zero values should be included. If only positive values should be included in averages, that should be made explicit, i.e., =AVERAGE(IF(A1:D10,A1:D1)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
leading zeros in text format | Excel Discussion (Misc queries) | |||
Format a cell to keep leading zeros. | New Users to Excel | |||
Averaging numbers but ignoring < and - entries | Excel Discussion (Misc queries) | |||
Excel file saved as csv - dropping zeros | Excel Discussion (Misc queries) | |||
Displaying leading zeros in an Excel spreadsheet | Excel Discussion (Misc queries) |