Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-03-2005, 12:14 AM   #1
Member (8 bit)
 
shuckthecorn's Avatar
 
Join Date: Jan 2002
Location: Santa Maria, Ca
Posts: 171
Send a message via Yahoo to shuckthecorn
Excell question

Im creating a very simple timecard program for employees. In the overtime box I want it to simply calculate overtime if the employee worked more than 8 hours. But as it stands now if employee works 5 hours the overtime box reads -3. Can I create a formula that will only calculate if the result is a positive number?

Shuck
shuckthecorn is offline   Reply With Quote
Old 08-03-2005, 12:39 AM   #2
Member (14 bit)
 
bailey's Avatar
 
Join Date: Mar 1999
Location: Christmas, Florida
Posts: 10,661
yes you can, but I can't tell you what it is.
bailey is offline   Reply With Quote
Old 08-03-2005, 10:14 AM   #3
Member (9 bit)
 
Join Date: Nov 2004
Location: Flint, MI
Posts: 256
=IF([hours > 8],"[overtime hours]*[overtime hourly wage]","[put false result here]")

Go to Insert > Function > Logical > If

Type in a condition that has to be met. In my example, hours has to be > 8 (could be G13 > 8, or whatever.)

Then put in what you want to happen if it is met, or if the condition is true. In my example you take the overtime hours and multiply by the hourly wage. Could be G8 * 8.25, or whatever, if G8 held the number of hours in overtime.

Then put in what you want to happen if it isn't met, or if the condition is false. In my example I didn't put one, you could just put a hyphen so that when you scan down the column you can tell that they didn't work overtime, or you can put "none", or whatever your heart desires.

»fo
foolishone is offline   Reply With Quote
Old 08-03-2005, 07:34 PM   #4
Member (8 bit)
 
shuckthecorn's Avatar
 
Join Date: Jan 2002
Location: Santa Maria, Ca
Posts: 171
Send a message via Yahoo to shuckthecorn
Thanks a ton!
shuckthecorn is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT -5. The time now is 09:17 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2