Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default excel timesheet nested if statements

This will give you time over 40 hours

=MAX(G8-40,0)


this will do the 40-37.5

=MIN(MAX(0,G8-37.5),2.5)


this assumes that you use decimal hours like 8.0 and not excel hours like
08:00
if you do that can be fixed but since I saw you use 37.5 I assumed you are
using decimal hours


--

Regards,

Peo Sjoblom
"Liz" wrote in message
...
I have pondered this question for several years and asked people at work
with
excel experience and no one can help.

The problem is I need a function that will look at if the total is 37.5 or
less nothing is to be done, but if the total hrs is full time (40 hrs) or
less and above the reg work week of 37.5 hours then regular comp is
awarded
1/4 hr per 1/4 hr.
If the time is over a reg 40 hours then this time needs to be seperated to
multiply by 1.5 hrs of comp.
The nested if function is if the total of g1:g7 (g8) is 37.5 but <= 40
subtract (g8)-37.5 if not then 40-37.5

then the next line would be if the total of g1:g7 (g8) 40 then g8-40.
if((sum(g8)40),sum(g8-40),"")


--
Elizabeth



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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Variable SQL Statements pulling from a cell in Excel Duke Carey Links and Linking in Excel 2 March 23rd 06 09:35 AM
Variable SQL Statements pulling from a cell in Excel Duke Carey Links and Linking in Excel 0 March 22nd 06 08:31 PM
Nested IF statements maacmaac Excel Discussion (Misc queries) 2 January 23rd 06 10:18 PM
Nesting more than nine IF statements in Excel Alexander Walsh via OfficeKB.com Excel Worksheet Functions 13 June 1st 05 06:31 PM


All times are GMT +1. The time now is 03:27 PM.

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

About Us

"It's about Microsoft Excel"