Nested If? Or? And?

LValDean

New Member
Joined
May 5, 2012
Messages
3
I have given up the order and ghost of what this should look like. This is a view of the worksheet:

F G H I J K
Start Date 3/4/2012 4/30/2012 8/20/2012
Finish Date 4/28/2012 8/18/2012 10/13/2012
working days 40 78 38
Start Date Finish Date FTE Prep Blueprint Global
3/4/2012 8/30/2013 1.00 40 78 38
3/4/2012 4/28/2012 1.00 40 0 0
3/4/2012 2/28/2014 1.00 40 78 38
4/18/2012 1/31/2013 1.00 12 78 38
4/18/2012 9/30/2013 1.00 12 78 38
4/18/2012 10/10/2014 1.00 12 78 38
3/4/2012 2/8/2014 1.00 40 78 38

What the calculation needs to look for is the start and finish dates of any single resource (this is just a slice there are over 50 resources and an additional 6 phases extending out to 2014).

* Not all resources are FTE 1
* Not all resources start or stop at the Beginning or end of a Phase, in fact most come in or leave during the Phase
* Holidays have to be calculated (they are within the working days)

I am manually 'fixing' the days because I can't seem to fix the calculation. This is the calculation right now.

=IF(AND($F6<=I$2,$G6>=I$3),$H6*I$4,0)

It only works if a resource is full time (1 FTE) and begins at the exact start of a phase and ends at the exact end of a phase.

I have tried "Or" statements without success. I need to extend the calculation to consider a date in column 'f' that is > I2 but < I3 and calculate the working days of that phase only + this to all other phases. I think I am just an idiot and the answer is in front of me.

Any assistance would be greatly appreciated.
 
Welcome to the board, LValDean.

May I suggest that you visit the page of useful links in the Forum at http://www.mrexcel.com/forum/showthread.php?t=628649 and take a look at the Add-Ins page for HTML Maker.

If you would install that add-in and use it (it's pretty simple; if I can do it, you can too) then you'll be able to re-post with a much better display of your spreadsheet, including current formulas (which you won't have to cut and paste individually).

I'll be watching for your re-post and see what I can do about helping you out then.
 
Upvote 0
I was a little unclear as to what your exact goal was, but I took a shot based upon what I saw.

I assumed you didn't want to count weekend days in your count which is what the NETWORKDAYS formula is used for. I assumed that "Prep" is the same as "Phase 1", "Blueprint" is "Phase 2" and "Global" is "Phase 3". I noticed that your totals in the prep column for 3 rows equals 12 but my figures are 8. The other totals are the same. Is the 12 figure by chance incorrect in your data? If not, please further explain.... or as BlueHornet recommended, post an example of your spreadsheet for better visual clarity using an HTML converter ad-in.

The table to the right in my example is used in the NETWORKINGDAYS formula to extract out holidays in the count. I used a federal holiday schedule found in the web but your dates may vary. You will just need to include in this list each date that your company considers a holiday. You can modify the table size in the formula for your needs depending on if this spreadsheet is an on-going thing, if you start a new one each year, etc. (My table is M2:M49 in the formula) The holidays will just need to cover the period of the earliest start date to the last finish date in your data.

I assumed FTE was Full Time Employee or Full Time Equivalent. Your data contained only FTE = 1. When you change this figure, it simply just multiplies that figure times the number of working days. Again, I assumed that is what your intent was.

Hope this helps and is at least fairly close to what you were looking for.
Mr. Excel 05-05-12.xls
FGHIJKLMN
1Phase1Phase2Phase3HolidaysDescription
2StartDate3/4/20124/30/20128/20/20125/28/2012MemorialDay
3FinishDate4/28/20128/18/201210/13/20127/4/2012IndependenceDay
4WorkingDays4078389/3/2012LaborDay
5StartDateFinishDateFTEPrepBlueprintGlobal10/8/2012ColumbusDay
63/4/20128/30/2013140783811/12/2012VeteransDay
73/4/20124/28/20121400011/22/2012ThanksgivingDay
83/4/20122/28/2014140783812/25/2012ChristmasDay
94/18/20121/31/20131878381/1/2013NewYearsDay
104/18/20129/30/20131878381/21/2013BirthdayofMartinLutherKing,Jr.
114/18/201210/10/20141878382/18/2013WashingtonsBirthday
123/4/20122/8/201414078385/27/2013MemorialDay
137/4/2013IndependenceDay
149/2/2013LaborDay
1510/14/2013ColumbusDay
1611/11/2013VeteransDay
1711/28/2013ThanksgivingDay
1812/25/2013ChristmasDay
191/1/2014NewYearsDay
201/20/2014BirthdayofMartinLutherKing,Jr.
212/17/2014WashingtonsBirthday
225/26/2014MemorialDay
237/4/2014IndependenceDay
249/1/2014LaborDay
2510/13/2014ColumbusDay
2611/11/2014VeteransDay
2711/27/2014ThanksgivingDay
2812/25/2014ChristmasDay
Sheet1
 
Upvote 0
Hi, thanks for this. I can tell you the difference is only in the Holiday count. Several are not considered in our calculation.

I will test this, used in the past and I think we ran into the problem where we had resources not being counted as they rolled into phases, that was why I shifted to the "if" statement.
 
Upvote 0
Welcome to the board, LValDean.

May I suggest that you visit the page of useful links in the Forum at http://www.mrexcel.com/forum/showthread.php?t=628649 and take a look at the Add-Ins page for HTML Maker.

If you would install that add-in and use it (it's pretty simple; if I can do it, you can too) then you'll be able to re-post with a much better display of your spreadsheet, including current formulas (which you won't have to cut and paste individually).

I'll be watching for your re-post and see what I can do about helping you out then.

I am trying to figure this tool out so I can show both the table and formula, following the instructions and have it installed, thus far I am only posting the actual HTML. So I am doing something wrong. I will get it sorted and posted. In the mean time, the project budget must be completed!
 
Upvote 0
You're probably not doing anything wrong. The HTML is what shows up in your dialog box when you post it - ugly as sin! - but it should resolve when you do a "preview post". Have you tried the preview?
 
Upvote 0
Hi, thanks for this. I can tell you the difference is only in the Holiday count. Several are not considered in our calculation.

With this method, you are in full control of the holiday count. You simply enter the dates your company considers holidays into the table. If it is a Monday-Friday and the date is not in the table, it is counted.

I will test this, used in the past and I think we ran into the problem where we had resources not being counted as they rolled into phases, that was why I shifted to the "if" statement.

The formula in my example counts working days (M-F, less holidays) that overlap between the phase and resource date ranges.
 
Upvote 0

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