Multiple function difficult formula (array, sumif, if, etc)

SolCo

New Member
Joined
Jul 11, 2011
Messages
42
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!!!
PROJECT_IDSHOREWEIGHT Costs Weighted Costs
aOn Shore0.1 123
aOn Shore0.1 234
aOn Shore0.8 345
bOn Shore0 543
bOn Shore0.67 432
bOn Shore0.33 527
bOn Shore0 571
cOn Shore1 614
dOn Shore1 658
eOff Shore0.5 701
eOff Shore0 745
eOff Shore0.5 788
eOff Shore0 832
fOff Shore1 875
gOff Shore0 919
gOff Shore1 962
hOff Shore1 1,006
iOn Shore0.39 1,049
iOn Shore0.61 765
jOff Shore1 64
kOff Shore0 53
kOff Shore1 576
lOn Shore1 68

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

<tbody>
</tbody>
 
I'm exhausted (it is almost midnight here). I will answer tomorrow. Please select and send me a few examples with wrong calculations in the meantime.

J.Ty.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Dear Soli,

My formulas seem correct to me. I need your examples to make any progress.

J.Ty.
 
Upvote 0
Dear Soli,

My formulas seem correct to me. I need your examples to make any progress.

J.Ty.

Yea, they look good. I use them now and am very happy.
Appreciate your follow up and effort for me!

Best regards

Soli
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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