# conditional average formula

#### Jupiler

##### New Member
Helo, everybody. Every day I have to calculate the workload of employees.

mo thue wedn thurs fri
Pete 6 8 9 5 h
Steve h h h 6 8
Nelly s 5 9 5 7

"h" represents a holiday and "s" is absence for medical reason.

Im looking for a (matrix)formula which gives me the average/day, so I can attribute a value to an day of absence. In fact the counted values should look like :

mo thue wedn thurs fri
Pete 6 8 9 5 7.5
Steve 6 6.5 9 6 8
Nelly 6 5 9 5 7

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Can you explain those derived values, it is not obvious to me.

If your data is in the range A1:F4, in G2 enter:

=IF(ISTEXT(B2),AVERAGE(B\$2:B\$4),B2)

and copy down and across.

Mr. Poulsom. Your solution wil work. Now I still have to get rid of "DIV/0" error.

Replies
10
Views
211
Replies
6
Views
212
Replies
15
Views
154
Replies
0
Views
79
Replies
3
Views
95

1,203,515
Messages
6,055,848
Members
444,828
Latest member
StaffordStag

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back