I am trying to create a tracking system for the data below. The macro will run in the first tab and track the data from the second tab. I need the macro to match the sections then look up the date from the first tab and determine which date range it falls into on the second tab. Once it has found the date range I need it to determine if the "Actual date complete" column is also within that range. If it is blank aka not complete, then return a value of how many days it is behind. This would go into the "Schedule" column for the corresponding section. Then for cost it would do the same lookup method to determine which range we should be in then compare the sum of "Actual $ Spent" until that date to the "Running Total (Budget)". I know this is very confusing
<tbody>
</tbody>
<tbody>
</tbody>
3/6/2019 | 3/14/2019 | 3/21/2019 | 3/28/2019 | 4/4/2019 | ||||||
Section | Cost | Schedule | Cost | Schedule | Cost | Schedule | Cost | Schedule | Cost | Schedule |
1 | ||||||||||
2 | ||||||||||
3 | |
<tbody>
</tbody>
Section | Section Start Date | Section End Date | Actual Date Complete | Actual $ Spent | Budget | Running Total (Budget) |
3 | 4/5/2019 | 4/8/2019 | 4/7/2019 | $ 9.00 | $ 10.00 | $ 10.00 |
3.8.1 Transmission Performance | 4/9/2019 | 4/14/2019 | 4/8/2019 | $ 10.00 | $ 10.00 | $ 20.00 |
3.8.1 Transmission Performance | 4/13/2019 | 4/20/2019 | 4/17/2019 | $ 15.00 | $ 15.00 | $ 35.00 |
3.8.1 Transmission Performance | 4/17/2019 | 4/26/2019 | $ - | $ 20.00 | $ 55.00 | |
3.8.1 Transmission Performance | 4/21/2019 | 5/2/2019 | $ - | $ 25.00 | $ 80.00 | |
3.8.1 Transmission Performance | 4/25/2019 | 5/8/2019 | $ - | $ 30.00 | $ 110.00 | |
3.8.1 Transmission Performance | 4/29/2019 | 5/14/2019 | $ - | $ 40.00 | $ 150.00 | |
3.8.1 Transmission Performance | 5/3/2019 | 5/20/2019 | $ - | $ 45.00 | $ 195.00 | |
5/7/2019 | 5/26/2019 | $ 34.00 | $ 50.00 | $ 145.00 | ||
2 | 3/1/2019 | 3/4/2019 | 3/3/2019 | $ 9.00 | $ 10.00 | $ 10.00 |
3.8.2.3 Thermal Power and Flow Definition | 3/5/2019 | 3/8/2019 | 3/7/2019 | $ 10.00 | $ 10.00 | $ 20.00 |
3.8.2.3 Thermal Power and Flow Definition | 3/9/2019 | 3/12/2019 | 3/11/2019 | $ 15.00 | $ 15.00 | $ 35.00 |
3.8.2.3 Thermal Power and Flow Definition | 3/13/2019 | 3/16/2019 | $ - | $ 20.00 | $ 55.00 | |
3.8.2.3 Thermal Power and Flow Definition | 3/17/2019 | 3/20/2019 | $ - | $ 25.00 | $ 80.00 | |
3.8.2.3 Thermal Power and Flow Definition | 3/21/2019 | 3/24/2019 | $ - | $ 30.00 | $ 110.00 | |
3/25/2019 | 3/28/2019 | $ 34.00 | $ 40.00 | $ 150.00 |
<tbody>
</tbody>
Last edited by a moderator: