#1   Report Post  
Posted to microsoft.public.excel.misc
lestie
 
Posts: n/a
Default if formulas

i need help w/a formula

if hours<= 40, then gross pay=rate*hours, otherwise gross
pay=rate*hours+0.5* rate*(hours-40)

cell b4 rate
cell c4 hours

next
if(gross pay-dependents*38.46)0, then federal tax=20%*(gross
pay-dependents*38.46), otherwisw federal tax=0

cell f4 gross pay
cell d4 dependents
cell i4 fed tax

--
lestie
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default if formulas

"lestie" wrote:
if hours<= 40, then gross pay=rate*hours, otherwise gross
pay=rate*hours+0.5* rate*(hours-40)
cell b4 rate
cell c4 hours


A couple of several ways to do it:

=b4*c4 + max(0, 0.5*b4*(c4-40))
=b4*c4 + if(c4<=0, 0, 0.5*b4*(c4-40))

if(gross pay-dependents*38.46)0, then federal tax=20%*(gross
pay-dependents*38.46), otherwisw federal tax=0
cell f4 gross pay
cell d4 dependents
cell i4 fed tax


In I4, one of the following (among others):

=max(0, 20%*(f4 - d4*38.46))
=if(f4 - d4*38.46 <= 0, 0, 20%*(f4 - d4*38.46))
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dsuperc
 
Posts: n/a
Default if formulas

try this site.
http://www.personal-computer-tutor.com/if2.htm

"lestie" wrote:

i need help w/a formula

if hours<= 40, then gross pay=rate*hours, otherwise gross
pay=rate*hours+0.5* rate*(hours-40)

cell b4 rate
cell c4 hours

next
if(gross pay-dependents*38.46)0, then federal tax=20%*(gross
pay-dependents*38.46), otherwisw federal tax=0

cell f4 gross pay
cell d4 dependents
cell i4 fed tax

--
lestie

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
Formulas not recognizing new data malakingaso Excel Discussion (Misc queries) 1 February 8th 06 07:27 PM
Countif formulas change after doing a sort Bob Smith Excel Worksheet Functions 3 January 3rd 06 11:17 PM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


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

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"