Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Microsoft Help » [Excel] Figuring overtime and assign a value
Uniqs:
633
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
[WIN7] Family Upgrade Discount »
« [Info] Vista SP2 and Server 2008 SP2 Released  

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:
·Earthlink Cable Mo..

[Excel] Figuring overtime and assign a value

Okay, I have two questions about Excel. I am making a time sheet for my work, so I can just fill it out, print it to a PDF, and then send it to my office. I have most of it worked out, but I have run into two snags...

1> After 40 hours, I need to go to overtime. I have a column for normal hours, and then a column for overtime hours. When the total of the column reaches 40, it needs to start putting the hours in the OT column. Often, the OT happens in the middle of the day, so it would have to take a day of time, and then split it over two columns.

2> I get paid for my driving by a zone. Zone 1, 2, 3, 4. I want to be able to assign a value to when I put in Zone 3D, it silently figures 60.00, and then adds up the totals of the zone column.

I have the sheet created, and can post a copy if anyone needs to look at it to see what I am talking about.
--
"F is for Fire that burns down the whole town...
U is for Uranium...... Bombs...
N is for NO SURVIVORS!!!!!" Sheldon Plankton

PapaDos
Cum Grano Salis
Premium,MVM
join:2001-02-08
Lasalle, QC

Re: [Excel] Figuring overtime and assign a value

It's always easier to help with a sample file...
--
Festina Lente

brianmcd

join:2000-09-06
Norristown, PA
clubs:
·Verizon FIOS

I used to calculate OT by using a Column with the Total Daily Hours and a Hidden Column with a Running Total Hours for the week.

On a daily basis I set up some calculations to test the following to determine Regular Hours:

If running total is 40 then regular hours are zero.

else

regular Hours are 40 - ( Running Total - Daily Total)

I then used Daily Total - Regular Hours to calculate OT Hours

You can use another hidden column to place the appropriate value for you driving and sum this column. Then reference this for your Zone Column.

All of these calculations make use of Nested Immediate IF statements in excel.

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:
·Earthlink Cable Mo..

Here is the blank form (with forumlas), and a form with sample data.

The $102.08 is a fixed amount that I get each week.

Grey Area

join:2003-11-18
UK
Hi neon.

OK, looked at your form. Other than adding up your overtime hours, I'm not sure what you want it to do...?

Also need a bit more clarification on the Zones idea...

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:
·Earthlink Cable Mo..

Re: [Excel] Figuring overtime and assign a value

The zones are....

1
2R
2D
3R
3D
4R
4D

Each one needs to be assigned a value. So when I put in "3D", the formula thinks $60.00, and will add it up in the background. I don't want to see the amount, just the 3D (or whatever the zone is). This total needs to be shown at the bottom of the zone list, and in the "Zone Total" box at the top.

So if I put in a 3D and 4D, that would total $150.00 (3D=$60, 4D=$90). I want $150 to show in cell J30, and in H8. (H8 just has a "=J30" in it).

Then if I add another 3D, the total should now go to $210. I don't want to see the individual values, though.
--
"F is for Fire that burns down the whole town...
U is for Uranium...... Bombs...
N is for NO SURVIVORS!!!!!" Sheldon Plankton

tao
Chaos Impends
Premium
join:2000-12-03
Lansing, MI
·Comcast

Re: [Excel] Figuring overtime and assign a value

To simply this, you should use military time. So one day of work becomes 700 to 1600, or 9 hours. Then the OT equals the number of hours worked minus 8.

If you must have the presentation you show, then do your calculations on a second sheet and link the values.

Further, I see a bug there in the hours, if this is signed and all that, the hours total maybe should not be 43 hours. As you see at the top, the total hours is now 46, I corrected this in the linked file.

Anyway, my 2 cents...
--
I play darts: »www.triple20dartingsupplies.com | »www.adaoflansing.com
I support unions: »www.1099alldrivers.org www.1039atu.com

tao
Chaos Impends
Premium
join:2000-12-03
Lansing, MI
·Comcast

Re: [Excel] Figuring overtime and assign a value

Played with that sheet a bit more and got the zones working with a compromise. The cells for the zones were split into two columns, with the right being for zone 4 and the left for zone 3, then the cells having numerical values was counted and a function was added to the top list to handle those numbers.

But like I wrote in the previous post, if you need the sheet to have all the features you showed in your example, then simply place the calculations on sheet B and link them to A.
--
I play darts: »www.triple20dartingsupplies.com | »www.adaoflansing.com
I support unions: »www.1099alldrivers.org www.1039atu.com

PapaDos
Cum Grano Salis
Premium,MVM
join:2001-02-08
Lasalle, QC

1 edit
In J30, enter this:

=SUMPRODUCT( ($J$15:$J$29={"1","2R","2D","3R","3D","4R","4D"}) * {0,0,0,0,60,0,90} )

Adjust the second vector values according to your needs...
--
Festina Lente

Grey Area

join:2003-11-18
UK


2 edits
*edit* added a bit more an uploaded an example. You can keep your time formatting if instead of calculating "hours worked -8" you calculate "hours worked -(8/24)" - this is because Excel defaults durations to days as decimal values, so you need to subtract "one third of a day" rather than "eight hours"

