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


CodeShopBadgeNameStart DateOn BoardNet Hours4/13/2019
14269454321Deyd10/15/201531748
14279443267Harry9/8/1987311748
14329467890Sam2/8/201451748
14528158491Steve3/25/2000191748
14588140986Has3/26/2000191748
14579432167Dood3/27/2000191748
14598621567Gene3/28/2000191748
14574531256Allan3/29/2000191748
14325698673Joe3/30/2000191748
14895878546Smith3/31/2000191748
14784598321Evan4/1/2000191748
14754712678dan4/2/2000191748
14666963146mell4/3/2000191748
12439951396Wit4/4/2000191748
14888243218Pit4/5/2000191748
14695632109****4/6/2000191748
14237521645Sit4/7/2000191748
14114292574Walk4/8/2000191748
14108850912Fall4/9/2000191748
14125431267Stop4/10/2000191748

<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>
</tbody>
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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