S
Steve Vincent
I have five fields on a report that contain scores from a survey. Sometimes
a question gets skipped, and that field is null. I would like to compute
the average, in a section footer, of only the fields in each record that
contain values. So, if only four of the five fields contain values, I want
to add those four fields together, and divide the total by FOUR, not by five.
I have seen a number of postings that are "almost" this situation, but not
quite. So, I have been researching like crazy, and trying many differnt IIF
statements, Nz, IsError, IsNull, expressions... and haven't found the
solution yet.
Let's call my five fields [T1], [T2], [T3], [T4], and [T5]. Any ideas for
computing the mean (avg) of only the data-containing fields? The formula
will live on the face of the report itself.
Thank you very much in advance,
Steve
a question gets skipped, and that field is null. I would like to compute
the average, in a section footer, of only the fields in each record that
contain values. So, if only four of the five fields contain values, I want
to add those four fields together, and divide the total by FOUR, not by five.
I have seen a number of postings that are "almost" this situation, but not
quite. So, I have been researching like crazy, and trying many differnt IIF
statements, Nz, IsError, IsNull, expressions... and haven't found the
solution yet.
Let's call my five fields [T1], [T2], [T3], [T4], and [T5]. Any ideas for
computing the mean (avg) of only the data-containing fields? The formula
will live on the face of the report itself.
Thank you very much in advance,
Steve