I have an Excel table with durations of individuals and I want to calculate the total duration for each activity(in this case, for each row). Each task the individuals are performing is either a parallel one or a sequential one. And it is marked with each activity. (P for Parallel and S for Sequential). There will be a drop down menu to select whether a task is parallel or sequential.
Example table is shown below.
I want to calculate the total duration for each row. The conditions are as follows.
If all the tasks are parallel then the total duration is the maximum duration of all the tasks. (Row 1 as an example, the total duration will be 9,2 days)
If all the tasks are sequential then the total duration is the addition of all the individual durations. (Row 5 as an example, the total duration will be 31,2 days)
If there are tasks which are mixed (both parallel and sequence)
- The maximum duration of parallel tasks must be calculated. (MAX of the parallel tasks)
- Total of the sequential tasks must be calculated. (SUM of the sequential tasks)
- Then add the MAX of the parallel tasks and SUM of the sequential tasks. (Row 2 as an example, the MAX of parallel tasks is 6,5 and the SUM of the sequential tasks is 16, so the total duration will be 16+6,5=22,5)
I need to build a formula in Excel 2013 for this. I tried using IF, MAX and SUM formulas, but couldn’t find the correct solution.
I want to build the formula for this. Any idea?