View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.newusers
JasonP CCTM LV[_2_] JasonP CCTM LV[_2_] is offline
external usenet poster
 
Posts: 36
Default writing formulas

If the Value in A1 is greater than 40, then A1 minus 40, otherwise 0.

=if(A140,A1-40,0)

If you wanted to leave it blank if no overage:

=if(A140,A1-40,"")

"David Cheeks" wrote:

How do I write a formula that shows the overage of 40 hours in a cell to show
overtime from another cell?

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...excel.newusers