Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Calculating hours between 35 and 40

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.
--
Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Calculating hours between 35 and 40

=MEDIAN(0,A2-35,5) if you are working in hours,
or =MEDIAN(0,A2-35/24,5/24) if you are working in Excel times.
--
David Biddulph

"Nucera" wrote in message
...
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.
--
Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default Calculating hours between 35 and 40

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)


On Sun, 26 Oct 2008 12:38:00 -0700, Nucera
wrote:

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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Calculating hours between 35 and 40

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(A140,A1-40&" hours over 40",IF(A135,A1-40&" hours over 35",0))


--
Thanks,
Shane Devenshire


"Nucera" wrote:

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.
--
Thank you!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Hours Ruthie Excel Worksheet Functions 3 October 1st 08 09:42 PM
Calculating hours Marty Excel Worksheet Functions 5 September 24th 08 10:56 AM
Calculating Hours Nick New Users to Excel 1 March 25th 08 01:52 PM
Calculating hours Ian[_3_] Excel Worksheet Functions 8 September 19th 07 11:51 AM
calculating hours bus2408 Excel Worksheet Functions 2 June 23rd 05 02:39 PM


All times are GMT +1. The time now is 04:37 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"