Attached is a Sample document. I use VB pretty often just to do simple things like making a command to convert formulas to values and always having the active cell's row highlighted. This is a little bit harder, and I can't seem to figure out anywhere to start. Any help would be appreciated.
Document: (also attached): http://www.mediafire.com/?d4zy1jrz3ti
I have how much money departments spent each quarter, and another table that has the what projects each department was working on. I basically need to break up the money spent into specific projects.
Here is an example (this data is highlighted in red in the sample document):
Data to be organized:
And in Breakdown I have the following lines with Division ‘Candy Making’:
The resulting data (in a new sheet): should be:
It basically made a line for each project in ‘Breakdown’ that contains division ‘Candy Making’, copied the area (‘Around) along with division (‘candy making’) and project (X5555 and PLMN), it then multiplied the ratio of each project to the Q1 spending in ‘Data to be organized’. So I took 8/9 [9 is the sum all the projects in the division]*100 and then 1/9*100.
Note: Area doesn't matter to the allocation but it needs to be carried along with the data to the new sheet, and there may be the same department with different areas that need their own lines (but are allocated with the same breakdown)
Bookmarks