Need complex vba help!

ngann

New Member
Joined
Jan 18, 2018
Messages
21
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 :(

3/6/20193/14/20193/21/20193/28/20194/4/2019
SectionCostScheduleCostScheduleCostScheduleCostScheduleCostSchedule
1
2
3


<tbody>
</tbody>

Section
Section Start DateSection End DateActual Date Complete Actual $ Spent Budget Running Total (Budget)
3
4/5/20194/8/20194/7/2019 $ 9.00 $ 10.00 $ 10.00
3.8.1 Transmission Performance
4/9/20194/14/20194/8/2019 $ 10.00 $ 10.00 $ 20.00
3.8.1 Transmission Performance
4/13/20194/20/20194/17/2019 $ 15.00 $ 15.00 $ 35.00
3.8.1 Transmission Performance
4/17/20194/26/2019 $ - $ 20.00 $ 55.00
3.8.1 Transmission Performance4/21/20195/2/2019 $ - $ 25.00 $ 80.00
3.8.1 Transmission Performance4/25/20195/8/2019 $ - $ 30.00 $ 110.00
3.8.1 Transmission Performance
4/29/20195/14/2019 $ - $ 40.00 $ 150.00
3.8.1 Transmission Performance5/3/20195/20/2019 $ - $ 45.00 $ 195.00
5/7/20195/26/2019 $ 34.00 $ 50.00 $ 145.00
23/1/20193/4/20193/3/2019 $ 9.00 $ 10.00 $ 10.00
3.8.2.3 Thermal Power and Flow Definition3/5/20193/8/20193/7/2019 $ 10.00 $ 10.00 $ 20.00
3.8.2.3 Thermal Power and Flow Definition3/9/20193/12/20193/11/2019 $ 15.00 $ 15.00 $ 35.00
3.8.2.3 Thermal Power and Flow Definition3/13/20193/16/2019 $ - $ 20.00 $ 55.00
3.8.2.3 Thermal Power and Flow Definition
3/17/20193/20/2019 $ - $ 25.00 $ 80.00
3.8.2.3 Thermal Power and Flow Definition3/21/2019
3/24/2019
$ - $ 30.00 $ 110.00
3/25/20193/28/2019 $ 34.00 $ 40.00
$ 150.00

<tbody>
</tbody>
 
Last edited by a moderator:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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