Please note my example has column J hidden.

Neon:

Insert a column before column K on your example. In the new cells J15 to J29 type the formula

=IF(K15="3D",60,IF(K15="4D",90,0))

You can add more "IF" statements for the rest of your codes. In J30 just sum the cells above it, then hide column J. This has the advantage of not changing the appearance of your form.

Using the formula as given will leave the cell as zero if you enter a code that you don't have a specific value for.

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:
·Earthlink Cable Mo..

Thanks to everyone for the help... I did notice one problem with the overtime calculation. When you show more than 8 hours in the "hours" column, it will show the hours, and then put the OT in, basically doubling the OT. (See line 16 and 17 of GreyArea's file.)

I removed the J column, and added PapaDos' formula, and it works just like I wanted it to... so far... I haven't put in the other data yet. (Background: R is for Rider, D is for Driver. You get more for driving than riding.) I don't remember what the "#R" values are, as it has been a while since I have ridden with anyone.
--
"F is for Fire that burns down the whole town...
U is for Uranium...... Bombs...
N is for NO SURVIVORS!!!!!" Sheldon Plankton

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:

Re: [Excel] Figuring overtime and assign a value

???? I have a friend/co-worker who is interested in this worksheet as well, so he doesn't have to fax in a paper copy each week. Just fill it out, print as a PDF, and email it over....

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:
·Earthlink Cable Mo..

Bump - Can anyone help with the hours not figuring right?

Ex - If I work 9 hours for that day, 8 needs to be put into the Hours column, and 1 needs to go into the OT1 column.

I do thank everyone for their help so far....
--
"F is for Fire that burns down the whole town...
U is for Uranium...... Bombs...
N is for NO SURVIVORS!!!!!" Sheldon Plankton

PapaDos
Cum Grano Salis
Premium,MVM
join:2001-02-08
Lasalle, QC

Re: [Excel] Figuring overtime and assign a value

Look at the MAX() and MIN() functions...
--
Festina Lente

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:
·Earthlink Cable Mo..

Re: [Excel] Figuring overtime and assign a value

The =MAX(cell1:cell2) only returns the highest number in a series of #'s..

I need it to actually limit the number in the column.

So if I work 10 hours that day, I need it to limit to 8, and put the other two in the OT column next to it.
--
"F is for Fire that burns down the whole town...
U is for Uranium...... Bombs...
N is for NO SURVIVORS!!!!!" Sheldon Plankton

PapaDos
Cum Grano Salis
Premium,MVM
join:2001-02-08
Lasalle, QC

1 edit

Re: [Excel] Figuring overtime and assign a value

Just max( YOUR_TIME, 8 ) in one cell and min( YOUR_TIME - 8, 0 ) in the OT cell...
--
Festina Lente

tr6scott

join:2002-03-23
Oxford, MI

Re: [Excel] Figuring overtime and assign a value

I learn so much from PapaDos....

neonhomer
Honoray Mythbuster
Premium
join:2004-01-27
Edgewater, FL
clubs:
·Earthlink Cable Mo..

I did find a way around it by making another hidden column and figuring my hours there. Then I used a MAX command, to return either the OT or a 0... and my zeros are hidden.

I also needed my half hours to be decimal, and I fixed that as well by using two other hidden columns.

Now I run into a new roadblock as I work out the bugs.

When you figure out hours for the day, one day might have 9 hrs (8 + 1), and the total hours for the week might only end up with 39 hours. I then end up with my totals having 39 regular hours, and 1 overtime hour.

What I need is a way for the time columns to work where they wont shift time to the OT column until the week has totaled 40 hours.

Regardless, here is a updated copy of what I have been working with.
--
"F is for Fire that burns down the whole town...
U is for Uranium...... Bombs...
N is for NO SURVIVORS!!!!!" Sheldon Plankton
Forums » Tech and Talk » OS and Software » Microsoft Help[WIN7] Family Upgrade Discount »
« [Info] Vista SP2 and Server 2008 SP2 Released  


Saturday, 28-Nov 15:22:22 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [122] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [75] TiVo Sees Record Customer Losses
· [70] Verizon CEO: Hulu Will Be Dead Soon
· [69] In-Flight Internet Headed For Bumpy Landing?
· [62] Thanksgiving Open Thread
· [61] Weekend Open Thread
· [40] EFF Wages War On Fine Print
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· [Newsgroups] Newzleech down? [Filesharing Software]
· [Vista] Why is HD So Full? [Microsoft Help]
· Windows 7 - Dell ALPS Touchpad driver [Microsoft Help]
· ToC 4th boss - Preliminary Strategy for Twin Valkyr [World of Warcraft]
· Using DIR-615 C1/3.01 with Trendnet TEW-652BRP in N Mode [D-Link]
· Motorola 5100 Modem [Comcast HSI]
· Why would I want an e reader? [General Questions]
· Using AirMax to provide triple play services? [Wireless Service Providers]
· Whats the big deal about being "Old School"....? [World of Warcraft]