mixed text and formula results

J

johnu

I need to track the hours of part time employees to ensure that the average
number hours per week they work does not exceed 18. Calculating the average
is easy enough but I would like the cell to display how many hours over the
average they have worked. For example, if the employee worked 37 hours in
two weeks the cell should say “Exceeded allotted hours by 1.00â€. The formula
so far is =IF(AVERAGE(B3:B16)>18,"exceeds allowable hours by",
AVERAGE(B3:B16))
Thank you
 
R

Reitanos

The concatenate operator (&) is used to append a formula, so:
=IF(AVERAGE(B3:B16)>18,"Exceeds allowable hours by
"&AVERAGE(B3:B16)-18,AVERAGE(B3:B16))
 
B

Bob Phillips

=IF(AVERAGE(B3:B16)>18,
"Exceeds allowable hours by"&TEXT(AVERAGE(B3:B16)-18,"0.00"),
AVERAGE(B3:B16))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top