Calculating hours between 35 and 40

  • Thread starter Thread starter Nucera
  • Start date Start date
N

Nucera

We have a 35 hour work week. I am trying to calculate the number of hours
between 35-40, then number of hours between 35-40 if over 40, and if under
35, then it shows 0. I can do it with 2 formulas on seperate lines then
doing an IF statement, but waswondering if it is possible to do it as 1
function.

Thanks.
 
Try something like the following, with the number of hours in A1:

=IF(A1<35,"Less Than 35: "&A1,IF(A1<40,"Between 35 and 40:
"&A1,"Greater Than 40: "&A1))

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 
Hi,

With the formula as stated you couldn't tell if 3 hours represented over 40
or between 35 and 40. So it sounds like what you need is

=IF(A1>40,A1-40&" hours over 40",IF(A1>35,A1-40&" hours over 35",0))
 

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

Back
Top