G
Guest
Scenario: I have a table where each record is an employee. There is a field
for each month and the total number of sales the employee makes is entered
into that month.
So... Tom Jones: Jan=10, Feb=12, Mar=0, Apr=18, May=0, Jun=4, Jul=15,
Sep=0, Oct=10, Nov=13, Dec=0
I want to calculate the total number of sales for Tom and average it out not
by total months, but by months for which there WERE sales. So I need to add
all the sales together and then divide by 8 instead of 12, and then place
that total so it is visible on the form somewhere.
How can I tell it to disregard those fields that have a null value when
averaging? And only for this record and not ALL records.
Thank you for your help!
for each month and the total number of sales the employee makes is entered
into that month.
So... Tom Jones: Jan=10, Feb=12, Mar=0, Apr=18, May=0, Jun=4, Jul=15,
Sep=0, Oct=10, Nov=13, Dec=0
I want to calculate the total number of sales for Tom and average it out not
by total months, but by months for which there WERE sales. So I need to add
all the sales together and then divide by 8 instead of 12, and then place
that total so it is visible on the form somewhere.
How can I tell it to disregard those fields that have a null value when
averaging? And only for this record and not ALL records.
Thank you for your help!