hamistasty
Board Regular
- Joined
- May 17, 2011
- Messages
- 208
Hello, I was hoping to get help on this simple output. I just haven't used excel in so long I've forgotten it all.
Basically, two columns outputs on the same row an ID exists are created, but only utilise the data in rows of another column up until an ID is listed.
[TABLE="class: grid, width: 503"]
<colgroup><col><col><col><col><col span="3"></colgroup><tbody>[TR]
[TD]ID
[/TD]
[TD="align: left"]Budget line[/TD]
[TD]Budget[/TD]
[TD="align: left"]Activity[/TD]
[TD="align: left"]Spent[/TD]
[TD="align: left"]% Spent[/TD]
[TD="align: left"]Total
[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD="align: left"]clean[/TD]
[TD]10[/TD]
[TD="align: left"]cups[/TD]
[TD="align: right"]4[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]
[/TD]
[TD] [/TD]
[TD="align: left"]desk[/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]car[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: left"]repair[/TD]
[TD]20[/TD]
[TD="align: left"]cupboard[/TD]
[TD="align: right"]5[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]shelves[/TD]
[TD="align: right"]4[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]road[/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: left"]drive[/TD]
[TD]10[/TD]
[TD="align: left"]vehicle[/TD]
[TD="align: right"]9[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD="align: left"]deliver[/TD]
[TD]20[/TD]
[TD="align: left"]parcel[/TD]
[TD="align: right"]15[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD="align: left"]train[/TD]
[TD]15[/TD]
[TD="align: left"]in repairs[/TD]
[TD="align: right"]10[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in delivery[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in cleaning[/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in meeting[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in driving[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD="align: left"]meet[/TD]
[TD]5[/TD]
[TD="align: left"]stakeholders[/TD]
[TD="align: right"]2[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
</tbody>[/TABLE]
So essentially, I think this will be a condition formula? So it will see in row 2 that there is an ID, so in column f and g of row two it will calculate a formula with the values of column C and E until the next ID in column A is marked. So each x will be an output. The formula for column f will be the total of the sum of values in column E up until the row with the next ID divided into the budget in column C on the same row as the ID across. The output for column G where the x's are (opposite each ID) will be the sum of column E up until the next row that has an ID.
Would anyone be able to help with this?
Thanks
Basically, two columns outputs on the same row an ID exists are created, but only utilise the data in rows of another column up until an ID is listed.
[TABLE="class: grid, width: 503"]
<colgroup><col><col><col><col><col span="3"></colgroup><tbody>[TR]
[TD]ID
[/TD]
[TD="align: left"]Budget line[/TD]
[TD]Budget[/TD]
[TD="align: left"]Activity[/TD]
[TD="align: left"]Spent[/TD]
[TD="align: left"]% Spent[/TD]
[TD="align: left"]Total
[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD="align: left"]clean[/TD]
[TD]10[/TD]
[TD="align: left"]cups[/TD]
[TD="align: right"]4[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]
[/TD]
[TD] [/TD]
[TD="align: left"]desk[/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]car[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: left"]repair[/TD]
[TD]20[/TD]
[TD="align: left"]cupboard[/TD]
[TD="align: right"]5[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]shelves[/TD]
[TD="align: right"]4[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]road[/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: left"]drive[/TD]
[TD]10[/TD]
[TD="align: left"]vehicle[/TD]
[TD="align: right"]9[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD="align: left"]deliver[/TD]
[TD]20[/TD]
[TD="align: left"]parcel[/TD]
[TD="align: right"]15[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD="align: left"]train[/TD]
[TD]15[/TD]
[TD="align: left"]in repairs[/TD]
[TD="align: right"]10[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in delivery[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in cleaning[/TD]
[TD="align: right"]2[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in meeting[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: left"]in driving[/TD]
[TD="align: right"]1[/TD]
[TD] [/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD="align: left"]meet[/TD]
[TD]5[/TD]
[TD="align: left"]stakeholders[/TD]
[TD="align: right"]2[/TD]
[TD] x
[/TD]
[TD] x
[/TD]
[/TR]
</tbody>[/TABLE]
So essentially, I think this will be a condition formula? So it will see in row 2 that there is an ID, so in column f and g of row two it will calculate a formula with the values of column C and E until the next ID in column A is marked. So each x will be an output. The formula for column f will be the total of the sum of values in column E up until the row with the next ID divided into the budget in column C on the same row as the ID across. The output for column G where the x's are (opposite each ID) will be the sum of column E up until the next row that has an ID.
Would anyone be able to help with this?
Thanks