Using VBA to Add Daily Change Orders to Budget

wjmay1961

New Member
Joined
Apr 18, 2013
Messages
16
I'm looking for some VBA help,

I have date values in Column A, Planned Budget Spend to Date in Column B (all on sheet1), and I would like to sum the daily change orders on sheet2 and add pass those values to Column C on sheet1 and sum those to the corresponding row (matching date).


<colgroup><col><col><col></colgroup><tbody>
DateCumm Plan $
Cumm. Plan + Change Orders
03/01/13$1,102,041 $1,602,041
03/02/13$2,204,082 $2,954,082
03/03/13$3,306,122 $4,056,122
03/04/13$4,408,163 $5,158,163

<colgroup><col style="mso-width-source:userset;mso-width-alt:2925;width:60pt" width="80"> <col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="mso-width-source:userset;mso-width-alt:5156;width:106pt" width="141"> </colgroup><tbody>
</tbody>
</tbody>
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Are you sure you need to use VBA for this.

If I understand correctly you just want to be able to show the Daily change order values on the first tab corresponding to the date in column A on the first tab. I would think that could be accomplished with a SumIf function.

If your tab name for the Daily Change Orders is "Daily Change Orders" and your dates are in column A and your sum is in column B on that tab then on your first tab in column C you would want (in row 2 for instance)
=Sumif('Daily Change Orders'!$A:$A, A2, 'Daily Change Orders'!$B:$B)

That would give that dates Daily change orders, if you want the value to be cumulative (year to date for instance) you could change it to

=Sumif('Daily Change Orders'!$A:$A, "<=" & A2, 'Daily Change Orders'!$B:$B)
 
Upvote 0
Thank you for your response, however there is more to this worksheet then what I posted. The Change notices on the project can exceed 500 in a month and each individual item and its value is logged on sheet 2. I have coding that runs the most current duration with the planned budget. It then looks at sheet2 and sums the daily totals and places them in Column D based on the matching day. Column C runs a cumulative daily total which sums the previous days+current change orders and all previous ones.. Also I have a graph which is using the offset feature to update based on the last row in the data set.
 
Upvote 0
I have included the spreadsheet showing the formulas
DateCummulative Plan $Cumm. Plan + Change OrdersDaily AWR Values
413341102040.82=SUM($G$13:G13)+D13=VLOOKUP(C13,AWR_Log,2,FALSE)
413352204081.64=SUM($G$13:G14)+D14=VLOOKUP(C14,AWR_Log,2,FALSE)
413363306122.46=SUM($G$13:G15)+D15=VLOOKUP(C15,AWR_Log,2,FALSE)
413374408163.28=SUM($G$13:G16)+D16=VLOOKUP(C16,AWR_Log,2,FALSE)
413385510204.1=SUM($G$13:G17)+D17=VLOOKUP(C17,AWR_Log,2,FALSE)
413396612244.92=SUM($G$13:G18)+D18=VLOOKUP(C18,AWR_Log,2,FALSE)
413407714285.74=SUM($G$13:G19)+D19=VLOOKUP(C19,AWR_Log,2,FALSE)
413418816326.56=SUM($G$13:G20)+D20=VLOOKUP(C20,AWR_Log,2,FALSE)
413429918367.38=SUM($G$13:G21)+D21=VLOOKUP(C21,AWR_Log,2,FALSE)
4134311020408.2=SUM($G$13:G22)+D22=VLOOKUP(C22,AWR_Log,2,FALSE)

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,142
Members
449,363
Latest member
Yap999

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