A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF _Different Values-



 
 
Thread Tools Display Modes
  #1  
Old June 10th, 2009, 07:10 PM posted to microsoft.public.excel.worksheet.functions
Rick.[_2_]
external usenet poster
 
Posts: 1
Default IF _Different Values-

I'm working on a formula for Split Shift (SS), Having different hourly rates
and different hours worked.
For example, Rate 1: @ $8.25/hr if the employee (EE) worked from 4:00 hrs to
4:59 hrs the SS is $7.00, if the EE worked from 5:00 hrs to 5:59 hrs then the
SS is $6.75 and so on up to 10:59 hrs.
Rate 2: @ $9.00/hr if the EE worked from 4:00 to 4:59 hrs the SS is $4.00,
if the EE worked from 5:00 to 5:59 hrs then the SS is $3.00 and so on up to
10:59 hrs.

I have several rates, how can I include all of them in the formula?

This is my formula so far:

=IF((A18=8.25)*AND(B18=4)*(B185),"7",IF((B18=5) *(B186),"6.75",IF((B18=6)*(B187),"6.50",IF((B18 =7)*(B188),"6.25",IF((B18=8)*(B189),"6",IF((B1 8=9)*(B1810),"5.75",IF((B18=10)*(B1811),"5.50" ,)))))))

Thanks in advance for your help.

Rick

  #2  
Old June 10th, 2009, 07:54 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default IF _Different Values-

Rick,

For Rate 1, try this:

=IF(A18=8.25,MAX(5.5,(B18=4)*(7-MAX(0,INT((B18-5)+1)*0.25)),0),0)

What happens above 11 hours?

Rate 2 isn't so well behaved - the one dollar decrease is too large....

HTH,
Bernie
MS Excel MVP


"Rick." wrote in message
...
I'm working on a formula for Split Shift (SS), Having different hourly rates
and different hours worked.
For example, Rate 1: @ $8.25/hr if the employee (EE) worked from 4:00 hrs to
4:59 hrs the SS is $7.00, if the EE worked from 5:00 hrs to 5:59 hrs then the
SS is $6.75 and so on up to 10:59 hrs.
Rate 2: @ $9.00/hr if the EE worked from 4:00 to 4:59 hrs the SS is $4.00,
if the EE worked from 5:00 to 5:59 hrs then the SS is $3.00 and so on up to
10:59 hrs.

I have several rates, how can I include all of them in the formula?

This is my formula so far:

=IF((A18=8.25)*AND(B18=4)*(B185),"7",IF((B18=5) *(B186),"6.75",IF((B18=6)*(B187),"6.50",IF((B18 =7)*(B188),"6.25",IF((B18=8)*(B189),"6",IF((B1 8=9)*(B1810),"5.75",IF((B18=10)*(B1811),"5.50" ,)))))))

Thanks in advance for your help.

Rick



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.