IF nested Complex formula Excel 2010

HelenL

New Member
Joined
Nov 17, 2008
Messages
30
Excel 2010
Hi, any can anyone help with this please? Thank you!

Excel 2010
I need to calculate theoretical number of available working days and hours during contract period , total which varies according to the start and finish date, but all within the period 01/01/13 to 31/12/13, less the bank holidays, total of which does vary whether based London or Scotland. Then multiplied by FTE as some are part time. 8 hr working day.

So far ....
=IF(D2="","",IF(YEAR(D2)=2013,NETWORKDAYS.INTL(P1,$Q$1,1,'Bank holidays'!$A$2:$A$9)*M2,NETWORKDAYS.INTL($D$2,$E$2,1,'Bank holidays'!$A$2:$A$9)*M2)

ABDEHIJKLMNO01/01/201331/12/2013
Nameemployee IDStart DateContract End DateContract
Type
Contract StatusEmployee Base LocationGenderStatusFTETheoretical Working DaysTheoretical Working Hours
Ellie0001501/01/201331/12/2013EmployeePermLondonFemaleMAN1.0
David0001114/05/201331/12/2013EmployeepermLondonMaleSTJ0.6
Sally0000801/01/201331/12/2013EmployeepermAberdeenFemaleSTJ1.0
Bill0002014/06/201305/12/2013employeepermLondonMaleMAN0.8
Frank0001408/01/201331/12/2013employeepermAberdeenMaleMAN1.0

<tbody>
</tbody>
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Does this all have to be in one cell? In other words, can you put this in a table, break the formula up into pieces in separate columns, then just hide the "calculation" columns for presentation purposes?
 
Last edited:
Upvote 0
If I may ask, why are you starting the IF() function with whether or not it is 2013? If all of this takes place in 2013 (or you have the bank holidays for periods of time outside of 2013) you can just input the start and end dates and Excel will calculate the work days.

I got the below to work for me, assuming that there were a different number of holidays for London and Aberdeen.

=IF(J2="London",(NETWORKDAYS.INTL(D2,E2,1,'Bank holidays'!$A$2:$A$7)*M2),IF(J2="Aberdeen",(NETWORKDAYS.INTL(D2,E2,1,'Bank holidays'!$A$2:$A$6)*M2),""))
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,401
Members
448,893
Latest member
AtariBaby

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