I'm looking for a formula (or two), that will allow me to do the following:
For any given project code (column A), if the sum of the ON Shore weights is equal to zero (Column C), then apportion those costs (Column D) which are associated to all the On shore rows (for that given project code) equally across all the Off Shore rows (for that given project code).
And Vice versa
i.e. for any given project code (column A), if the sum of the OFF Shore weights is equal to zero Column C), then apportion those costs (Column D) which are associated to all the OFF shore rows (for that given project code) equally across all the ON Shore rows (for that given project code).
And if both the sum of the On Shore and OFF Shore is not equal to 0, then leave the costs column (D) as it currently is.
I'm having serious trouble with this, if anyone could help me with this, it would be greatly appreciated.
Thanks!!!
<tbody>
</tbody>
For any given project code (column A), if the sum of the ON Shore weights is equal to zero (Column C), then apportion those costs (Column D) which are associated to all the On shore rows (for that given project code) equally across all the Off Shore rows (for that given project code).
And Vice versa
i.e. for any given project code (column A), if the sum of the OFF Shore weights is equal to zero Column C), then apportion those costs (Column D) which are associated to all the OFF shore rows (for that given project code) equally across all the ON Shore rows (for that given project code).
And if both the sum of the On Shore and OFF Shore is not equal to 0, then leave the costs column (D) as it currently is.
I'm having serious trouble with this, if anyone could help me with this, it would be greatly appreciated.
Thanks!!!
<colgroup><col><col><col><col><col></colgroup><tbody> </tbody> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<tbody>
</tbody>