| Line 44: |
Line 44: |
| | *Logical value TRUE counts as 1 & FALSE counts as 0. | | *Logical value TRUE counts as 1 & FALSE counts as 0. |
| | *Values that contain non-numeric text count as 0. | | *Values that contain non-numeric text count as 0. |
| − | *Empty text ("") counts as 0. | + | *Empty text (" ") counts as 0. |
| | '''AVERAGEA(A2:A5) = 2.5<br> | | '''AVERAGEA(A2:A5) = 2.5<br> |
| | '''AVERAGEA(B2:B5) = 1333.33<br> | | '''AVERAGEA(B2:B5) = 1333.33<br> |
| | '''AVERAGEA(D2:D5) = 0.5<br></br> | | '''AVERAGEA(D2:D5) = 0.5<br></br> |
| | + | |
| | + | |
| | + | <div style="font-size:24px">'''AVERAGEX()'''</div> |
| | + | *AVERAGEX() calculates the average (arithmetic mean) of a set of expressions evaluated over a table.<br></br> |
| | + | |
| | + | <div style="font-size:16px">'''NOTE:'''</div> |
| | + | The AVERAGEX function takes a column and averages the numbers, but also handles non-numeric data types according to the following rules: |
| | + | |
| | + | *The function takes a table as its first argument, and an expression as the second argument. |
| | + | *The AVERAGEX function enables you to evaluate expressions for each row of a table, and then take the resulting set of values and calculate its arithmetic mean. |
| | + | *You cannot include non-numeric or null cells. Both the table and expression arguments are required. |
| | + | *When there are no rows to aggregate, the function returns a blank. When there are rows, but none of them meet the specified criteria, then the function returns 0. |
| | + | *Does not support Logical/ boolean values. |
| | + | '''AVERAGEX(A2:A5) = 2.5<br> |