Multiple Nested IF functions

hiker8117

New Member
Joined
Mar 26, 2018
Messages
38
Attempting to calculate the available annual man hours per production worker based on their years of service. Their annual leave both vacation and sick are based on their years on board. Knowing this I can then calculate what their true production man-hours per year are. Having trouble calculating this formula. Attached is an example spreadsheet.
The formula in net hours is. =IF(OR(F2<3),2008-208,IF(OR(F2> 3,F2<9),2008-260,IF(OR(F2>8),2008-312,0))).
I keep winding up with 1748 man-hours and I know this is not correct for each employee. Any help is appreciated.
Thank you Gene


9454321Deyd
9443267Harry
9467890Sam
8158491Steve
8140986Has
9432167Dood
8621567Gene
4531256Allan
5698673Joe
5878546Smith
4598321Evan
4712678dan
6963146mell
9951396Wit
8243218Pit
5632109****
7521645Sit
4292574Walk
8850912Fall
5431267Stop

<colgroup><col style="mso-width-source:userset;mso-width-alt:1536;width:32pt" width="42"> <col style="mso-width-source:userset;mso-width-alt:1389;width:29pt" width="38"> <col style="mso-width-source:userset;mso-width-alt:1645;width:34pt" width="45"> <col style="mso-width-source:userset;mso-width-alt:1609;width:33pt" width="44"> <col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="mso-width-source:userset;mso-width-alt:3072;width:63pt" width="84"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:3803;width:78pt" width="104"> </colgroup><tbody>
[TD="class: xl63, width: 42"]Code[/TD]
[TD="width: 38"]Shop[/TD]
[TD="width: 45"]Badge[/TD]
[TD="width: 44"]Name[/TD]
[TD="width: 75"]Start Date[/TD]
[TD="class: xl64, width: 84"]On Board[/TD]
[TD="width: 64"]Net Hours[/TD]
[TD="class: xl64, width: 104, align: right"]4/13/2019[/TD]

[TD="class: xl63"]1426[/TD]

[TD="class: xl64, align: right"]10/15/2015[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1427[/TD]

[TD="class: xl64, align: right"]9/8/1987[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1432[/TD]

[TD="class: xl64, align: right"]2/8/2014[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1452[/TD]

[TD="class: xl64, align: right"]3/25/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1458[/TD]

[TD="class: xl64, align: right"]3/26/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1457[/TD]

[TD="class: xl64, align: right"]3/27/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1459[/TD]

[TD="class: xl64, align: right"]3/28/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1457[/TD]

[TD="class: xl64, align: right"]3/29/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1432[/TD]

[TD="class: xl64, align: right"]3/30/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1489[/TD]

[TD="class: xl64, align: right"]3/31/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1478[/TD]

[TD="class: xl64, align: right"]4/1/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1475[/TD]

[TD="class: xl64, align: right"]4/2/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1466[/TD]

[TD="class: xl64, align: right"]4/3/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1243[/TD]

[TD="class: xl64, align: right"]4/4/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1488[/TD]

[TD="class: xl64, align: right"]4/5/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1469[/TD]

[TD="class: xl64, align: right"]4/6/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1423[/TD]

[TD="class: xl64, align: right"]4/7/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1411[/TD]

[TD="class: xl64, align: right"]4/8/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1410[/TD]

[TD="class: xl64, align: right"]4/9/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

[TD="class: xl63"]1412[/TD]

[TD="class: xl64, align: right"]4/10/2000[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]1748[/TD]

</tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Maybe
=IF(F2<=3,2008-208,IF(F2<=8,2008-260,2008-312))
 
Upvote 0
Fluff,

Less than 3 years they get x number of hours. Between 3 and 8 years they get Y number of hours and beyond 8 they get Z number of hours.

I have to set it up such that less than 3 years equals 1800 man-hours..between 3 and 8 equals 1748 man-hours and beyond 8 equals 1696. I may not have made myself perfectly clear. Thanks for your response.

Regards

Gene
 
Upvote 0
In that case just change the <= to <
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top