Hi Henning,
My assumptions differ slightly from kharisma's.
I've assumed you want an average based on the days for which there has been activity. For example if this were the average daily sales of a shop open Monday to Friday, there would be no data for Saturdays or Sundays. Similarly, the data table could record the earnings of a casual worker—some days the worker could receive payment from multiple employers, other days he might be unavailable for employment (or remain unhired).
Here's an example. I've made the 'amounts' constant to simplify checking the calculations.
The total and Average per Day calculations have been placed in two Footer rows. this allows using a single letter in the tew formulas to reference wach column, and permits adding rows to the table without revising the formulas.
Formuas:
B17 (the first Footer row): =SUM(B)
B18 (second Footer row): =SUM(B)/MAX(C)
C2, and filled down to C16 (last body row):
=IF(COUNTIF(A$2:A2,A2)=1,MAX($C$1:C1)+1,"")
This presents a running count of the number of distinct dates in Column A. The MAXimum value in the column gives the total number of days recorded, and is used to determine the per day average of the amounts (or other values) in column B.
Column C is a 'working column,' and may be hidden.
Regards,
Barry