conditional average formula

Jupiler

New Member
Joined
Jun 10, 2003
Messages
49
Helo, everybody. Every day I have to calculate the workload of employees.
My spreadsheet looks like

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


Thanks in advance !
 

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.
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.
 
Upvote 0
Mr. Poulsom. Your solution wil work. Now I still have to get rid of "DIV/0" error.

Thanks to all for your reply!
 
Upvote 0

Forum statistics

Threads
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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top